| 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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 } | 246 } |
| 247 | 247 |
| 248 QuotaPermissionContext* | 248 QuotaPermissionContext* |
| 249 ShellContentBrowserClient::CreateQuotaPermissionContext() { | 249 ShellContentBrowserClient::CreateQuotaPermissionContext() { |
| 250 return new ShellQuotaPermissionContext(); | 250 return new ShellQuotaPermissionContext(); |
| 251 } | 251 } |
| 252 | 252 |
| 253 void ShellContentBrowserClient::SelectClientCertificate( | 253 void ShellContentBrowserClient::SelectClientCertificate( |
| 254 WebContents* web_contents, | 254 WebContents* web_contents, |
| 255 net::SSLCertRequestInfo* cert_request_info, | 255 net::SSLCertRequestInfo* cert_request_info, |
| 256 scoped_ptr<ClientCertificateDelegate> delegate) { | 256 std::unique_ptr<ClientCertificateDelegate> delegate) { |
| 257 if (!select_client_certificate_callback_.is_null()) | 257 if (!select_client_certificate_callback_.is_null()) |
| 258 select_client_certificate_callback_.Run(); | 258 select_client_certificate_callback_.Run(); |
| 259 } | 259 } |
| 260 | 260 |
| 261 SpeechRecognitionManagerDelegate* | 261 SpeechRecognitionManagerDelegate* |
| 262 ShellContentBrowserClient::CreateSpeechRecognitionManagerDelegate() { | 262 ShellContentBrowserClient::CreateSpeechRecognitionManagerDelegate() { |
| 263 return new ShellSpeechRecognitionManagerDelegate(); | 263 return new ShellSpeechRecognitionManagerDelegate(); |
| 264 } | 264 } |
| 265 | 265 |
| 266 net::NetLog* ShellContentBrowserClient::GetNetLog() { | 266 net::NetLog* ShellContentBrowserClient::GetNetLog() { |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 ShellBrowserContext* | 350 ShellBrowserContext* |
| 351 ShellContentBrowserClient::off_the_record_browser_context() { | 351 ShellContentBrowserClient::off_the_record_browser_context() { |
| 352 return shell_browser_main_parts_->off_the_record_browser_context(); | 352 return shell_browser_main_parts_->off_the_record_browser_context(); |
| 353 } | 353 } |
| 354 | 354 |
| 355 AccessTokenStore* ShellContentBrowserClient::CreateAccessTokenStore() { | 355 AccessTokenStore* ShellContentBrowserClient::CreateAccessTokenStore() { |
| 356 return new ShellAccessTokenStore(browser_context()); | 356 return new ShellAccessTokenStore(browser_context()); |
| 357 } | 357 } |
| 358 | 358 |
| 359 } // namespace content | 359 } // namespace content |
| OLD | NEW |