| 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 "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "content/browser/content_browser_client.h" | 10 #include "content/browser/content_browser_client.h" |
| 11 | 11 |
| 12 class QuotaPermissionContext; | 12 class QuotaPermissionContext; |
| 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 RenderViewHostCreated(RenderViewHost* render_view_host) OVERRIDE; | 18 virtual void RenderViewHostCreated(RenderViewHost* render_view_host) OVERRIDE; |
| 19 virtual void BrowserRenderProcessHostCreated( | 19 virtual void BrowserRenderProcessHostCreated( |
| 20 BrowserRenderProcessHost* host) OVERRIDE; | 20 BrowserRenderProcessHost* host) OVERRIDE; |
| 21 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; | 21 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE; |
| 22 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE; | 22 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE; |
| 23 virtual content::WebUIFactory* GetWebUIFactory() OVERRIDE; | 23 virtual content::WebUIFactory* GetWebUIFactory() OVERRIDE; |
| 24 virtual bool ShouldUseProcessPerSite(Profile* profile, | 24 virtual bool ShouldUseProcessPerSite(content::BrowserContext* browser_context, |
| 25 const GURL& effective_url) OVERRIDE; | 25 const GURL& effective_url) OVERRIDE; |
| 26 virtual GURL GetEffectiveURL(Profile* profile, const GURL& url) OVERRIDE; | 26 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context, |
| 27 const GURL& url) OVERRIDE; |
| 27 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; | 28 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE; |
| 28 virtual std::string GetCanonicalEncodingNameByAliasName( | 29 virtual std::string GetCanonicalEncodingNameByAliasName( |
| 29 const std::string& alias_name) OVERRIDE; | 30 const std::string& alias_name) OVERRIDE; |
| 30 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 31 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
| 31 int child_process_id) OVERRIDE; | 32 int child_process_id) OVERRIDE; |
| 32 virtual std::string GetApplicationLocale() OVERRIDE; | 33 virtual std::string GetApplicationLocale() OVERRIDE; |
| 33 virtual std::string GetAcceptLangs(const TabContents* tab) OVERRIDE; | 34 virtual std::string GetAcceptLangs(const TabContents* tab) OVERRIDE; |
| 34 virtual SkBitmap* GetDefaultFavicon() OVERRIDE; | 35 virtual SkBitmap* GetDefaultFavicon() OVERRIDE; |
| 35 virtual bool AllowAppCache(const GURL& manifest_url, | 36 virtual bool AllowAppCache(const GURL& manifest_url, |
| 36 const content::ResourceContext& context) OVERRIDE; | 37 const content::ResourceContext& context) OVERRIDE; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 const GURL& source_url, | 89 const GURL& source_url, |
| 89 WindowContainerType container_type, | 90 WindowContainerType container_type, |
| 90 const content::ResourceContext& context) OVERRIDE; | 91 const content::ResourceContext& context) OVERRIDE; |
| 91 virtual std::string GetWorkerProcessTitle( | 92 virtual std::string GetWorkerProcessTitle( |
| 92 const GURL& url, const content::ResourceContext& context) OVERRIDE; | 93 const GURL& url, const content::ResourceContext& context) OVERRIDE; |
| 93 virtual ResourceDispatcherHost* GetResourceDispatcherHost() OVERRIDE; | 94 virtual ResourceDispatcherHost* GetResourceDispatcherHost() OVERRIDE; |
| 94 virtual ui::Clipboard* GetClipboard() OVERRIDE; | 95 virtual ui::Clipboard* GetClipboard() OVERRIDE; |
| 95 virtual MHTMLGenerationManager* GetMHTMLGenerationManager() OVERRIDE; | 96 virtual MHTMLGenerationManager* GetMHTMLGenerationManager() OVERRIDE; |
| 96 virtual DevToolsManager* GetDevToolsManager() OVERRIDE; | 97 virtual DevToolsManager* GetDevToolsManager() OVERRIDE; |
| 97 virtual bool IsFastShutdownPossible() OVERRIDE; | 98 virtual bool IsFastShutdownPossible() OVERRIDE; |
| 98 virtual WebPreferences GetWebkitPrefs(Profile* profile, | 99 virtual WebPreferences GetWebkitPrefs( |
| 99 bool is_web_ui) OVERRIDE; | 100 content::BrowserContext* browser_context, |
| 101 bool is_web_ui) OVERRIDE; |
| 100 virtual void UpdateInspectorSetting(RenderViewHost* rvh, | 102 virtual void UpdateInspectorSetting(RenderViewHost* rvh, |
| 101 const std::string& key, | 103 const std::string& key, |
| 102 const std::string& value) OVERRIDE; | 104 const std::string& value) OVERRIDE; |
| 103 virtual void ClearInspectorSettings(RenderViewHost* rvh) OVERRIDE; | 105 virtual void ClearInspectorSettings(RenderViewHost* rvh) OVERRIDE; |
| 104 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) OVERRIDE; | 106 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) OVERRIDE; |
| 105 virtual void ClearCache(RenderViewHost* rvh) OVERRIDE; | 107 virtual void ClearCache(RenderViewHost* rvh) OVERRIDE; |
| 106 virtual void ClearCookies(RenderViewHost* rvh) OVERRIDE; | 108 virtual void ClearCookies(RenderViewHost* rvh) OVERRIDE; |
| 107 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package, | 109 virtual void ChooseSavePath(const base::WeakPtr<SavePackage>& save_package, |
| 108 const FilePath& suggested_path, | 110 const FilePath& suggested_path, |
| 109 bool can_save_as_complete) OVERRIDE; | 111 bool can_save_as_complete) OVERRIDE; |
| 110 | 112 |
| 111 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 113 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 112 // Can return an optional fd for crash handling, otherwise returns -1. | 114 // Can return an optional fd for crash handling, otherwise returns -1. |
| 113 virtual int GetCrashSignalFD(const std::string& process_type) OVERRIDE; | 115 virtual int GetCrashSignalFD(const std::string& process_type) OVERRIDE; |
| 114 #endif | 116 #endif |
| 115 #if defined(USE_NSS) | 117 #if defined(USE_NSS) |
| 116 virtual | 118 virtual |
| 117 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( | 119 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate( |
| 118 const GURL& url) OVERRIDE; | 120 const GURL& url) OVERRIDE; |
| 119 #endif | 121 #endif |
| 120 }; | 122 }; |
| 121 | 123 |
| 122 } // namespace chrome | 124 } // namespace chrome |
| 123 | 125 |
| 124 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 126 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |