OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 | 126 |
127 // Returns whether all instances of the specified effective URL should be | 127 // Returns whether all instances of the specified effective URL should be |
128 // rendered by the same process, rather than using process-per-site-instance. | 128 // rendered by the same process, rather than using process-per-site-instance. |
129 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, | 129 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context, |
130 const GURL& effective_url) = 0; | 130 const GURL& effective_url) = 0; |
131 | 131 |
132 // Returns whether a specified URL is to be considered the same as any | 132 // Returns whether a specified URL is to be considered the same as any |
133 // SiteInstance. | 133 // SiteInstance. |
134 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) = 0; | 134 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) = 0; |
135 | 135 |
| 136 // Returns whether a specified URL is handled by the embedder's internal |
| 137 // protocol handlers. |
| 138 virtual bool IsHandledURL(const GURL& url) = 0; |
| 139 |
136 // Returns whether a new view for a given |site_url| can be launched in a | 140 // Returns whether a new view for a given |site_url| can be launched in a |
137 // given |process_host|. | 141 // given |process_host|. |
138 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, | 142 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, |
139 const GURL& site_url) = 0; | 143 const GURL& site_url) = 0; |
140 | 144 |
141 // Called when a site instance is first associated with a process. | 145 // Called when a site instance is first associated with a process. |
142 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) = 0; | 146 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) = 0; |
143 | 147 |
144 // Called from a site instance's destructor. | 148 // Called from a site instance's destructor. |
145 virtual void SiteInstanceDeleting(SiteInstance* site_instance) = 0; | 149 virtual void SiteInstanceDeleting(SiteInstance* site_instance) = 0; |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 // This is called on a worker thread. | 364 // This is called on a worker thread. |
361 virtual | 365 virtual |
362 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 366 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
363 const GURL& url) = 0; | 367 const GURL& url) = 0; |
364 #endif | 368 #endif |
365 }; | 369 }; |
366 | 370 |
367 } // namespace content | 371 } // namespace content |
368 | 372 |
369 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ | 373 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |