Searched refs:scheme (Results 1 - 25 of 564) sorted by relevance

1234567891011>>

/external/chromium_org/ui/accessibility/extensions/highcontrast/
H A Dcommon.js43 var scheme = localStorage['scheme'];
44 if (scheme >= 0 && scheme <= MAX_SCHEME) {
45 return scheme;
47 scheme = DEFAULT_SCHEME;
48 localStorage['scheme'] = scheme;
49 return scheme;
52 function setDefaultScheme(scheme) {
[all...]
H A Dbackground.js39 'scheme': getSiteScheme(siteFromUrl(url))
54 var scheme = getSiteScheme(site);
55 if (scheme > 0) {
56 scheme = 0;
58 scheme = getDefaultScheme();
60 scheme = DEFAULT_SCHEME;
62 setSiteScheme(site, scheme);
79 var scheme = getDefaultScheme();
81 scheme = getSiteScheme(siteFromUrl(sender.tab.url));
85 'scheme'
[all...]
H A Dhighcontrast.js7 var scheme = ''; variable
40 if (html.getAttribute('hc') != mode + scheme)
41 html.setAttribute('hc', mode + scheme);
42 if (html.getAttribute('hcx') != scheme)
43 html.setAttribute('hcx', scheme);
52 html.style.webkitFilter = filterMap[scheme];
69 if (enabled != request.enabled || scheme != request.scheme) {
71 scheme = request.scheme;
[all...]
/external/chromium_org/third_party/WebKit/Source/modules/navigatorcontentutils/testing/
H A DNavigatorContentUtilsClientMock.cpp14 void NavigatorContentUtilsClientMock::registerProtocolHandler(const String& scheme, argument
18 info.scheme = scheme;
22 m_protocolMap.set(scheme, info);
25 NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientMock::isProtocolHandlerRegistered(const String& scheme, argument
29 if (m_protocolMap.contains(scheme))
35 void NavigatorContentUtilsClientMock::unregisterProtocolHandler(const String& scheme, argument
38 m_protocolMap.remove(scheme);
H A DNavigatorContentUtilsClientMock.h22 virtual void registerProtocolHandler(const String& scheme, const KURL&, const String& title);
24 virtual CustomHandlersState isProtocolHandlerRegistered(const String& scheme, const KURL&);
25 virtual void unregisterProtocolHandler(const String& scheme, const KURL&);
29 String scheme; member in struct:blink::NavigatorContentUtilsClientMock::__anon11200
/external/chromium_org/third_party/WebKit/Source/platform/weborigin/
H A DSchemeRegistry.h57 // SecurityOrigin::canDisplay) by documents from the same scheme.
69 static bool canDisplayOnlyIfCanRequest(const String& scheme);
70 static void registerAsCanDisplayOnlyIfCanRequest(const String& scheme);
74 static void registerURLSchemeAsNotAllowingJavascriptURLs(const String& scheme);
75 static bool shouldTreatURLSchemeAsNotAllowingJavascriptURLs(const String& scheme);
78 static void registerURLSchemeAsCORSEnabled(const String& scheme);
79 static bool shouldTreatURLSchemeAsCORSEnabled(const String& scheme);
85 static void registerURLSchemeAsLegacy(const String& scheme);
86 static bool shouldTreatURLSchemeAsLegacy(const String& scheme);
90 static void registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme);
[all...]
H A DSchemeRegistry.cpp114 void SchemeRegistry::registerURLSchemeAsLocal(const String& scheme) argument
116 localURLSchemes().add(scheme);
119 void SchemeRegistry::removeURLSchemeRegisteredAsLocal(const String& scheme) argument
121 if (scheme == "file")
123 localURLSchemes().remove(scheme);
163 bool SchemeRegistry::shouldTreatURLSchemeAsLocal(const String& scheme) argument
165 if (scheme.isEmpty())
167 return localURLSchemes().contains(scheme);
170 void SchemeRegistry::registerURLSchemeAsNoAccess(const String& scheme) argument
172 schemesWithUniqueOrigins().add(scheme);
175 shouldTreatURLSchemeAsNoAccess(const String& scheme) argument
182 registerURLSchemeAsDisplayIsolated(const String& scheme) argument
187 shouldTreatURLSchemeAsDisplayIsolated(const String& scheme) argument
194 registerURLSchemeAsSecure(const String& scheme) argument
199 shouldTreatURLSchemeAsSecure(const String& scheme) argument
206 registerURLSchemeAsEmptyDocument(const String& scheme) argument
211 shouldLoadURLSchemeAsEmptyDocument(const String& scheme) argument
218 setDomainRelaxationForbiddenForURLScheme(bool forbidden, const String& scheme) argument
229 isDomainRelaxationForbiddenForURLScheme(const String& scheme) argument
236 canDisplayOnlyIfCanRequest(const String& scheme) argument
243 registerAsCanDisplayOnlyIfCanRequest(const String& scheme) argument
248 registerURLSchemeAsNotAllowingJavascriptURLs(const String& scheme) argument
253 shouldTreatURLSchemeAsNotAllowingJavascriptURLs(const String& scheme) argument
260 registerURLSchemeAsCORSEnabled(const String& scheme) argument
265 shouldTreatURLSchemeAsCORSEnabled(const String& scheme) argument
289 registerURLSchemeAsLegacy(const String& scheme) argument
294 shouldTreatURLSchemeAsLegacy(const String& scheme) argument
301 registerURLSchemeAsBypassingContentSecurityPolicy(const String& scheme) argument
306 removeURLSchemeRegisteredAsBypassingContentSecurityPolicy(const String& scheme) argument
311 schemeShouldBypassContentSecurityPolicy(const String& scheme) argument
[all...]
/external/chromium_org/third_party/WebKit/Source/web/
H A DWebSecurityPolicy.cpp43 void WebSecurityPolicy::registerURLSchemeAsLocal(const WebString& scheme) argument
45 SchemeRegistry::registerURLSchemeAsLocal(scheme);
48 void WebSecurityPolicy::registerURLSchemeAsNoAccess(const WebString& scheme) argument
50 SchemeRegistry::registerURLSchemeAsNoAccess(scheme);
53 void WebSecurityPolicy::registerURLSchemeAsDisplayIsolated(const WebString& scheme) argument
55 SchemeRegistry::registerURLSchemeAsDisplayIsolated(scheme);
58 void WebSecurityPolicy::registerURLSchemeAsSecure(const WebString& scheme) argument
60 SchemeRegistry::registerURLSchemeAsSecure(scheme);
63 void WebSecurityPolicy::registerURLSchemeAsCORSEnabled(const WebString& scheme) argument
65 SchemeRegistry::registerURLSchemeAsCORSEnabled(scheme);
68 registerURLSchemeAsBypassingContentSecurityPolicy(const WebString& scheme) argument
73 registerURLSchemeAsEmptyDocument(const WebString& scheme) argument
110 registerURLSchemeAsNotAllowingJavascriptURLs(const WebString& scheme) argument
[all...]
H A DNavigatorContentUtilsClientImpl.cpp23 void NavigatorContentUtilsClientImpl::registerProtocolHandler(const String& scheme, const KURL& url, const String& title) argument
25 m_webView->client()->registerProtocolHandler(scheme, url, title);
28 NavigatorContentUtilsClient::CustomHandlersState NavigatorContentUtilsClientImpl::isProtocolHandlerRegistered(const String& scheme, const KURL& url) argument
30 return static_cast<NavigatorContentUtilsClient::CustomHandlersState>(m_webView->client()->isProtocolHandlerRegistered(scheme, url));
33 void NavigatorContentUtilsClientImpl::unregisterProtocolHandler(const String& scheme, const KURL& url) argument
35 m_webView->client()->unregisterProtocolHandler(scheme, url);
H A DNavigatorContentUtilsClientImpl.h20 virtual void registerProtocolHandler(const String& scheme, const KURL&, const String& title) OVERRIDE;
21 virtual CustomHandlersState isProtocolHandlerRegistered(const String& scheme, const KURL&) OVERRIDE;
22 virtual void unregisterProtocolHandler(const String& scheme, const KURL&) OVERRIDE;
/external/chromium_org/chrome/browser/autocomplete/
H A Dchrome_autocomplete_scheme_classifier.cc25 const std::string& scheme) const {
26 if (base::IsStringASCII(scheme) &&
27 (ProfileIOData::IsHandledProtocol(scheme) ||
28 LowerCaseEqualsASCII(scheme, content::kViewSourceScheme) ||
29 LowerCaseEqualsASCII(scheme, url::kJavaScriptScheme) ||
30 LowerCaseEqualsASCII(scheme, url::kDataScheme))) {
38 if (registry && registry->IsHandledProtocol(scheme))
49 ExternalProtocolHandler::GetBlockState(scheme);
/external/chromium_org/android_webview/browser/net/
H A Daw_url_request_job_factory.cc26 const std::string& scheme) const {
41 const std::string& scheme,
45 scheme, request, network_delegate);
50 // If URLRequest supports the scheme NULL should be returned from this method.
53 if (net::URLRequest::IsHandledProtocol(scheme))
61 const std::string& scheme,
63 return next_factory_->SetProtocolHandler(scheme, protocol_handler);
40 MaybeCreateJobWithProtocolHandler( const std::string& scheme, URLRequest* request, NetworkDelegate* network_delegate) const argument
60 SetProtocolHandler( const std::string& scheme, ProtocolHandler* protocol_handler) argument
/external/chromium_org/net/proxy/
H A Dproxy_server_mac.cc18 ProxyServer ProxyServer::FromDictionary(Scheme scheme, argument
22 if (scheme == SCHEME_INVALID || scheme == SCHEME_DIRECT) {
24 return ProxyServer(scheme, HostPortPair());
43 port = GetDefaultPortForScheme(scheme);
46 return ProxyServer(scheme, HostPortPair(host, port));
/external/chromium_org/third_party/WebKit/Source/modules/navigatorcontentutils/
H A DNavigatorContentUtils.idl23 [RuntimeEnabled=NavigatorContentUtils, RaisesException] void registerProtocolHandler(DOMString scheme, DOMString url, DOMString title);
24 [RuntimeEnabled=CustomSchemeHandler, RaisesException] DOMString isProtocolHandlerRegistered(DOMString scheme, DOMString url);
25 [RuntimeEnabled=NavigatorContentUtils, RaisesException] void unregisterProtocolHandler(DOMString scheme, DOMString url);
H A DNavigatorContentUtilsClient.h39 virtual void registerProtocolHandler(const String& scheme, const KURL&, const String& title) = 0;
47 virtual CustomHandlersState isProtocolHandlerRegistered(const String& scheme, const KURL&) = 0;
48 virtual void unregisterProtocolHandler(const String& scheme, const KURL&) = 0;
H A DNavigatorContentUtils.cpp104 static bool isSchemeWhitelisted(const String& scheme) argument
110 unsigned length = scheme.length();
112 builder.append(toASCIILower(scheme[i]));
117 static bool verifyCustomHandlerScheme(const String& scheme, ExceptionState& exceptionState) argument
119 if (!isValidProtocol(scheme)) {
120 exceptionState.throwSecurityError("The scheme '" + scheme + "' is not valid protocol");
124 if (scheme.startsWith("web+")) {
125 // The specification requires that the length of scheme is at least five characteres (including 'web+' prefix).
126 if (scheme
154 registerProtocolHandler(Navigator& navigator, const String& scheme, const String& url, const String& title, ExceptionState& exceptionState) argument
191 isProtocolHandlerRegistered(Navigator& navigator, const String& scheme, const String& url, ExceptionState& exceptionState) argument
213 unregisterProtocolHandler(Navigator& navigator, const String& scheme, const String& url, ExceptionState& exceptionState) argument
[all...]
/external/chromium_org/components/navigation_metrics/
H A Dnavigation_metrics.cc46 Scheme scheme = SCHEME_UNKNOWN; local
49 scheme = static_cast<Scheme>(i);
54 "Navigation.MainFrameScheme", scheme, SCHEME_MAX);
/external/chromium_org/chrome/browser/browsing_data/
H A Dbrowsing_data_helper.cc17 bool BrowsingDataHelper::IsWebScheme(const std::string& scheme) { argument
18 // Special-case `file://` scheme iff cookies and site data are enabled via
20 if (scheme == url::kFileScheme) {
29 return (policy->IsWebSafeScheme(scheme) &&
30 !BrowsingDataHelper::IsExtensionScheme(scheme) &&
31 scheme != content::kChromeDevToolsScheme);
36 return BrowsingDataHelper::IsWebScheme(origin.scheme());
40 bool BrowsingDataHelper::IsExtensionScheme(const std::string& scheme) { argument
41 return scheme == extensions::kExtensionScheme;
46 return BrowsingDataHelper::IsExtensionScheme(origin.scheme());
[all...]
/external/chromium_org/net/url_request/
H A Durl_request_job_factory_impl.cc28 const std::string& scheme,
33 ProtocolHandlerMap::iterator it = protocol_handler_map_.find(scheme);
42 if (ContainsKey(protocol_handler_map_, scheme))
44 protocol_handler_map_[scheme] = protocol_handler;
49 const std::string& scheme,
60 ProtocolHandlerMap::const_iterator it = protocol_handler_map_.find(scheme);
67 const std::string& scheme) const {
69 return ContainsKey(protocol_handler_map_, scheme) ||
70 URLRequestJobManager::GetInstance()->SupportsScheme(scheme);
78 return IsHandledProtocol(url.scheme());
27 SetProtocolHandler( const std::string& scheme, ProtocolHandler* protocol_handler) argument
48 MaybeCreateJobWithProtocolHandler( const std::string& scheme, URLRequest* request, NetworkDelegate* network_delegate) const argument
[all...]
H A Durl_request_job_manager.cc26 const char* scheme; member in struct:net::__anon9801::SchemeToFactory
51 // If we are given an invalid URL, then don't even try to inspect the scheme.
59 const std::string& scheme = request->url().scheme(); // already lowercase local
60 if (!job_factory->IsHandledProtocol(scheme)) {
84 scheme, request, network_delegate);
90 if (scheme == kBuiltinFactories[i].scheme) {
92 request, network_delegate, scheme);
119 const std::string& scheme local
146 const std::string& scheme = request->url().scheme(); // already lowercase local
161 SupportsScheme(const std::string& scheme) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
H A DPBESecretKeyFactory.java17 private int scheme; field in class:PBESecretKeyFactory
26 int scheme,
34 this.scheme = scheme;
51 return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, null);
56 param = PBE.Util.makePBEParameters(pbeSpec, scheme, digest, keySize, ivSize);
60 param = PBE.Util.makePBEMacParameters(pbeSpec, scheme, digest, keySize);
63 return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param);
22 PBESecretKeyFactory( String algorithm, ASN1ObjectIdentifier oid, boolean forCipher, int scheme, int digest, int keySize, int ivSize) argument
/external/glide/library/src/main/java/com/bumptech/glide/load/model/
H A DUriLoader.java19 final String scheme = model.getScheme();
22 if (isLocalUri(scheme)) {
24 } else if (urlLoader != null && ("http".equals(scheme) || "https".equals(scheme))) {
33 private boolean isLocalUri(String scheme) { argument
34 return ContentResolver.SCHEME_FILE.equals(scheme)
35 || ContentResolver.SCHEME_CONTENT.equals(scheme)
36 || ContentResolver.SCHEME_ANDROID_RESOURCE.equals(scheme);
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
H A DOkAuthenticator.java54 private final String scheme; field in class:OkAuthenticator.Challenge
57 public Challenge(String scheme, String realm) { argument
58 this.scheme = scheme;
62 /** Returns the authentication scheme, like {@code Basic}. */
64 return scheme;
74 && ((Challenge) o).scheme.equals(scheme)
79 return scheme.hashCode() + 31 * realm.hashCode();
83 return scheme
[all...]
/external/chromium_org/components/omnibox/
H A Dtest_scheme_classifier.cc15 const std::string& scheme) const {
22 if (scheme == kKnownURLSchemes[i])
25 if (net::URLRequest::IsHandledProtocol(scheme))
/external/apache-http/src/org/apache/http/auth/
H A DAuthScope.java39 * a port number, a realm name and an authentication scheme name which
71 * The <tt>null</tt> value represents any authentication scheme.
76 * Default scope matching any host, port, realm and authentication scheme.
82 /** The authentication scheme the credentials apply to. */
83 private final String scheme; field in class:AuthScope
96 * <tt>authentication scheme</tt>.
107 * @param scheme the authentication scheme the credentials apply to.
109 * any authentication scheme.
112 final String realm, final String scheme)
111 AuthScope(final String host, int port, final String realm, final String scheme) argument
[all...]

Completed in 510 milliseconds

1234567891011>>