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 "content/shell/grit/shell_resources.h" | 40 #include "content/shell/grit/shell_resources.h" |
41 #include "media/mojo/features.h" | 41 #include "media/mojo/features.h" |
| 42 #include "net/ssl/client_cert_identity.h" |
42 #include "net/url_request/url_request_context_getter.h" | 43 #include "net/url_request/url_request_context_getter.h" |
43 #include "storage/browser/quota/quota_settings.h" | 44 #include "storage/browser/quota/quota_settings.h" |
44 #include "ui/base/resource/resource_bundle.h" | 45 #include "ui/base/resource/resource_bundle.h" |
45 #include "url/gurl.h" | 46 #include "url/gurl.h" |
46 #include "url/origin.h" | 47 #include "url/origin.h" |
47 | 48 |
48 #if defined(OS_ANDROID) | 49 #if defined(OS_ANDROID) |
49 #include "base/android/apk_assets.h" | 50 #include "base/android/apk_assets.h" |
50 #include "base/android/path_utils.h" | 51 #include "base/android/path_utils.h" |
51 #include "components/crash/content/browser/crash_dump_manager_android.h" | 52 #include "components/crash/content/browser/crash_dump_manager_android.h" |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 void ShellContentBrowserClient::GetQuotaSettings( | 286 void ShellContentBrowserClient::GetQuotaSettings( |
286 BrowserContext* context, | 287 BrowserContext* context, |
287 StoragePartition* partition, | 288 StoragePartition* partition, |
288 const storage::OptionalQuotaSettingsCallback& callback) { | 289 const storage::OptionalQuotaSettingsCallback& callback) { |
289 callback.Run(storage::GetHardCodedSettings(100 * 1024 * 1024)); | 290 callback.Run(storage::GetHardCodedSettings(100 * 1024 * 1024)); |
290 } | 291 } |
291 | 292 |
292 void ShellContentBrowserClient::SelectClientCertificate( | 293 void ShellContentBrowserClient::SelectClientCertificate( |
293 WebContents* web_contents, | 294 WebContents* web_contents, |
294 net::SSLCertRequestInfo* cert_request_info, | 295 net::SSLCertRequestInfo* cert_request_info, |
295 net::CertificateList client_certs, | 296 net::ClientCertIdentityList client_certs, |
296 std::unique_ptr<ClientCertificateDelegate> delegate) { | 297 std::unique_ptr<ClientCertificateDelegate> delegate) { |
297 if (!select_client_certificate_callback_.is_null()) | 298 if (!select_client_certificate_callback_.is_null()) |
298 select_client_certificate_callback_.Run(); | 299 select_client_certificate_callback_.Run(); |
299 } | 300 } |
300 | 301 |
301 SpeechRecognitionManagerDelegate* | 302 SpeechRecognitionManagerDelegate* |
302 ShellContentBrowserClient::CreateSpeechRecognitionManagerDelegate() { | 303 ShellContentBrowserClient::CreateSpeechRecognitionManagerDelegate() { |
303 return new ShellSpeechRecognitionManagerDelegate(); | 304 return new ShellSpeechRecognitionManagerDelegate(); |
304 } | 305 } |
305 | 306 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 ShellBrowserContext* ShellContentBrowserClient::browser_context() { | 372 ShellBrowserContext* ShellContentBrowserClient::browser_context() { |
372 return shell_browser_main_parts_->browser_context(); | 373 return shell_browser_main_parts_->browser_context(); |
373 } | 374 } |
374 | 375 |
375 ShellBrowserContext* | 376 ShellBrowserContext* |
376 ShellContentBrowserClient::off_the_record_browser_context() { | 377 ShellContentBrowserClient::off_the_record_browser_context() { |
377 return shell_browser_main_parts_->off_the_record_browser_context(); | 378 return shell_browser_main_parts_->off_the_record_browser_context(); |
378 } | 379 } |
379 | 380 |
380 } // namespace content | 381 } // namespace content |
OLD | NEW |