Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(195)

Side by Side Diff: content/public/browser/content_browser_client.h

Issue 1321723009: Protocol handlers should be able to register a service worker. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Test Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( 213 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition(
214 BrowserContext* browser_context, 214 BrowserContext* browser_context,
215 const base::FilePath& partition_path, 215 const base::FilePath& partition_path,
216 bool in_memory, 216 bool in_memory,
217 ProtocolHandlerMap* protocol_handlers, 217 ProtocolHandlerMap* protocol_handlers,
218 URLRequestInterceptorScopedVector request_interceptors); 218 URLRequestInterceptorScopedVector request_interceptors);
219 219
220 // Returns whether a specified URL is handled by the embedder's internal 220 // Returns whether a specified URL is handled by the embedder's internal
221 // protocol handlers. 221 // protocol handlers.
222 virtual bool IsHandledURL(const GURL& url); 222 virtual bool IsHandledURL(const GURL& url);
223 virtual GURL GetHandlerFor(BrowserContext* browser_context, const GURL& url);
223 224
224 // Returns whether the given process is allowed to commit |url|. This is a 225 // Returns whether the given process is allowed to commit |url|. This is a
225 // more conservative check than IsSuitableHost, since it is used after a 226 // more conservative check than IsSuitableHost, since it is used after a
226 // navigation has committed to ensure that the process did not exceed its 227 // navigation has committed to ensure that the process did not exceed its
227 // authority. 228 // authority.
228 // This is called on the UI thread. 229 // This is called on the UI thread.
229 virtual bool CanCommitURL(RenderProcessHost* process_host, const GURL& url); 230 virtual bool CanCommitURL(RenderProcessHost* process_host, const GURL& url);
230 231
231 // Returns true if no URL within |origin| is allowed to commit in the given 232 // Returns true if no URL within |origin| is allowed to commit in the given
232 // process. Must return false if there exists at least one URL in |origin| 233 // process. Must return false if there exists at least one URL in |origin|
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 704 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
704 // implementation. Return nullptr to disable external surface video. 705 // implementation. Return nullptr to disable external surface video.
705 virtual ExternalVideoSurfaceContainer* 706 virtual ExternalVideoSurfaceContainer*
706 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 707 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
707 #endif 708 #endif
708 }; 709 };
709 710
710 } // namespace content 711 } // namespace content
711 712
712 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 713 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_request_handler.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698