Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(81)

Side by Side Diff: chrome/browser/chrome_content_browser_client.h

Issue 7066039: Remove dependency on PrefChangeRegistrar and renderer_preferences_util from content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 PluginProcessHostCreated(PluginProcessHost* host);
18 virtual void WorkerProcessHostCreated(WorkerProcessHost* host); 18 virtual void WorkerProcessHostCreated(WorkerProcessHost* host);
19 virtual content::WebUIFactory* GetWebUIFactory(); 19 virtual content::WebUIFactory* GetWebUIFactory();
20 virtual GURL GetEffectiveURL(Profile* profile, const GURL& url); 20 virtual GURL GetEffectiveURL(Profile* profile, const GURL& url);
21 virtual bool IsURLSameAsAnySiteInstance(const GURL& url); 21 virtual bool IsURLSameAsAnySiteInstance(const GURL& url);
22 virtual GURL GetAlternateErrorPageURL(const TabContents* tab);
23 virtual std::string GetCanonicalEncodingNameByAliasName( 22 virtual std::string GetCanonicalEncodingNameByAliasName(
24 const std::string& alias_name); 23 const std::string& alias_name);
25 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line, 24 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line,
26 int child_process_id); 25 int child_process_id);
27 virtual std::string GetApplicationLocale(); 26 virtual std::string GetApplicationLocale();
28 virtual bool AllowAppCache(const GURL& manifest_url, 27 virtual bool AllowAppCache(const GURL& manifest_url,
29 const content::ResourceContext& context); 28 const content::ResourceContext& context);
30 virtual bool AllowGetCookie(const GURL& url, 29 virtual bool AllowGetCookie(const GURL& url,
31 const GURL& first_party, 30 const GURL& first_party,
32 const net::CookieList& cookie_list, 31 const net::CookieList& cookie_list,
33 const content::ResourceContext& context, 32 const content::ResourceContext& context,
34 int render_process_id, 33 int render_process_id,
35 int render_view_id); 34 int render_view_id);
36 virtual bool AllowSetCookie(const GURL& url, 35 virtual bool AllowSetCookie(const GURL& url,
37 const GURL& first_party, 36 const GURL& first_party,
38 const std::string& cookie_line, 37 const std::string& cookie_line,
39 const content::ResourceContext& context, 38 const content::ResourceContext& context,
40 int render_process_id, 39 int render_process_id,
41 int render_view_id, 40 int render_view_id,
42 net::CookieOptions* options); 41 net::CookieOptions* options);
43 #if defined(OS_LINUX) 42 #if defined(OS_LINUX)
44 // Can return an optional fd for crash handling, otherwise returns -1. 43 // Can return an optional fd for crash handling, otherwise returns -1.
45 virtual int GetCrashSignalFD(const std::string& process_type); 44 virtual int GetCrashSignalFD(const std::string& process_type);
46 #endif 45 #endif
47 }; 46 };
48 47
49 } // namespace chrome 48 } // namespace chrome
50 49
51 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_ 50 #endif // CHROME_BROWSER_CHROME_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chrome_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698