| 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 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
| 12 #include "content/public/browser/content_browser_client.h" | 12 #include "content/public/browser/content_browser_client.h" |
| 13 | 13 |
| 14 namespace chrome { | 14 namespace chrome { |
| 15 | 15 |
| 16 class ChromeContentBrowserClient : public content::ContentBrowserClient { | 16 class ChromeContentBrowserClient : public content::ContentBrowserClient { |
| 17 public: | 17 public: |
| 18 virtual void CreateBrowserMainParts( | 18 virtual void CreateBrowserMainParts( |
| 19 const content::MainFunctionParams& parameters, | 19 const content::MainFunctionParams& parameters, |
| 20 std::vector<content::BrowserMainParts*>* parts_list) OVERRIDE; | 20 std::vector<content::BrowserMainParts*>* parts_list) OVERRIDE; |
| 21 virtual RenderWidgetHostView* CreateViewForWidget( | 21 virtual RenderWidgetHostView* CreateViewForWidget( |
| 22 RenderWidgetHost* widget) OVERRIDE; | 22 RenderWidgetHost* widget) OVERRIDE; |
| 23 virtual TabContentsView* CreateTabContentsView( | 23 virtual TabContentsView* CreateTabContentsView( |
| 24 TabContents* tab_contents) OVERRIDE; | 24 TabContents* tab_contents) OVERRIDE; |
| 25 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) OVERRIDE; | 25 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) OVERRIDE; |
| 26 virtual void BrowserRenderProcessHostCreated( | 26 virtual void RenderProcessHostCreated( |
| 27 BrowserRenderProcessHost* host) OVERRIDE; | 27 content::RenderProcessHost* host) OVERRIDE; |
| 28 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; | 28 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; |
| 29 virtual content::WebUIFactory* GetWebUIFactory() OVERRIDE; | 29 virtual content::WebUIFactory* GetWebUIFactory() OVERRIDE; |
| 30 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, | 30 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, |
| 31 const GURL& effective_url) OVERRIDE; | 31 const GURL& effective_url) OVERRIDE; |
| 32 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, | 32 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, |
| 33 const GURL& url) OVERRIDE; | 33 const GURL& url) OVERRIDE; |
| 34 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; | 34 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; |
| 35 virtual bool IsSuitableHost(RenderProcessHost* process_host, | 35 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, |
| 36 const GURL& url) OVERRIDE; | 36 const GURL& url) OVERRIDE; |
| 37 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE; | 37 virtual void SiteInstanceGotProcess(SiteInstance* site_instance) OVERRIDE; |
| 38 virtual void SiteInstanceDeleting(SiteInstance* site_instance) OVERRIDE; | 38 virtual void SiteInstanceDeleting(SiteInstance* site_instance) OVERRIDE; |
| 39 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, | 39 virtual bool ShouldSwapProcessesForNavigation(const GURL& current_url, |
| 40 const GURL& new_url) OVERRIDE; | 40 const GURL& new_url) OVERRIDE; |
| 41 virtual std::string GetCanonicalEncodingNameByAliasName( | 41 virtual std::string GetCanonicalEncodingNameByAliasName( |
| 42 const std::string& alias_name) OVERRIDE; | 42 const std::string& alias_name) OVERRIDE; |
| 43 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 43 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
| 44 int child_process_id) OVERRIDE; | 44 int child_process_id) OVERRIDE; |
| 45 virtual std::string GetApplicationLocale() OVERRIDE; | 45 virtual std::string GetApplicationLocale() OVERRIDE; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 #if defined(USE_NSS) | 147 #if defined(USE_NSS) |
| 148 virtual | 148 virtual |
| 149 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 149 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 150 const GURL& url) OVERRIDE; | 150 const GURL& url) OVERRIDE; |
| 151 #endif | 151 #endif |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 } // namespace chrome | 154 } // namespace chrome |
| 155 | 155 |
| 156 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 156 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |