OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/shell/shell_content_browser_client.h" | 5 #include "content/shell/shell_content_browser_client.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
9 #include "content/shell/shell.h" | 9 #include "content/shell/shell.h" |
10 #include "content/shell/shell_browser_main.h" | 10 #include "content/shell/shell_browser_main.h" |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 } | 120 } |
121 | 121 |
122 SkBitmap* ShellContentBrowserClient::GetDefaultFavicon() { | 122 SkBitmap* ShellContentBrowserClient::GetDefaultFavicon() { |
123 static SkBitmap empty; | 123 static SkBitmap empty; |
124 return ∅ | 124 return ∅ |
125 } | 125 } |
126 | 126 |
127 bool ShellContentBrowserClient::AllowAppCache( | 127 bool ShellContentBrowserClient::AllowAppCache( |
128 const GURL& manifest_url, | 128 const GURL& manifest_url, |
129 const GURL& first_party, | 129 const GURL& first_party, |
130 const content::ResourceContext& context) { | 130 content::ResourceContext* context) { |
131 return true; | 131 return true; |
132 } | 132 } |
133 | 133 |
134 bool ShellContentBrowserClient::AllowGetCookie( | 134 bool ShellContentBrowserClient::AllowGetCookie( |
135 const GURL& url, | 135 const GURL& url, |
136 const GURL& first_party, | 136 const GURL& first_party, |
137 const net::CookieList& cookie_list, | 137 const net::CookieList& cookie_list, |
138 const content::ResourceContext& context, | 138 content::ResourceContext* context, |
139 int render_process_id, | 139 int render_process_id, |
140 int render_view_id) { | 140 int render_view_id) { |
141 return true; | 141 return true; |
142 } | 142 } |
143 | 143 |
144 bool ShellContentBrowserClient::AllowSetCookie( | 144 bool ShellContentBrowserClient::AllowSetCookie( |
145 const GURL& url, | 145 const GURL& url, |
146 const GURL& first_party, | 146 const GURL& first_party, |
147 const std::string& cookie_line, | 147 const std::string& cookie_line, |
148 const content::ResourceContext& context, | 148 content::ResourceContext* context, |
149 int render_process_id, | 149 int render_process_id, |
150 int render_view_id, | 150 int render_view_id, |
151 net::CookieOptions* options) { | 151 net::CookieOptions* options) { |
152 return true; | 152 return true; |
153 } | 153 } |
154 | 154 |
155 bool ShellContentBrowserClient::AllowSaveLocalState( | 155 bool ShellContentBrowserClient::AllowSaveLocalState( |
156 const content::ResourceContext& context) { | 156 content::ResourceContext* context) { |
157 return true; | 157 return true; |
158 } | 158 } |
159 | 159 |
160 bool ShellContentBrowserClient::AllowWorkerDatabase( | 160 bool ShellContentBrowserClient::AllowWorkerDatabase( |
161 const GURL& url, | 161 const GURL& url, |
162 const string16& name, | 162 const string16& name, |
163 const string16& display_name, | 163 const string16& display_name, |
164 unsigned long estimated_size, | 164 unsigned long estimated_size, |
165 const content::ResourceContext& context, | 165 content::ResourceContext* context, |
166 const std::vector<std::pair<int, int> >& render_views) { | 166 const std::vector<std::pair<int, int> >& render_views) { |
167 return true; | 167 return true; |
168 } | 168 } |
169 | 169 |
170 bool ShellContentBrowserClient::AllowWorkerFileSystem( | 170 bool ShellContentBrowserClient::AllowWorkerFileSystem( |
171 const GURL& url, | 171 const GURL& url, |
172 const content::ResourceContext& context, | 172 content::ResourceContext* context, |
173 const std::vector<std::pair<int, int> >& render_views) { | 173 const std::vector<std::pair<int, int> >& render_views) { |
174 return true; | 174 return true; |
175 } | 175 } |
176 | 176 |
177 QuotaPermissionContext* | 177 QuotaPermissionContext* |
178 ShellContentBrowserClient::CreateQuotaPermissionContext() { | 178 ShellContentBrowserClient::CreateQuotaPermissionContext() { |
179 return NULL; | 179 return NULL; |
180 } | 180 } |
181 | 181 |
182 net::URLRequestContext* ShellContentBrowserClient::OverrideRequestContextForURL( | 182 net::URLRequestContext* ShellContentBrowserClient::OverrideRequestContextForURL( |
183 const GURL& url, const content::ResourceContext& context) { | 183 const GURL& url, content::ResourceContext* context) { |
184 return NULL; | 184 return NULL; |
185 } | 185 } |
186 | 186 |
187 void ShellContentBrowserClient::OpenItem(const FilePath& path) { | 187 void ShellContentBrowserClient::OpenItem(const FilePath& path) { |
188 } | 188 } |
189 | 189 |
190 void ShellContentBrowserClient::ShowItemInFolder(const FilePath& path) { | 190 void ShellContentBrowserClient::ShowItemInFolder(const FilePath& path) { |
191 } | 191 } |
192 | 192 |
193 void ShellContentBrowserClient::AllowCertificateError( | 193 void ShellContentBrowserClient::AllowCertificateError( |
(...skipping 18 matching lines...) Expand all Loading... |
212 void ShellContentBrowserClient::RequestDesktopNotificationPermission( | 212 void ShellContentBrowserClient::RequestDesktopNotificationPermission( |
213 const GURL& source_origin, | 213 const GURL& source_origin, |
214 int callback_context, | 214 int callback_context, |
215 int render_process_id, | 215 int render_process_id, |
216 int render_view_id) { | 216 int render_view_id) { |
217 } | 217 } |
218 | 218 |
219 WebKit::WebNotificationPresenter::Permission | 219 WebKit::WebNotificationPresenter::Permission |
220 ShellContentBrowserClient::CheckDesktopNotificationPermission( | 220 ShellContentBrowserClient::CheckDesktopNotificationPermission( |
221 const GURL& source_origin, | 221 const GURL& source_origin, |
222 const content::ResourceContext& context, | 222 content::ResourceContext* context, |
223 int render_process_id) { | 223 int render_process_id) { |
224 return WebKit::WebNotificationPresenter::PermissionAllowed; | 224 return WebKit::WebNotificationPresenter::PermissionAllowed; |
225 } | 225 } |
226 | 226 |
227 void ShellContentBrowserClient::ShowDesktopNotification( | 227 void ShellContentBrowserClient::ShowDesktopNotification( |
228 const content::ShowDesktopNotificationHostMsgParams& params, | 228 const content::ShowDesktopNotificationHostMsgParams& params, |
229 int render_process_id, | 229 int render_process_id, |
230 int render_view_id, | 230 int render_view_id, |
231 bool worker) { | 231 bool worker) { |
232 } | 232 } |
233 | 233 |
234 void ShellContentBrowserClient::CancelDesktopNotification( | 234 void ShellContentBrowserClient::CancelDesktopNotification( |
235 int render_process_id, | 235 int render_process_id, |
236 int render_view_id, | 236 int render_view_id, |
237 int notification_id) { | 237 int notification_id) { |
238 } | 238 } |
239 | 239 |
240 bool ShellContentBrowserClient::CanCreateWindow( | 240 bool ShellContentBrowserClient::CanCreateWindow( |
241 const GURL& origin, | 241 const GURL& origin, |
242 WindowContainerType container_type, | 242 WindowContainerType container_type, |
243 const content::ResourceContext& context, | 243 content::ResourceContext* context, |
244 int render_process_id) { | 244 int render_process_id) { |
245 return true; | 245 return true; |
246 } | 246 } |
247 | 247 |
248 std::string ShellContentBrowserClient::GetWorkerProcessTitle( | 248 std::string ShellContentBrowserClient::GetWorkerProcessTitle( |
249 const GURL& url, const content::ResourceContext& context) { | 249 const GURL& url, content::ResourceContext* context) { |
250 return std::string(); | 250 return std::string(); |
251 } | 251 } |
252 | 252 |
253 void ShellContentBrowserClient::ResourceDispatcherHostCreated() { | 253 void ShellContentBrowserClient::ResourceDispatcherHostCreated() { |
254 } | 254 } |
255 | 255 |
256 ui::Clipboard* ShellContentBrowserClient::GetClipboard() { | 256 ui::Clipboard* ShellContentBrowserClient::GetClipboard() { |
257 return shell_browser_main_parts_->GetClipboard(); | 257 return shell_browser_main_parts_->GetClipboard(); |
258 } | 258 } |
259 | 259 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 #endif | 321 #endif |
322 | 322 |
323 #if defined(USE_NSS) | 323 #if defined(USE_NSS) |
324 crypto::CryptoModuleBlockingPasswordDelegate* | 324 crypto::CryptoModuleBlockingPasswordDelegate* |
325 ShellContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { | 325 ShellContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { |
326 return NULL; | 326 return NULL; |
327 } | 327 } |
328 #endif | 328 #endif |
329 | 329 |
330 } // namespace content | 330 } // namespace content |
OLD | NEW |