Chromium Code Reviews| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 236 // that is allowed to commit. | 236 // that is allowed to commit. |
| 237 // This is called on the IO thread. | 237 // This is called on the IO thread. |
| 238 virtual bool IsIllegalOrigin(ResourceContext* resource_context, | 238 virtual bool IsIllegalOrigin(ResourceContext* resource_context, |
| 239 int child_process_id, | 239 int child_process_id, |
| 240 const GURL& origin); | 240 const GURL& origin); |
| 241 | 241 |
| 242 // Returns whether a URL should be allowed to open from a specific context. | 242 // Returns whether a URL should be allowed to open from a specific context. |
| 243 // This also applies in cases where the new URL will open in another process. | 243 // This also applies in cases where the new URL will open in another process. |
| 244 virtual bool ShouldAllowOpenURL(SiteInstance* site_instance, const GURL& url); | 244 virtual bool ShouldAllowOpenURL(SiteInstance* site_instance, const GURL& url); |
| 245 | 245 |
| 246 // Allows the embedder to override OpenURLParams. | |
| 247 virtual void OverrideOpenURLParams(const SiteInstance* site_instance, | |
|
Charlie Reis
2016/06/28 00:52:05
nit: No const.
http://www.chromium.org/developers
mastiz
2016/06/28 08:20:31
Done.
| |
| 248 OpenURLParams* params) {} | |
| 249 | |
| 246 // Returns whether a new view for a given |site_url| can be launched in a | 250 // Returns whether a new view for a given |site_url| can be launched in a |
| 247 // given |process_host|. | 251 // given |process_host|. |
| 248 virtual bool IsSuitableHost(RenderProcessHost* process_host, | 252 virtual bool IsSuitableHost(RenderProcessHost* process_host, |
| 249 const GURL& site_url); | 253 const GURL& site_url); |
| 250 | 254 |
| 251 // Returns whether a new view for a new site instance can be added to a | 255 // Returns whether a new view for a new site instance can be added to a |
| 252 // given |process_host|. | 256 // given |process_host|. |
| 253 virtual bool MayReuseHost(RenderProcessHost* process_host); | 257 virtual bool MayReuseHost(RenderProcessHost* process_host); |
| 254 | 258 |
| 255 // Returns whether a new process should be created or an existing one should | 259 // Returns whether a new process should be created or an existing one should |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 789 // Allows an embedder to provide its own ExternalVideoSurfaceContainer | 793 // Allows an embedder to provide its own ExternalVideoSurfaceContainer |
| 790 // implementation. Return nullptr to disable external surface video. | 794 // implementation. Return nullptr to disable external surface video. |
| 791 virtual ExternalVideoSurfaceContainer* | 795 virtual ExternalVideoSurfaceContainer* |
| 792 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); | 796 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); |
| 793 #endif | 797 #endif |
| 794 }; | 798 }; |
| 795 | 799 |
| 796 } // namespace content | 800 } // namespace content |
| 797 | 801 |
| 798 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 802 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |