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 #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 content::BrowserMainParts* CreateBrowserMainParts( | 18 virtual content::BrowserMainParts* CreateBrowserMainParts( |
19 const content::MainFunctionParams& parameters) OVERRIDE; | 19 const content::MainFunctionParams& parameters) OVERRIDE; |
20 virtual content::WebContentsView* CreateWebContentsView( | 20 virtual content::WebContentsView* CreateWebContentsView( |
21 content::WebContents* web_contents) OVERRIDE; | 21 content::WebContents* web_contents) OVERRIDE; |
22 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) OVERRIDE; | 22 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) OVERRIDE; |
23 virtual void RenderProcessHostCreated( | 23 virtual void RenderProcessHostCreated( |
24 content::RenderProcessHost* host) OVERRIDE; | 24 content::RenderProcessHost* host) OVERRIDE; |
25 virtual content::WebUIFactory* GetWebUIFactory() OVERRIDE; | 25 virtual content::WebUIControllerFactory* GetWebUIControllerFactory() OVERRIDE; |
26 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, | 26 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, |
27 const GURL& effective_url) OVERRIDE; | 27 const GURL& effective_url) OVERRIDE; |
28 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, | 28 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, |
29 const GURL& url) OVERRIDE; | 29 const GURL& url) OVERRIDE; |
30 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; | 30 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; |
31 virtual bool IsHandledURL(const GURL& url) OVERRIDE; | 31 virtual bool IsHandledURL(const GURL& url) OVERRIDE; |
32 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, | 32 virtual bool IsSuitableHost(content::RenderProcessHost* process_host, |
33 const GURL& url) OVERRIDE; | 33 const GURL& url) OVERRIDE; |
34 virtual void SiteInstanceGotProcess( | 34 virtual void SiteInstanceGotProcess( |
35 content::SiteInstance* site_instance) OVERRIDE; | 35 content::SiteInstance* site_instance) OVERRIDE; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 #if defined(USE_NSS) | 146 #if defined(USE_NSS) |
147 virtual | 147 virtual |
148 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 148 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
149 const GURL& url) OVERRIDE; | 149 const GURL& url) OVERRIDE; |
150 #endif | 150 #endif |
151 }; | 151 }; |
152 | 152 |
153 } // namespace chrome | 153 } // namespace chrome |
154 | 154 |
155 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 155 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |