OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/browser/shell_content_browser_client.h" | 5 #include "content/shell/browser/shell_content_browser_client.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/base_switches.h" | 10 #include "base/base_switches.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 #include "content/shell/browser/shell_browser_main_parts.h" | 32 #include "content/shell/browser/shell_browser_main_parts.h" |
33 #include "content/shell/browser/shell_devtools_manager_delegate.h" | 33 #include "content/shell/browser/shell_devtools_manager_delegate.h" |
34 #include "content/shell/browser/shell_net_log.h" | 34 #include "content/shell/browser/shell_net_log.h" |
35 #include "content/shell/browser/shell_quota_permission_context.h" | 35 #include "content/shell/browser/shell_quota_permission_context.h" |
36 #include "content/shell/browser/shell_resource_dispatcher_host_delegate.h" | 36 #include "content/shell/browser/shell_resource_dispatcher_host_delegate.h" |
37 #include "content/shell/browser/shell_web_contents_view_delegate_creator.h" | 37 #include "content/shell/browser/shell_web_contents_view_delegate_creator.h" |
38 #include "content/shell/common/shell_messages.h" | 38 #include "content/shell/common/shell_messages.h" |
39 #include "content/shell/common/shell_switches.h" | 39 #include "content/shell/common/shell_switches.h" |
40 #include "grit/shell_resources.h" | 40 #include "grit/shell_resources.h" |
41 #include "net/url_request/url_request_context_getter.h" | 41 #include "net/url_request/url_request_context_getter.h" |
42 #include "storage/browser/quota/quota_settings.h" | |
43 #include "ui/base/resource/resource_bundle.h" | 42 #include "ui/base/resource/resource_bundle.h" |
44 #include "url/gurl.h" | 43 #include "url/gurl.h" |
45 #include "url/origin.h" | 44 #include "url/origin.h" |
46 | 45 |
47 #if defined(OS_ANDROID) | 46 #if defined(OS_ANDROID) |
48 #include "base/android/apk_assets.h" | 47 #include "base/android/apk_assets.h" |
49 #include "base/android/path_utils.h" | 48 #include "base/android/path_utils.h" |
50 #include "components/crash/content/browser/crash_dump_manager_android.h" | 49 #include "components/crash/content/browser/crash_dump_manager_android.h" |
51 #include "content/shell/android/shell_descriptors.h" | 50 #include "content/shell/android/shell_descriptors.h" |
52 #endif | 51 #endif |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
286 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate( | 285 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate( |
287 WebContents* web_contents) { | 286 WebContents* web_contents) { |
288 return CreateShellWebContentsViewDelegate(web_contents); | 287 return CreateShellWebContentsViewDelegate(web_contents); |
289 } | 288 } |
290 | 289 |
291 QuotaPermissionContext* | 290 QuotaPermissionContext* |
292 ShellContentBrowserClient::CreateQuotaPermissionContext() { | 291 ShellContentBrowserClient::CreateQuotaPermissionContext() { |
293 return new ShellQuotaPermissionContext(); | 292 return new ShellQuotaPermissionContext(); |
294 } | 293 } |
295 | 294 |
296 void ShellContentBrowserClient::GetQuotaSettings( | |
297 BrowserContext* context, | |
298 StoragePartition* partition, | |
299 const storage::OptionalQuotaSettingsCallback& callback) { | |
300 callback.Run(storage::GetHardCodedSettings(100 * 1024 * 1024)); | |
301 } | |
302 | |
303 void ShellContentBrowserClient::SelectClientCertificate( | 295 void ShellContentBrowserClient::SelectClientCertificate( |
304 WebContents* web_contents, | 296 WebContents* web_contents, |
305 net::SSLCertRequestInfo* cert_request_info, | 297 net::SSLCertRequestInfo* cert_request_info, |
306 std::unique_ptr<ClientCertificateDelegate> delegate) { | 298 std::unique_ptr<ClientCertificateDelegate> delegate) { |
307 if (!select_client_certificate_callback_.is_null()) | 299 if (!select_client_certificate_callback_.is_null()) |
308 select_client_certificate_callback_.Run(); | 300 select_client_certificate_callback_.Run(); |
309 } | 301 } |
310 | 302 |
311 SpeechRecognitionManagerDelegate* | 303 SpeechRecognitionManagerDelegate* |
312 ShellContentBrowserClient::CreateSpeechRecognitionManagerDelegate() { | 304 ShellContentBrowserClient::CreateSpeechRecognitionManagerDelegate() { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 ShellBrowserContext* ShellContentBrowserClient::browser_context() { | 388 ShellBrowserContext* ShellContentBrowserClient::browser_context() { |
397 return shell_browser_main_parts_->browser_context(); | 389 return shell_browser_main_parts_->browser_context(); |
398 } | 390 } |
399 | 391 |
400 ShellBrowserContext* | 392 ShellBrowserContext* |
401 ShellContentBrowserClient::off_the_record_browser_context() { | 393 ShellContentBrowserClient::off_the_record_browser_context() { |
402 return shell_browser_main_parts_->off_the_record_browser_context(); | 394 return shell_browser_main_parts_->off_the_record_browser_context(); |
403 } | 395 } |
404 | 396 |
405 } // namespace content | 397 } // namespace content |
OLD | NEW |