| 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 CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 6 #define CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 content::WebContents* guest_web_contents, | 63 content::WebContents* guest_web_contents, |
| 64 content::WebContents* embedder_web_contents) OVERRIDE; | 64 content::WebContents* embedder_web_contents) OVERRIDE; |
| 65 virtual void RenderProcessHostCreated( | 65 virtual void RenderProcessHostCreated( |
| 66 content::RenderProcessHost* host) OVERRIDE; | 66 content::RenderProcessHost* host) OVERRIDE; |
| 67 virtual void RenderProcessHostDeleted( | 67 virtual void RenderProcessHostDeleted( |
| 68 content::RenderProcessHost* host) OVERRIDE; | 68 content::RenderProcessHost* host) OVERRIDE; |
| 69 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, | 69 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, |
| 70 const GURL& effective_url) OVERRIDE; | 70 const GURL& effective_url) OVERRIDE; |
| 71 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, | 71 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, |
| 72 const GURL& url) OVERRIDE; | 72 const GURL& url) OVERRIDE; |
| 73 virtual net::URLRequestContextGetter* CreateRequestContext( |
| 74 content::BrowserContext* browser_context, |
| 75 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 76 blob_protocol_handler, |
| 77 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 78 file_system_protocol_handler, |
| 79 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 80 developer_protocol_handler, |
| 81 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 82 chrome_protocol_handler, |
| 83 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 84 chrome_devtools_protocol_handler) OVERRIDE; |
| 85 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
| 86 content::BrowserContext* browser_context, |
| 87 const FilePath& partition_path, |
| 88 bool in_memory, |
| 89 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 90 blob_protocol_handler, |
| 91 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 92 file_system_protocol_handler, |
| 93 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 94 developer_protocol_handler, |
| 95 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 96 chrome_protocol_handler, |
| 97 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 98 chrome_devtools_protocol_handler) OVERRIDE; |
| 73 virtual bool IsHandledURL(const GURL& url) OVERRIDE; | 99 virtual bool IsHandledURL(const GURL& url) OVERRIDE; |
| 74 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, | 100 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, |
| 75 const GURL& url) OVERRIDE; | 101 const GURL& url) OVERRIDE; |
| 76 virtual bool ShouldTryToUseExistingProcessHost( | 102 virtual bool ShouldTryToUseExistingProcessHost( |
| 77 content::BrowserContext* browser_context, const GURL& url) OVERRIDE; | 103 content::BrowserContext* browser_context, const GURL& url) OVERRIDE; |
| 78 virtual void SiteInstanceGotProcess( | 104 virtual void SiteInstanceGotProcess( |
| 79 content::SiteInstance* site_instance) OVERRIDE; | 105 content::SiteInstance* site_instance) OVERRIDE; |
| 80 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance) | 106 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance) |
| 81 OVERRIDE; | 107 OVERRIDE; |
| 82 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, | 108 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 241 // Cached version of the locale so we can return the locale on the I/O | 267 // Cached version of the locale so we can return the locale on the I/O |
| 242 // thread. | 268 // thread. |
| 243 std::string io_thread_application_locale_; | 269 std::string io_thread_application_locale_; |
| 244 | 270 |
| 245 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 271 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 246 }; | 272 }; |
| 247 | 273 |
| 248 } // namespace chrome | 274 } // namespace chrome |
| 249 | 275 |
| 250 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 276 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |