| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 content::RenderViewHost* render_view_host) OVERRIDE; | 57 content::RenderViewHost* render_view_host) OVERRIDE; |
| 58 virtual void GuestWebContentsCreated( | 58 virtual void GuestWebContentsCreated( |
| 59 content::WebContents* guest_web_contents, | 59 content::WebContents* guest_web_contents, |
| 60 content::WebContents* embedder_web_contents) OVERRIDE; | 60 content::WebContents* embedder_web_contents) OVERRIDE; |
| 61 virtual void RenderProcessHostCreated( | 61 virtual void RenderProcessHostCreated( |
| 62 content::RenderProcessHost* host) OVERRIDE; | 62 content::RenderProcessHost* host) OVERRIDE; |
| 63 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, | 63 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, |
| 64 const GURL& effective_url) OVERRIDE; | 64 const GURL& effective_url) OVERRIDE; |
| 65 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, | 65 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, |
| 66 const GURL& url) OVERRIDE; | 66 const GURL& url) OVERRIDE; |
| 67 virtual std::vector<std::string> GetAdditionalWebUISchemes() OVERRIDE; |
| 67 virtual net::URLRequestContextGetter* CreateRequestContext( | 68 virtual net::URLRequestContextGetter* CreateRequestContext( |
| 68 content::BrowserContext* browser_context, | 69 content::BrowserContext* browser_context, |
| 69 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 70 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 70 blob_protocol_handler, | |
| 71 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 72 file_system_protocol_handler, | |
| 73 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 74 developer_protocol_handler, | 71 developer_protocol_handler, |
| 75 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 72 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; |
| 76 chrome_protocol_handler, | |
| 77 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 78 chrome_devtools_protocol_handler) OVERRIDE; | |
| 79 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( | 73 virtual net::URLRequestContextGetter* CreateRequestContextForStoragePartition( |
| 80 content::BrowserContext* browser_context, | 74 content::BrowserContext* browser_context, |
| 81 const base::FilePath& partition_path, | 75 const base::FilePath& partition_path, |
| 82 bool in_memory, | 76 bool in_memory, |
| 83 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 77 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> |
| 84 blob_protocol_handler, | |
| 85 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 86 file_system_protocol_handler, | |
| 87 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 88 developer_protocol_handler, | 78 developer_protocol_handler, |
| 89 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | 79 content::ProtocolHandlerMap* protocol_handlers) OVERRIDE; |
| 90 chrome_protocol_handler, | |
| 91 scoped_ptr<net::URLRequestJobFactory::ProtocolHandler> | |
| 92 chrome_devtools_protocol_handler) OVERRIDE; | |
| 93 virtual bool IsHandledURL(const GURL& url) OVERRIDE; | 80 virtual bool IsHandledURL(const GURL& url) OVERRIDE; |
| 94 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, | 81 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, |
| 95 const GURL& url) OVERRIDE; | 82 const GURL& url) OVERRIDE; |
| 96 virtual bool ShouldTryToUseExistingProcessHost( | 83 virtual bool ShouldTryToUseExistingProcessHost( |
| 97 content::BrowserContext* browser_context, const GURL& url) OVERRIDE; | 84 content::BrowserContext* browser_context, const GURL& url) OVERRIDE; |
| 98 virtual void SiteInstanceGotProcess( | 85 virtual void SiteInstanceGotProcess( |
| 99 content::SiteInstance* site_instance) OVERRIDE; | 86 content::SiteInstance* site_instance) OVERRIDE; |
| 100 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance) | 87 virtual void SiteInstanceDeleting(content::SiteInstance* site_instance) |
| 101 OVERRIDE; | 88 OVERRIDE; |
| 102 virtual bool ShouldSwapProcessesForNavigation( | 89 virtual bool ShouldSwapProcessesForNavigation( |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // Cached version of the locale so we can return the locale on the I/O | 252 // Cached version of the locale so we can return the locale on the I/O |
| 266 // thread. | 253 // thread. |
| 267 std::string io_thread_application_locale_; | 254 std::string io_thread_application_locale_; |
| 268 | 255 |
| 269 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); | 256 DISALLOW_COPY_AND_ASSIGN(ChromeContentBrowserClient); |
| 270 }; | 257 }; |
| 271 | 258 |
| 272 } // namespace chrome | 259 } // namespace chrome |
| 273 | 260 |
| 274 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 261 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |