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 24 matching lines...) Expand all Loading... |
35 #include "content/shell/browser/shell_net_log.h" | 35 #include "content/shell/browser/shell_net_log.h" |
36 #include "content/shell/browser/shell_quota_permission_context.h" | 36 #include "content/shell/browser/shell_quota_permission_context.h" |
37 #include "content/shell/browser/shell_resource_dispatcher_host_delegate.h" | 37 #include "content/shell/browser/shell_resource_dispatcher_host_delegate.h" |
38 #include "content/shell/browser/shell_web_contents_view_delegate_creator.h" | 38 #include "content/shell/browser/shell_web_contents_view_delegate_creator.h" |
39 #include "content/shell/common/shell_messages.h" | 39 #include "content/shell/common/shell_messages.h" |
40 #include "content/shell/common/shell_switches.h" | 40 #include "content/shell/common/shell_switches.h" |
41 #include "content/shell/grit/shell_resources.h" | 41 #include "content/shell/grit/shell_resources.h" |
42 #include "content/test/data/mojo_layouttest_test.mojom.h" | 42 #include "content/test/data/mojo_layouttest_test.mojom.h" |
43 #include "media/mojo/features.h" | 43 #include "media/mojo/features.h" |
44 #include "mojo/public/cpp/bindings/strong_binding.h" | 44 #include "mojo/public/cpp/bindings/strong_binding.h" |
| 45 #include "net/ssl/client_cert_identity.h" |
45 #include "net/url_request/url_request_context_getter.h" | 46 #include "net/url_request/url_request_context_getter.h" |
46 #include "services/service_manager/public/cpp/bind_source_info.h" | 47 #include "services/service_manager/public/cpp/bind_source_info.h" |
47 #include "storage/browser/quota/quota_settings.h" | 48 #include "storage/browser/quota/quota_settings.h" |
48 #include "ui/base/resource/resource_bundle.h" | 49 #include "ui/base/resource/resource_bundle.h" |
49 #include "url/gurl.h" | 50 #include "url/gurl.h" |
50 #include "url/origin.h" | 51 #include "url/origin.h" |
51 | 52 |
52 #if defined(OS_ANDROID) | 53 #if defined(OS_ANDROID) |
53 #include "base/android/apk_assets.h" | 54 #include "base/android/apk_assets.h" |
54 #include "base/android/path_utils.h" | 55 #include "base/android/path_utils.h" |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 void ShellContentBrowserClient::GetQuotaSettings( | 317 void ShellContentBrowserClient::GetQuotaSettings( |
317 BrowserContext* context, | 318 BrowserContext* context, |
318 StoragePartition* partition, | 319 StoragePartition* partition, |
319 const storage::OptionalQuotaSettingsCallback& callback) { | 320 const storage::OptionalQuotaSettingsCallback& callback) { |
320 callback.Run(storage::GetHardCodedSettings(100 * 1024 * 1024)); | 321 callback.Run(storage::GetHardCodedSettings(100 * 1024 * 1024)); |
321 } | 322 } |
322 | 323 |
323 void ShellContentBrowserClient::SelectClientCertificate( | 324 void ShellContentBrowserClient::SelectClientCertificate( |
324 WebContents* web_contents, | 325 WebContents* web_contents, |
325 net::SSLCertRequestInfo* cert_request_info, | 326 net::SSLCertRequestInfo* cert_request_info, |
326 net::CertificateList client_certs, | 327 net::ClientCertIdentityList client_certs, |
327 std::unique_ptr<ClientCertificateDelegate> delegate) { | 328 std::unique_ptr<ClientCertificateDelegate> delegate) { |
328 if (!select_client_certificate_callback_.is_null()) | 329 if (!select_client_certificate_callback_.is_null()) |
329 select_client_certificate_callback_.Run(); | 330 select_client_certificate_callback_.Run(); |
330 } | 331 } |
331 | 332 |
332 SpeechRecognitionManagerDelegate* | 333 SpeechRecognitionManagerDelegate* |
333 ShellContentBrowserClient::CreateSpeechRecognitionManagerDelegate() { | 334 ShellContentBrowserClient::CreateSpeechRecognitionManagerDelegate() { |
334 return new ShellSpeechRecognitionManagerDelegate(); | 335 return new ShellSpeechRecognitionManagerDelegate(); |
335 } | 336 } |
336 | 337 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 ShellBrowserContext* ShellContentBrowserClient::browser_context() { | 403 ShellBrowserContext* ShellContentBrowserClient::browser_context() { |
403 return shell_browser_main_parts_->browser_context(); | 404 return shell_browser_main_parts_->browser_context(); |
404 } | 405 } |
405 | 406 |
406 ShellBrowserContext* | 407 ShellBrowserContext* |
407 ShellContentBrowserClient::off_the_record_browser_context() { | 408 ShellContentBrowserClient::off_the_record_browser_context() { |
408 return shell_browser_main_parts_->off_the_record_browser_context(); | 409 return shell_browser_main_parts_->off_the_record_browser_context(); |
409 } | 410 } |
410 | 411 |
411 } // namespace content | 412 } // namespace content |
OLD | NEW |