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

Side by Side Diff: content/shell/shell_content_browser_client.h

Issue 7857019: Basic scaffolding for a "content shell", i.e. test browser over the content module. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | « content/shell/shell_browser_main.cc ('k') | content/shell/shell_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')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_
7 #pragma once
8
9 #include <string>
10
11 #include "base/compiler_specific.h"
12 #include "content/browser/content_browser_client.h"
13
14 namespace content {
15
16 class ShellContentBrowserClient : public ContentBrowserClient {
17 public:
18 virtual ~ShellContentBrowserClient();
19
20 virtual BrowserMainParts* CreateBrowserMainParts(
21 const MainFunctionParams& parameters) OVERRIDE;
22 virtual TabContentsView* CreateTabContentsView(
23 TabContents* tab_contents) OVERRIDE;
24 virtual void RenderViewHostCreated(
25 RenderViewHost* render_view_host) OVERRIDE;
26 virtual void BrowserRenderProcessHostCreated(
27 BrowserRenderProcessHost* host) OVERRIDE;
28 virtual void PluginProcessHostCreated(PluginProcessHost* host) OVERRIDE;
29 virtual void WorkerProcessHostCreated(WorkerProcessHost* host) OVERRIDE;
30 virtual WebUIFactory* GetWebUIFactory() OVERRIDE;
31 virtual GURL GetEffectiveURL(content::BrowserContext* browser_context,
32 const GURL& url) OVERRIDE;
33 virtual bool ShouldUseProcessPerSite(BrowserContext* browser_context,
34 const GURL& effective_url) OVERRIDE;
35 virtual bool IsURLSameAsAnySiteInstance(const GURL& url) OVERRIDE;
36 virtual std::string GetCanonicalEncodingNameByAliasName(
37 const std::string& alias_name) OVERRIDE;
38 virtual void AppendExtraCommandLineSwitches(CommandLine* command_line,
39 int child_process_id) OVERRIDE;
40 virtual std::string GetApplicationLocale() OVERRIDE;
41 virtual std::string GetAcceptLangs(const TabContents* tab) OVERRIDE;
42 virtual SkBitmap* GetDefaultFavicon() OVERRIDE;
43 virtual bool AllowAppCache(const GURL& manifest_url,
44 const GURL& first_party,
45 const content::ResourceContext& context) OVERRIDE;
46 virtual bool AllowGetCookie(const GURL& url,
47 const GURL& first_party,
48 const net::CookieList& cookie_list,
49 const content::ResourceContext& context,
50 int render_process_id,
51 int render_view_id) OVERRIDE;
52 virtual bool AllowSetCookie(const GURL& url,
53 const GURL& first_party,
54 const std::string& cookie_line,
55 const content::ResourceContext& context,
56 int render_process_id,
57 int render_view_id,
58 net::CookieOptions* options) OVERRIDE;
59 virtual bool AllowSaveLocalState(
60 const content::ResourceContext& context) OVERRIDE;
61 virtual net::URLRequestContext* OverrideRequestContextForURL(
62 const GURL& url, const content::ResourceContext& context) OVERRIDE;
63 virtual QuotaPermissionContext* CreateQuotaPermissionContext() OVERRIDE;
64 virtual void OpenItem(const FilePath& path) OVERRIDE;
65 virtual void ShowItemInFolder(const FilePath& path) OVERRIDE;
66 virtual void AllowCertificateError(
67 SSLCertErrorHandler* handler,
68 bool overridable,
69 Callback2<SSLCertErrorHandler*, bool>::Type* callback) OVERRIDE;
70 virtual void SelectClientCertificate(
71 int render_process_id,
72 int render_view_id,
73 SSLClientAuthHandler* handler) OVERRIDE;
74 virtual void AddNewCertificate(
75 net::URLRequest* request,
76 net::X509Certificate* cert,
77 int render_process_id,
78 int render_view_id) OVERRIDE;
79 virtual void RequestDesktopNotificationPermission(
80 const GURL& source_origin,
81 int callback_context,
82 int render_process_id,
83 int render_view_id) OVERRIDE;
84 virtual WebKit::WebNotificationPresenter::Permission
85 CheckDesktopNotificationPermission(
86 const GURL& source_url,
87 const content::ResourceContext& context) OVERRIDE;
88 virtual void ShowDesktopNotification(
89 const DesktopNotificationHostMsg_Show_Params& params,
90 int render_process_id,
91 int render_view_id,
92 bool worker) OVERRIDE;
93 virtual void CancelDesktopNotification(
94 int render_process_id,
95 int render_view_id,
96 int notification_id) OVERRIDE;
97 virtual bool CanCreateWindow(
98 const GURL& source_url,
99 WindowContainerType container_type,
100 const content::ResourceContext& context) OVERRIDE;
101 virtual std::string GetWorkerProcessTitle(
102 const GURL& url, const content::ResourceContext& context) OVERRIDE;
103 virtual ResourceDispatcherHost* GetResourceDispatcherHost() OVERRIDE;
104 virtual ui::Clipboard* GetClipboard() OVERRIDE;
105 virtual MHTMLGenerationManager* GetMHTMLGenerationManager() OVERRIDE;
106 virtual DevToolsManager* GetDevToolsManager() OVERRIDE;
107 virtual net::NetLog* GetNetLog() OVERRIDE;
108 virtual speech_input::SpeechInputManager* GetSpeechInputManager() OVERRIDE;
109 virtual AccessTokenStore* CreateAccessTokenStore() OVERRIDE;
110 virtual bool IsFastShutdownPossible() OVERRIDE;
111 virtual WebPreferences GetWebkitPrefs(
112 content::BrowserContext* browser_context,
113 bool is_web_ui) OVERRIDE;
114 virtual void UpdateInspectorSetting(RenderViewHost* rvh,
115 const std::string& key,
116 const std::string& value) OVERRIDE;
117 virtual void ClearInspectorSettings(RenderViewHost* rvh) OVERRIDE;
118 virtual void BrowserURLHandlerCreated(BrowserURLHandler* handler) OVERRIDE;
119 virtual void ClearCache(RenderViewHost* rvh) OVERRIDE;
120 virtual void ClearCookies(RenderViewHost* rvh) OVERRIDE;
121 virtual FilePath GetDefaultDownloadDirectory() OVERRIDE;
122 virtual net::URLRequestContextGetter*
123 GetDefaultRequestContextDeprecatedCrBug64339() OVERRIDE;
124 virtual net::URLRequestContextGetter* GetSystemRequestContext() OVERRIDE;
125
126 #if defined(OS_POSIX) && !defined(OS_MACOSX)
127 virtual int GetCrashSignalFD(const std::string& process_type) OVERRIDE;
128 #endif
129
130 #if defined(OS_WIN)
131 virtual const wchar_t* GetResourceDllName() OVERRIDE;
132 #endif
133
134 #if defined(USE_NSS)
135 virtual
136 crypto::CryptoModuleBlockingPasswordDelegate* GetCryptoPasswordDelegate(
137 const GURL& url) OVERRIDE;
138 #endif
139 };
140
141 } // namespace content
142
143 #endif // CONTENT_SHELL_SHELL_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/shell/shell_browser_main.cc ('k') | content/shell/shell_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698