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 PreCreateRenderView(RenderViewHost* render_view_host, | 16 virtual void PreCreateRenderView(RenderViewHost* render_view_host, |
17 Profile* profile, | 17 Profile* profile, |
18 const GURL& url); | 18 const GURL& url); |
19 virtual void BrowserRenderProcessHostCreated(BrowserRenderProcessHost* host); | 19 virtual void BrowserRenderProcessHostCreated(BrowserRenderProcessHost* host); |
20 virtual void WorkerProcessHostCreated(WorkerProcessHost* host); | 20 virtual void WorkerProcessHostCreated(WorkerProcessHost* host); |
21 virtual content::WebUIFactory* GetWebUIFactory(); | 21 virtual content::WebUIFactory* GetWebUIFactory(); |
22 virtual GURL GetEffectiveURL(Profile* profile, const GURL& url); | 22 virtual GURL GetEffectiveURL(Profile* profile, const GURL& url); |
23 virtual GURL GetAlternateErrorPageURL(const TabContents* tab); | 23 virtual GURL GetAlternateErrorPageURL(const TabContents* tab); |
24 virtual std::string GetCanonicalEncodingNameByAliasName( | 24 virtual std::string GetCanonicalEncodingNameByAliasName( |
25 const std::string& alias_name); | 25 const std::string& alias_name); |
26 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, | 26 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, |
27 int child_process_id); | 27 int child_process_id); |
28 virtual std::string GetApplicationLocale(); | 28 virtual std::string GetApplicationLocale(); |
| 29 virtual bool AllowAppCache(const GURL& manifest_url, |
| 30 const content::ResourceContext* context); |
29 #if defined(OS_LINUX) | 31 #if defined(OS_LINUX) |
30 // Can return an optional fd for crash handling, otherwise returns -1. | 32 // Can return an optional fd for crash handling, otherwise returns -1. |
31 virtual int GetCrashSignalFD(const std::string& process_type); | 33 virtual int GetCrashSignalFD(const std::string& process_type); |
32 #endif | 34 #endif |
33 }; | 35 }; |
34 | 36 |
35 } // namespace chrome | 37 } // namespace chrome |
36 | 38 |
37 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ | 39 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ |
OLD | NEW |