code
stringlengths
1
1.05M
repo_name
stringlengths
6
83
path
stringlengths
3
242
language
stringclasses
222 values
license
stringclasses
20 values
size
int64
1
1.05M
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "url/url_canon_ip.h" #include <stdint.h> #include <stdlib.h> #include <limits> #include "base/check.h" #include "url/url_canon_internal.h" #include "url/url_feature...
Zhao-PengFei35/chromium_src_4
url/url_canon_ip.cc
C++
unknown
24,306
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef URL_URL_CANON_IP_H_ #define URL_URL_CANON_IP_H_ #include "base/component_export.h" #include "url/third_party/mozilla/url_parse.h" #include "url/url_canon.h" namespace...
Zhao-PengFei35/chromium_src_4
url/url_canon_ip.h
C++
unknown
2,354
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Functions for canonicalizing "mailto:" URLs. #include "url/url_canon.h" #include "url/url_canon_internal.h" #include "url/url_file.h" #include "url/url_parse_internal.h" n...
Zhao-PengFei35/chromium_src_4
url/url_canon_mailtourl.cc
C++
unknown
4,566
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <limits.h> #include "base/check.h" #include "base/check_op.h" #include "third_party/abseil-cpp/absl/types/optional.h" #include "url/url_canon.h" #include "url/url_can...
Zhao-PengFei35/chromium_src_4
url/url_canon_path.cc
C++
unknown
22,058
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Functions for canonicalizing "path" URLs. Not to be confused with the path // of a URL, these are URLs that have no authority section, only a path. For // example, "javascri...
Zhao-PengFei35/chromium_src_4
url/url_canon_pathurl.cc
C++
unknown
5,691
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "url/url_canon.h" #include "url/url_canon_internal.h" // Query canonicalization in IE // ---------------------------- // IE is very permissive for query parameters sp...
Zhao-PengFei35/chromium_src_4
url/url_canon_query.cc
C++
unknown
6,125
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Canonicalizer functions for working with and resolving relative URLs. #include <algorithm> #include <ostream> #include "base/check_op.h" #include "base/strings/string_util...
Zhao-PengFei35/chromium_src_4
url/url_canon_relative.cc
C++
unknown
25,883
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "url/url_canon_stdstring.h" namespace url { StdStringCanonOutput::StdStringCanonOutput(std::string* str) : str_(str) { cur_len_ = str_->size(); // Append to exist...
Zhao-PengFei35/chromium_src_4
url/url_canon_stdstring.cc
C++
unknown
766
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef URL_URL_CANON_STDSTRING_H_ #define URL_URL_CANON_STDSTRING_H_ // This header file defines a canonicalizer output method class for STL // strings. Because the canonical...
Zhao-PengFei35/chromium_src_4
url/url_canon_stdstring.h
C++
unknown
4,988
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Functions to canonicalize "standard" URLs, which are ones that have an // authority section including a host name. #include "url/url_canon.h" #include "url/url_canon_intern...
Zhao-PengFei35/chromium_src_4
url/url_canon_stdurl.cc
C++
unknown
7,975
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "url/url_canon.h" #include <errno.h> #include <stddef.h> #include "base/strings/string_piece.h" #include "base/strings/utf_string_conversions.h" #include "base/test/...
Zhao-PengFei35/chromium_src_4
url/url_canon_unittest.cc
C++
unknown
126,962
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "url/url_constants.h" namespace url { const char kAboutBlankURL[] = "about:blank"; const char16_t kAboutBlankURL16[] = u"about:blank"; const char kAboutSrcdocURL[] =...
Zhao-PengFei35/chromium_src_4
url/url_constants.cc
C++
unknown
2,511
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef URL_URL_CONSTANTS_H_ #define URL_URL_CONSTANTS_H_ #include <stddef.h> #include "base/component_export.h" #include "build/build_config.h" namespace url { COMPONENT_E...
Zhao-PengFei35/chromium_src_4
url/url_constants.h
C++
unknown
3,866
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "url/url_features.h" namespace url { BASE_FEATURE(kUseIDNA2008NonTransitional, "UseIDNA2008NonTransitional", base::FEATURE_ENABLED_BY_DEFAU...
Zhao-PengFei35/chromium_src_4
url/url_features.cc
C++
unknown
1,086
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef URL_URL_FEATURES_H_ #define URL_URL_FEATURES_H_ #include "base/component_export.h" #include "base/feature_list.h" namespace url { COMPONENT_EXPORT(URL) BASE_DECLARE_...
Zhao-PengFei35/chromium_src_4
url/url_features.h
C++
unknown
1,093
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef URL_URL_FILE_H_ #define URL_URL_FILE_H_ // Provides shared functions used by the internals of the parser and // canonicalizer for file URLs. Do not use outside of thes...
Zhao-PengFei35/chromium_src_4
url/url_file.h
C++
unknown
3,909
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // ICU-based IDNA converter. #include <stdint.h> #include <stdlib.h> #include <string.h> #include <ostream> #include "base/check_op.h" #include "third_party/icu/source/commo...
Zhao-PengFei35/chromium_src_4
url/url_idna_icu.cc
C++
unknown
5,364
// Copyright 2014 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string.h> #include <string> #include "base/android/jni_android.h" #include "base/android/jni_string.h" #include "base/strings/string_piece.h" #include "url/url_cano...
Zhao-PengFei35/chromium_src_4
url/url_idna_icu_alternatives_android.cc
C++
unknown
1,271
// Copyright 2016 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string.h> #include <ostream> #include <string> #include "base/strings/string_piece.h" #include "base/strings/string_util.h" #include "base/strings/utf_string_conver...
Zhao-PengFei35/chromium_src_4
url/url_idna_icu_alternatives_ios.mm
Objective-C++
unknown
786
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/check.h" #include "url/third_party/mozilla/url_parse.h" #include "url/url_file.h" #include "url/url_parse_internal.h" // Interesting IE file:isms... // // INPU...
Zhao-PengFei35/chromium_src_4
url/url_parse_file.cc
C++
unknown
7,963
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef URL_URL_PARSE_INTERNAL_H_ #define URL_URL_PARSE_INTERNAL_H_ // Contains common inline helper functions used by the URL parsing routines. #include "url/third_party/moz...
Zhao-PengFei35/chromium_src_4
url/url_parse_internal.h
C++
unknown
3,604
// Copyright 2006-2008 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/strings/string_piece.h" #include "base/test/perf_time_logger.h" #include "testing/gtest/include/gtest/gtest.h" #include "url/gurl.h" #include "url/third_par...
Zhao-PengFei35/chromium_src_4
url/url_parse_perftest.cc
C++
unknown
4,810
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <stddef.h> #include "testing/gtest/include/gtest/gtest.h" #include "url/third_party/mozilla/url_parse.h" // Interesting IE file:isms... // // file:/foo/bar ...
Zhao-PengFei35/chromium_src_4
url/url_parse_unittest.cc
C++
unknown
34,985
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef URL_URL_TEST_UTILS_H_ #define URL_URL_TEST_UTILS_H_ // Convenience functions for string conversions. // These are mostly intended for use in unit tests. #include <str...
Zhao-PengFei35/chromium_src_4
url/url_test_utils.h
C++
unknown
1,141
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "url/url_util.h" #include <stddef.h> #include <string.h> #include <atomic> #include <ostream> #include "base/check_op.h" #include "base/compiler_specific.h" #includ...
Zhao-PengFei35/chromium_src_4
url/url_util.cc
C++
unknown
37,346
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef URL_URL_UTIL_H_ #define URL_URL_UTIL_H_ #include <memory> #include <string> #include <vector> #include "base/component_export.h" #include "base/strings/string_piece.h...
Zhao-PengFei35/chromium_src_4
url/url_util.h
C++
unknown
14,620
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef URL_URL_UTIL_INTERNAL_H_ #define URL_URL_UTIL_INTERNAL_H_ #include "url/third_party/mozilla/url_parse.h" namespace url { // Given a string and a range inside the str...
Zhao-PengFei35/chromium_src_4
url/url_util_internal.h
C++
unknown
757
// Copyright 2013 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "url/url_util.h" #include <stddef.h> #include "base/strings/string_piece.h" #include "build/build_config.h" #include "testing/gtest/include/gtest/gtest-message.h" #i...
Zhao-PengFei35/chromium_src_4
url/url_util_unittest.cc
C++
unknown
27,366
include_rules = [ "+components/content_settings/core/browser", "+components/embedder_support/android/common", "+components/js_injection", "+components/omnibox/browser", "+components/page_info/android", "+components/payments/core", "+components/security_state/core/security_state.h", "+device/vr/buildflag...
Zhao-PengFei35/chromium_src_4
weblayer/DEPS
Python
unknown
382
include_rules = [ "+components/autofill/core/common", "+components/content_capture/common", "+components/startup_metric_utils", "+components/variations", "+components/version_info", "+components/viz/common", "+components/translate/core/common", "+content/public", "+device/base/features.h", "+media/b...
Zhao-PengFei35/chromium_src_4
weblayer/app/DEPS
Python
unknown
438
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/app/content_main_delegate_impl.h" #include <iostream> #include <tuple> #include "base/base_switches.h" #include "base/command_line.h" #include "base/contai...
Zhao-PengFei35/chromium_src_4
weblayer/app/content_main_delegate_impl.cc
C++
unknown
17,823
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_APP_CONTENT_MAIN_DELEGATE_IMPL_H_ #define WEBLAYER_APP_CONTENT_MAIN_DELEGATE_IMPL_H_ #include <memory> #include "base/compiler_specific.h" #include "build/bu...
Zhao-PengFei35/chromium_src_4
weblayer/app/content_main_delegate_impl.h
C++
unknown
1,971
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/android/jni_android.h" #include "base/android/library_loader/library_loader_hooks.h" #include "weblayer/app/jni_onload.h" namespace { bool NativeInit(base::and...
Zhao-PengFei35/chromium_src_4
weblayer/app/entry_point.cc
C++
unknown
579
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "content/public/app/content_jni_onload.h" #include "content/public/app/content_main.h" #include "weblayer/app/content_main_delegate_impl.h" namespace weblayer { clas...
Zhao-PengFei35/chromium_src_4
weblayer/app/jni_onload.cc
C++
unknown
917
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_APP_JNI_ONLOAD_H_ #define WEBLAYER_APP_JNI_ONLOAD_H_ namespace weblayer { bool OnJNIOnLoadInit(); } // namespace weblayer #endif // WEBLAYER_APP_JNI_ONLO...
Zhao-PengFei35/chromium_src_4
weblayer/app/jni_onload.h
C++
unknown
326
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/public/main.h" #include "build/build_config.h" #include "content/public/app/content_main.h" #include "weblayer/app/content_main_delegate_impl.h" #if BUILDF...
Zhao-PengFei35/chromium_src_4
weblayer/app/main.cc
C++
unknown
1,451
include_rules = [ "+cc", "+components/android_autofill/browser", "+components/autofill/content/browser", "+components/autofill/content/common", "+components/autofill/core/browser", "+components/autofill/core/common", "+components/background_fetch", "+components/background_sync", "+components/base32", ...
Zhao-PengFei35/chromium_src_4
weblayer/browser/DEPS
Python
unknown
4,311
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/browser/accept_languages_service_factory.h" #include "base/no_destructor.h" #include "components/keyed_service/content/browser_context_dependency_manager.h"...
Zhao-PengFei35/chromium_src_4
weblayer/browser/accept_languages_service_factory.cc
C++
unknown
1,776
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_BROWSER_ACCEPT_LANGUAGES_SERVICE_FACTORY_H_ #define WEBLAYER_BROWSER_ACCEPT_LANGUAGES_SERVICE_FACTORY_H_ #include "base/no_destructor.h" #include "components/...
Zhao-PengFei35/chromium_src_4
weblayer/browser/accept_languages_service_factory.h
C++
unknown
1,509
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <string> #include "build/build_config.h" #include "components/content_settings/core/browser/host_content_settings_map.h" #include "components/content_settings/core/co...
Zhao-PengFei35/chromium_src_4
weblayer/browser/ad_tagging_browsertest.cc
C++
unknown
6,811
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <memory> #include "base/test/metrics/histogram_tester.h" #include "base/test/scoped_feature_list.h" #include "build/build_config.h" #include "components/heavy_ad_inte...
Zhao-PengFei35/chromium_src_4
weblayer/browser/ads_page_load_metrics_observer_browsertest.cc
C++
unknown
23,869
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/android/jni_array.h" #include "base/android/jni_string.h" #include "base/android/scoped_java_ref.h" #include "base/functional/bind.h" #include "base/functional/c...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/access_token_fetch_browsertest.cc
C++
unknown
9,408
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <memory> #include "base/test/scoped_feature_list.h" #include "components/infobars/content/content_infobar_manager.h" #include "components/infobars/core/infobar.h" #in...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/ad_density_intervention_browsertest.cc
C++
unknown
8,950
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/browser/android/application_info_helper.h" #include "base/android/jni_android.h" #include "base/android/jni_string.h" #include "weblayer/browser/java/jni/Ap...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/application_info_helper.cc
C++
unknown
715
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_BROWSER_ANDROID_APPLICATION_INFO_HELPER_H_ #define WEBLAYER_BROWSER_ANDROID_APPLICATION_INFO_HELPER_H_ #include <string> namespace weblayer { // Looks for a...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/application_info_helper.h
C++
unknown
655
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/browser/android/exception_filter.h" #include "weblayer/browser/java/jni/WebLayerExceptionFilter_jni.h" namespace weblayer { bool WebLayerJavaExceptionFilt...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/exception_filter.cc
C++
unknown
537
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_BROWSER_ANDROID_EXCEPTION_FILTER_H_ #define WEBLAYER_BROWSER_ANDROID_EXCEPTION_FILTER_H_ #include <jni.h> #include "base/android/scoped_java_ref.h" namespac...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/exception_filter.h
C++
unknown
641
include_rules = [ "-content/public", "+content/public/test", # WebEngineJUnit4ClassRunner should be used for all tests since it has logic to # make command line flags work in WebLayer. "-base/test/android/javatests/src/org/chromium/base/test/BaseJUnit4ClassRunner.java", ] specific_include_rules = { "WebEng...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/DEPS
Python
unknown
446
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test.instrumentation_test_apk; import android.content.Intent; import android.os.Bundle; import android.view.View; import androidx.appcompat.app...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/instrumentation_test_apk/src/org/chromium/webengine/test/instrumentation_test_apk/InstrumentationActivity.java
Java
unknown
2,769
# Copyright 2021 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. USE_PYTHON3 = True import inspect import os import sys EXPECTATIONS_FILE = 'expectations.txt' def _MaybeAddTypToPath(): src_dir = os.path.join( os.path.dirname(ins...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/skew/PRESUBMIT.py
Python
unknown
1,206
#!/usr/bin/env python3 # # Copyright 2020 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Script to build a CIPD package for weblayer_instrumentation_test_apk from # the current Chromium checkout. # # This should be run from the src director...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/skew/build_weblayer_instrumentation_test_cipd_pkg.py
Python
unknown
4,740
// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import static org.chromium.content_public.browser.test.util.TestThreadUtils.runOnUiThreadBlocking; import androidx.test.filters.SmallTest...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/AllowedOriginsTest.java
Java
unknown
5,293
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import static org.chromium.content_public.browser.test.util.TestThreadUtils.runOnUiThreadBlocking; import androidx.core.content.ContextCo...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/CookieManagerTest.java
Java
unknown
4,909
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.junit.Assert; import org.junit.rules.Test...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/DigitalAssetLinksServerRule.java
Java
unknown
3,234
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import static org.chromium.content_public.browser.test.util.TestThreadUtils.runOnUiThreadBlocking; import android.util.Pair; import andr...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/ExecuteScriptTest.java
Java
unknown
6,188
// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import static org.chromium.content_public.browser.test.util.TestThreadUtils.runOnUiThreadBlocking; import android.app.Instrumentation; im...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/ExternalIntentsTest.java
Java
unknown
6,420
// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import static org.chromium.content_public.browser.test.util.TestThreadUtils.runOnUiThreadBlocking; import android.graphics.Bitmap; import...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/FaviconTest.java
Java
unknown
5,509
// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import static org.chromium.content_public.browser.test.util.TestThreadUtils.runOnUiThreadBlocking; import androidx.test.InstrumentationRe...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/FullscreenCallbackTest.java
Java
unknown
6,700
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import static org.chromium.content_public.browser.test.util.TestThreadUtils.runOnUiThreadBlocking; import android.content.ComponentName; ...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/InstrumentationActivityTestRule.java
Java
unknown
5,959
// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import static org.chromium.content_public.browser.test.util.TestThreadUtils.runOnUiThreadBlocking; import androidx.test.filters.MediumTes...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/PostMessageTest.java
Java
unknown
8,655
// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import static org.chromium.content_public.browser.test.util.TestThreadUtils.runOnUiThreadBlocking; import android.net.Uri; import androi...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/StatePersistenceTest.java
Java
unknown
6,121
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import static android.content.res.Configuration.ORIENTATION_LANDSCAPE; import static org.hamcrest.CoreMatchers.is; import static org.chr...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/TabManagerTest.java
Java
unknown
6,106
// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import static org.chromium.content_public.browser.test.util.TestThreadUtils.runOnUiThreadBlocking; import androidx.annotation.NonNull; im...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/TabNavigationControllerTest.java
Java
unknown
7,987
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import static org.hamcrest.CoreMatchers.is; import static org.chromium.content_public.browser.test.util.TestThreadUtils.runOnUiThreadBloc...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/TabPrerenderTest.java
Java
unknown
6,129
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import android.app.Activity; import android.content.Context; import android.text.TextUtils; import androidx.test.InstrumentationRegistry;...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/WebEngineActivityTestRule.java
Java
unknown
2,463
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import org.junit.runners.model.InitializationError; import org.chromium.base.test.BaseJUnit4ClassRunner; import org.chromium.base.test.ut...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/WebEngineJUnit4ClassRunner.java
Java
unknown
930
// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import static org.chromium.content_public.browser.test.util.TestThreadUtils.runOnUiThreadBlocking; import androidx.annotation.NonNull; im...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/WebEngineTest.java
Java
unknown
8,145
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import static org.chromium.content_public.browser.test.util.TestThreadUtils.runOnUiThreadBlocking; import android.net.Uri; import androi...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/WebFragmentTest.java
Java
unknown
4,106
// Copyright 2023 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. package org.chromium.webengine.test; import static org.chromium.content_public.browser.test.util.TestThreadUtils.runOnUiThreadBlocking; import androidx.test.filters.SmallTest...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/src/org/chromium/webengine/test/WebSandboxTest.java
Java
unknown
2,902
#!/usr/bin/env vpython3 # # Copyright 2020 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Runs WebLayer instrumentation tests against arbitrary versions of tests, the # client, and the implementation. # # Example usage, testing M80 tests an...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/weblayer_instrumentation_test_versions.py
Python
unknown
7,951
#!/usr/bin/env python # # Copyright 2020 The Chromium Authors # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. # # Test helper functions in skew test wrapper. import textwrap import unittest import weblayer_instrumentation_test_versions class ExpectationsTest(uni...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/javatests/weblayer_instrumentation_test_versions_test.py
Python
unknown
2,981
include_rules = [ "+components/metrics", "+google_apis/google_api_keys.h", "+third_party/metrics_proto" ]
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/metrics/DEPS
Python
unknown
112
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include <deque> #include "base/metrics/metrics_hashes.h" #include "base/metrics/statistics_recorder.h" #include "base/test/bind.h" #include "components/metrics/log_decoder.h"...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/metrics/metrics_browsertest.cc
C++
unknown
9,542
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/browser/android/metrics/metrics_test_helper.h" #include "base/android/jni_android.h" #include "base/android/jni_string.h" #include "base/no_destructor.h" #i...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/metrics/metrics_test_helper.cc
C++
unknown
2,721
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_BROWSER_ANDROID_METRICS_METRICS_TEST_HELPER_H_ #define WEBLAYER_BROWSER_ANDROID_METRICS_METRICS_TEST_HELPER_H_ #include <string> #include "base/functional/ca...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/metrics/metrics_test_helper.h
C++
unknown
1,671
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/test/bind.h" #include "components/ukm/ukm_test_helper.h" #include "weblayer/browser/android/metrics/metrics_test_helper.h" #include "weblayer/browser/android/met...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/metrics/ukm_browsertest.cc
C++
unknown
5,235
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/browser/android/metrics/uma_utils.h" #include <stdint.h> #include "components/metrics/metrics_reporting_default_state.h" #include "weblayer/browser/java/jn...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/metrics/uma_utils.cc
C++
unknown
638
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_BROWSER_ANDROID_METRICS_UMA_UTILS_H_ #define WEBLAYER_BROWSER_ANDROID_METRICS_UMA_UTILS_H_ #include "base/time/time.h" namespace weblayer { base::TimeTicks ...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/metrics/uma_utils.h
C++
unknown
431
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/browser/android/metrics/weblayer_metrics_service_client.h" #include <jni.h> #include <cstdint> #include <memory> #include "base/base64.h" #include "base/no...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/metrics/weblayer_metrics_service_client.cc
C++
unknown
8,578
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_BROWSER_ANDROID_METRICS_WEBLAYER_METRICS_SERVICE_CLIENT_H_ #define WEBLAYER_BROWSER_ANDROID_METRICS_WEBLAYER_METRICS_SERVICE_CLIENT_H_ #include <memory> #incl...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/metrics/weblayer_metrics_service_client.h
C++
unknown
2,928
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/browser/android/permission_request_utils.h" #include <algorithm> #include "base/android/jni_android.h" #include "base/android/jni_array.h" #include "conten...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/permission_request_utils.cc
C++
unknown
1,817
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_BROWSER_ANDROID_PERMISSION_REQUEST_UTILS_H_ #define WEBLAYER_BROWSER_ANDROID_PERMISSION_REQUEST_UTILS_H_ #include <vector> #include "base/functional/callback...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/permission_request_utils.h
C++
unknown
1,027
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/browser/android/resource_mapper.h" #include <map> #include "base/android/jni_android.h" #include "base/android/jni_array.h" #include "base/check_op.h" #inc...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/resource_mapper.cc
C++
unknown
2,390
// Copyright 2020 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_BROWSER_ANDROID_RESOURCE_MAPPER_H_ #define WEBLAYER_BROWSER_ANDROID_RESOURCE_MAPPER_H_ namespace weblayer { // Converts the given chromium |resource_id| (e.g...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android/resource_mapper.h
C++
unknown
545
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_BROWSER_ANDROID_DESCRIPTORS_H_ #define WEBLAYER_BROWSER_ANDROID_DESCRIPTORS_H_ #include "content/public/common/content_descriptors.h" namespace weblayer { /...
Zhao-PengFei35/chromium_src_4
weblayer/browser/android_descriptors.h
C++
unknown
713
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/browser/autocomplete_scheme_classifier_impl.h" #include "base/strings/string_util.h" #include "build/build_config.h" #include "content/public/common/url_con...
Zhao-PengFei35/chromium_src_4
weblayer/browser/autocomplete_scheme_classifier_impl.cc
C++
unknown
1,763
// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_BROWSER_AUTOCOMPLETE_SCHEME_CLASSIFIER_IMPL_H_ #define WEBLAYER_BROWSER_AUTOCOMPLETE_SCHEME_CLASSIFIER_IMPL_H_ #include "components/omnibox/browser/autocomple...
Zhao-PengFei35/chromium_src_4
weblayer/browser/autocomplete_scheme_classifier_impl.h
C++
unknown
989
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/test/weblayer_browser_test.h" #include "base/strings/utf_string_conversions.h" #include "build/build_config.h" #include "components/autofill/core/common/for...
Zhao-PengFei35/chromium_src_4
weblayer/browser/autofill_browsertest.cc
C++
unknown
3,325
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/browser/autofill_client_impl.h" #include <utility> #include "build/build_config.h" #include "components/android_autofill/browser/android_autofill_manager.h...
Zhao-PengFei35/chromium_src_4
weblayer/browser/autofill_client_impl.cc
C++
unknown
10,930
// Copyright 2019 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_BROWSER_AUTOFILL_CLIENT_IMPL_H_ #define WEBLAYER_BROWSER_AUTOFILL_CLIENT_IMPL_H_ #include "base/compiler_specific.h" #include "build/build_config.h" #include ...
Zhao-PengFei35/chromium_src_4
weblayer/browser/autofill_client_impl.h
C++
unknown
8,006
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/browser/background_download_service_factory.h" #include "base/files/file_path.h" #include "base/memory/raw_ptr.h" #include "base/no_destructor.h" #include "...
Zhao-PengFei35/chromium_src_4
weblayer/browser/background_download_service_factory.cc
C++
unknown
8,137
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_BROWSER_BACKGROUND_DOWNLOAD_SERVICE_FACTORY_H_ #define WEBLAYER_BROWSER_BACKGROUND_DOWNLOAD_SERVICE_FACTORY_H_ #include "base/no_destructor.h" #include "compo...
Zhao-PengFei35/chromium_src_4
weblayer/browser/background_download_service_factory.h
C++
unknown
1,709
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/browser/background_fetch/background_fetch_delegate_factory.h" #include "base/strings/string_number_conversions.h" #include "build/build_config.h" #include "...
Zhao-PengFei35/chromium_src_4
weblayer/browser/background_fetch/background_fetch_delegate_factory.cc
C++
unknown
1,940
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_DELEGATE_FACTORY_H_ #define WEBLAYER_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_DELEGATE_FACTORY_H_ #include "base/me...
Zhao-PengFei35/chromium_src_4
weblayer/browser/background_fetch/background_fetch_delegate_factory.h
C++
unknown
1,411
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/browser/background_fetch/background_fetch_delegate_impl.h" #include <utility> #include "base/check_op.h" #include "base/task/sequenced_task_runner.h" #incl...
Zhao-PengFei35/chromium_src_4
weblayer/browser/background_fetch/background_fetch_delegate_impl.cc
C++
unknown
4,486
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_DELEGATE_IMPL_H_ #define WEBLAYER_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_DELEGATE_IMPL_H_ #include <map> #include...
Zhao-PengFei35/chromium_src_4
weblayer/browser/background_fetch/background_fetch_delegate_impl.h
C++
unknown
2,220
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/browser/background_fetch/background_fetch_download.h" #include "base/strings/utf_string_conversions.h" #include "components/background_fetch/job_details.h" ...
Zhao-PengFei35/chromium_src_4
weblayer/browser/background_fetch/background_fetch_download.cc
C++
unknown
3,026
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_DOWNLOAD_H_ #define WEBLAYER_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_DOWNLOAD_H_ #include <string> #include "base...
Zhao-PengFei35/chromium_src_4
weblayer/browser/background_fetch/background_fetch_download.h
C++
unknown
1,881
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "weblayer/browser/background_fetch/background_fetch_permission_context.h" #include "components/content_settings/core/browser/host_content_settings_map.h" #include "co...
Zhao-PengFei35/chromium_src_4
weblayer/browser/background_fetch/background_fetch_permission_context.cc
C++
unknown
1,990
// Copyright 2021 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef WEBLAYER_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_PERMISSION_CONTEXT_H_ #define WEBLAYER_BROWSER_BACKGROUND_FETCH_BACKGROUND_FETCH_PERMISSION_CONTEXT_H_ #include "com...
Zhao-PengFei35/chromium_src_4
weblayer/browser/background_fetch/background_fetch_permission_context.h
C++
unknown
1,443