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

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

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_content_browser_client.h ('k') | content/shell/shell_content_client.h » ('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 #include "content/shell/shell_content_browser_client.h"
6
7 #include "base/file_path.h"
8 #include "content/browser/webui/empty_web_ui_factory.h"
9 #include "googleurl/src/gurl.h"
10 #include "third_party/skia/include/core/SkBitmap.h"
11 #include "ui/base/clipboard/clipboard.h"
12 #include "webkit/glue/webpreferences.h"
13
14 namespace content {
15
16 ShellContentBrowserClient::~ShellContentBrowserClient() {
17 }
18
19 BrowserMainParts* ShellContentBrowserClient::CreateBrowserMainParts(
20 const MainFunctionParams& parameters) {
21 return NULL;
22 }
23
24 TabContentsView* ShellContentBrowserClient::CreateTabContentsView(
25 TabContents* tab_contents) {
26 return NULL;
27 }
28
29 void ShellContentBrowserClient::RenderViewHostCreated(
30 RenderViewHost* render_view_host) {
31 }
32
33 void ShellContentBrowserClient::BrowserRenderProcessHostCreated(
34 BrowserRenderProcessHost* host) {
35 }
36
37 void ShellContentBrowserClient::PluginProcessHostCreated(
38 PluginProcessHost* host) {
39 }
40
41 void ShellContentBrowserClient::WorkerProcessHostCreated(
42 WorkerProcessHost* host) {
43 }
44
45 WebUIFactory* ShellContentBrowserClient::GetWebUIFactory() {
46 // Return an empty factory so callsites don't have to check for NULL.
47 return EmptyWebUIFactory::Get();
48 }
49
50 GURL ShellContentBrowserClient::GetEffectiveURL(
51 content::BrowserContext* browser_context, const GURL& url) {
52 return GURL();
53 }
54
55 bool ShellContentBrowserClient::ShouldUseProcessPerSite(
56 BrowserContext* browser_context, const GURL& effective_url) {
57 return false;
58 }
59
60 bool ShellContentBrowserClient::IsURLSameAsAnySiteInstance(const GURL& url) {
61 return false;
62 }
63
64 std::string ShellContentBrowserClient::GetCanonicalEncodingNameByAliasName(
65 const std::string& alias_name) {
66 return std::string();
67 }
68
69 void ShellContentBrowserClient::AppendExtraCommandLineSwitches(
70 CommandLine* command_line, int child_process_id) {
71 }
72
73 std::string ShellContentBrowserClient::GetApplicationLocale() {
74 return std::string();
75 }
76
77 std::string ShellContentBrowserClient::GetAcceptLangs(const TabContents* tab) {
78 return std::string();
79 }
80
81 SkBitmap* ShellContentBrowserClient::GetDefaultFavicon() {
82 static SkBitmap empty;
83 return ∅
84 }
85
86 bool ShellContentBrowserClient::AllowAppCache(
87 const GURL& manifest_url,
88 const GURL& first_party,
89 const content::ResourceContext& context) {
90 return true;
91 }
92
93 bool ShellContentBrowserClient::AllowGetCookie(
94 const GURL& url,
95 const GURL& first_party,
96 const net::CookieList& cookie_list,
97 const content::ResourceContext& context,
98 int render_process_id,
99 int render_view_id) {
100 return true;
101 }
102
103 bool ShellContentBrowserClient::AllowSetCookie(
104 const GURL& url,
105 const GURL& first_party,
106 const std::string& cookie_line,
107 const content::ResourceContext& context,
108 int render_process_id,
109 int render_view_id,
110 net::CookieOptions* options) {
111 return true;
112 }
113
114 bool ShellContentBrowserClient::AllowSaveLocalState(
115 const content::ResourceContext& context) {
116 return true;
117 }
118
119 QuotaPermissionContext*
120 ShellContentBrowserClient::CreateQuotaPermissionContext() {
121 return NULL;
122 }
123
124 net::URLRequestContext* ShellContentBrowserClient::OverrideRequestContextForURL(
125 const GURL& url, const content::ResourceContext& context) {
126 return NULL;
127 }
128
129 void ShellContentBrowserClient::OpenItem(const FilePath& path) {
130 }
131
132 void ShellContentBrowserClient::ShowItemInFolder(const FilePath& path) {
133 }
134
135 void ShellContentBrowserClient::AllowCertificateError(
136 SSLCertErrorHandler* handler,
137 bool overridable,
138 Callback2<SSLCertErrorHandler*, bool>::Type* callback) {
139 }
140
141 void ShellContentBrowserClient::SelectClientCertificate(
142 int render_process_id,
143 int render_view_id,
144 SSLClientAuthHandler* handler) {
145 }
146
147 void ShellContentBrowserClient::AddNewCertificate(
148 net::URLRequest* request,
149 net::X509Certificate* cert,
150 int render_process_id,
151 int render_view_id) {
152 }
153
154 void ShellContentBrowserClient::RequestDesktopNotificationPermission(
155 const GURL& source_origin,
156 int callback_context,
157 int render_process_id,
158 int render_view_id) {
159 }
160
161 WebKit::WebNotificationPresenter::Permission
162 ShellContentBrowserClient::CheckDesktopNotificationPermission(
163 const GURL& source_url,
164 const content::ResourceContext& context) {
165 return WebKit::WebNotificationPresenter::PermissionAllowed;
166 }
167
168 void ShellContentBrowserClient::ShowDesktopNotification(
169 const DesktopNotificationHostMsg_Show_Params& params,
170 int render_process_id,
171 int render_view_id,
172 bool worker) {
173 }
174
175 void ShellContentBrowserClient::CancelDesktopNotification(
176 int render_process_id,
177 int render_view_id,
178 int notification_id) {
179 }
180
181 bool ShellContentBrowserClient::CanCreateWindow(
182 const GURL& source_url,
183 WindowContainerType container_type,
184 const content::ResourceContext& context) {
185 return false;
186 }
187
188 std::string ShellContentBrowserClient::GetWorkerProcessTitle(
189 const GURL& url, const content::ResourceContext& context) {
190 return std::string();
191 }
192
193 ResourceDispatcherHost* ShellContentBrowserClient::GetResourceDispatcherHost() {
194 return NULL;
195 }
196
197 ui::Clipboard* ShellContentBrowserClient::GetClipboard() {
198 static ui::Clipboard clipboard;
199 return &clipboard;
200 }
201
202 MHTMLGenerationManager* ShellContentBrowserClient::GetMHTMLGenerationManager() {
203 return NULL;
204 }
205
206 DevToolsManager* ShellContentBrowserClient::GetDevToolsManager() {
207 return NULL;
208 }
209
210 net::NetLog* ShellContentBrowserClient::GetNetLog() {
211 return NULL;
212 }
213
214 speech_input::SpeechInputManager*
215 ShellContentBrowserClient::GetSpeechInputManager() {
216 return NULL;
217 }
218
219 AccessTokenStore* ShellContentBrowserClient::CreateAccessTokenStore() {
220 return NULL;
221 }
222
223 bool ShellContentBrowserClient::IsFastShutdownPossible() {
224 return true;
225 }
226
227 WebPreferences ShellContentBrowserClient::GetWebkitPrefs(
228 content::BrowserContext* browser_context,
229 bool is_web_ui) {
230 return WebPreferences();
231 }
232
233 void ShellContentBrowserClient::UpdateInspectorSetting(
234 RenderViewHost* rvh, const std::string& key, const std::string& value) {
235 }
236
237 void ShellContentBrowserClient::ClearInspectorSettings(RenderViewHost* rvh) {
238 }
239
240 void ShellContentBrowserClient::BrowserURLHandlerCreated(
241 BrowserURLHandler* handler) {
242 }
243
244 void ShellContentBrowserClient::ClearCache(RenderViewHost* rvh) {
245 }
246
247 void ShellContentBrowserClient::ClearCookies(RenderViewHost* rvh) {
248 }
249
250 FilePath ShellContentBrowserClient::GetDefaultDownloadDirectory() {
251 return FilePath();
252 }
253
254 net::URLRequestContextGetter*
255 ShellContentBrowserClient::GetDefaultRequestContextDeprecatedCrBug64339() {
256 return NULL;
257 }
258
259 net::URLRequestContextGetter*
260 ShellContentBrowserClient::GetSystemRequestContext() {
261 return NULL;
262 }
263
264 #if defined(OS_POSIX) && !defined(OS_MACOSX)
265 int ShellContentBrowserClient::GetCrashSignalFD(
266 const std::string& process_type) {
267 return -1;
268 }
269 #endif
270
271 #if defined(OS_WIN)
272 const wchar_t* ShellContentBrowserClient::GetResourceDllName() {
273 return NULL;
274 }
275 #endif
276
277 #if defined(USE_NSS)
278 crypto::CryptoModuleBlockingPasswordDelegate*
279 ShellContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) {
280 return NULL;
281 }
282 #endif
283
284 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_content_browser_client.h ('k') | content/shell/shell_content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698