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" |
42 #include "ui/base/resource/resource_bundle.h" | 43 #include "ui/base/resource/resource_bundle.h" |
43 #include "url/gurl.h" | 44 #include "url/gurl.h" |
44 #include "url/origin.h" | 45 #include "url/origin.h" |
45 | 46 |
46 #if defined(OS_ANDROID) | 47 #if defined(OS_ANDROID) |
47 #include "base/android/apk_assets.h" | 48 #include "base/android/apk_assets.h" |
48 #include "base/android/path_utils.h" | 49 #include "base/android/path_utils.h" |
49 #include "components/crash/content/browser/crash_dump_manager_android.h" | 50 #include "components/crash/content/browser/crash_dump_manager_android.h" |
50 #include "content/shell/android/shell_descriptors.h" | 51 #include "content/shell/android/shell_descriptors.h" |
51 #endif | 52 #endif |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate( | 286 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate( |
286 WebContents* web_contents) { | 287 WebContents* web_contents) { |
287 return CreateShellWebContentsViewDelegate(web_contents); | 288 return CreateShellWebContentsViewDelegate(web_contents); |
288 } | 289 } |
289 | 290 |
290 QuotaPermissionContext* | 291 QuotaPermissionContext* |
291 ShellContentBrowserClient::CreateQuotaPermissionContext() { | 292 ShellContentBrowserClient::CreateQuotaPermissionContext() { |
292 return new ShellQuotaPermissionContext(); | 293 return new ShellQuotaPermissionContext(); |
293 } | 294 } |
294 | 295 |
| 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 |
295 void ShellContentBrowserClient::SelectClientCertificate( | 303 void ShellContentBrowserClient::SelectClientCertificate( |
296 WebContents* web_contents, | 304 WebContents* web_contents, |
297 net::SSLCertRequestInfo* cert_request_info, | 305 net::SSLCertRequestInfo* cert_request_info, |
298 std::unique_ptr<ClientCertificateDelegate> delegate) { | 306 std::unique_ptr<ClientCertificateDelegate> delegate) { |
299 if (!select_client_certificate_callback_.is_null()) | 307 if (!select_client_certificate_callback_.is_null()) |
300 select_client_certificate_callback_.Run(); | 308 select_client_certificate_callback_.Run(); |
301 } | 309 } |
302 | 310 |
303 SpeechRecognitionManagerDelegate* | 311 SpeechRecognitionManagerDelegate* |
304 ShellContentBrowserClient::CreateSpeechRecognitionManagerDelegate() { | 312 ShellContentBrowserClient::CreateSpeechRecognitionManagerDelegate() { |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 ShellBrowserContext* ShellContentBrowserClient::browser_context() { | 396 ShellBrowserContext* ShellContentBrowserClient::browser_context() { |
389 return shell_browser_main_parts_->browser_context(); | 397 return shell_browser_main_parts_->browser_context(); |
390 } | 398 } |
391 | 399 |
392 ShellBrowserContext* | 400 ShellBrowserContext* |
393 ShellContentBrowserClient::off_the_record_browser_context() { | 401 ShellContentBrowserClient::off_the_record_browser_context() { |
394 return shell_browser_main_parts_->off_the_record_browser_context(); | 402 return shell_browser_main_parts_->off_the_record_browser_context(); |
395 } | 403 } |
396 | 404 |
397 } // namespace content | 405 } // namespace content |
OLD | NEW |