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 "content/browser/content_browser_client.h" | 9 #include "content/browser/content_browser_client.h" |
10 | 10 |
11 namespace chrome { | 11 namespace chrome { |
12 | 12 |
13 class ChromeContentBrowserClient : public content::ContentBrowserClient { | 13 class ChromeContentBrowserClient : public content::ContentBrowserClient { |
14 public: | 14 public: |
15 virtual void RenderViewHostCreated(RenderViewHost* render_view_host); | 15 virtual void RenderViewHostCreated(RenderViewHost* render_view_host); |
16 virtual void BrowserRenderProcessHostCreated(BrowserRenderProcessHost* host); | 16 virtual void BrowserRenderProcessHostCreated(BrowserRenderProcessHost* host); |
| 17 virtual void PluginProcessHostCreated(PluginProcessHost* host); |
17 virtual void WorkerProcessHostCreated(WorkerProcessHost* host); | 18 virtual void WorkerProcessHostCreated(WorkerProcessHost* host); |
18 virtual content::WebUIFactory* GetWebUIFactory(); | 19 virtual content::WebUIFactory* GetWebUIFactory(); |
19 virtual GURL GetEffectiveURL(Profile* profile, const GURL& url); | 20 virtual GURL GetEffectiveURL(Profile* profile, const GURL& url); |
20 virtual GURL GetAlternateErrorPageURL(const TabContents* tab); | 21 virtual GURL GetAlternateErrorPageURL(const TabContents* tab); |
21 virtual std::string GetCanonicalEncodingNameByAliasName( | 22 virtual std::string GetCanonicalEncodingNameByAliasName( |
22 const std::string& alias_name); | 23 const std::string& alias_name); |
23 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 24 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
24 int child_process_id); | 25 int child_process_id); |
25 virtual std::string GetApplicationLocale(); | 26 virtual std::string GetApplicationLocale(); |
26 virtual bool AllowAppCache(const GURL& manifest_url, | 27 virtual bool AllowAppCache(const GURL& manifest_url, |
(...skipping 13 matching lines...) Expand all Loading... |
40 net::CookieOptions* options); | 41 net::CookieOptions* options); |
41 #if defined(OS_LINUX) | 42 #if defined(OS_LINUX) |
42 // Can return an optional fd for crash handling, otherwise returns -1. | 43 // Can return an optional fd for crash handling, otherwise returns -1. |
43 virtual int GetCrashSignalFD(const std::string& process_type); | 44 virtual int GetCrashSignalFD(const std::string& process_type); |
44 #endif | 45 #endif |
45 }; | 46 }; |
46 | 47 |
47 } // namespace chrome | 48 } // namespace chrome |
48 | 49 |
49 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 50 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |