OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |