| 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 ResourceDispatcherHost::Get()->SetDelegate( | 249 ResourceDispatcherHost::Get()->SetDelegate( |
| 250 resource_dispatcher_host_delegate_.get()); | 250 resource_dispatcher_host_delegate_.get()); |
| 251 } | 251 } |
| 252 | 252 |
| 253 std::string ShellContentBrowserClient::GetDefaultDownloadName() { | 253 std::string ShellContentBrowserClient::GetDefaultDownloadName() { |
| 254 return "download"; | 254 return "download"; |
| 255 } | 255 } |
| 256 | 256 |
| 257 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate( | 257 WebContentsViewDelegate* ShellContentBrowserClient::GetWebContentsViewDelegate( |
| 258 WebContents* web_contents) { | 258 WebContents* web_contents) { |
| 259 #if !defined(USE_AURA) | |
| 260 return CreateShellWebContentsViewDelegate(web_contents); | 259 return CreateShellWebContentsViewDelegate(web_contents); |
| 261 #else | |
| 262 return NULL; | |
| 263 #endif | |
| 264 } | 260 } |
| 265 | 261 |
| 266 QuotaPermissionContext* | 262 QuotaPermissionContext* |
| 267 ShellContentBrowserClient::CreateQuotaPermissionContext() { | 263 ShellContentBrowserClient::CreateQuotaPermissionContext() { |
| 268 return new ShellQuotaPermissionContext(); | 264 return new ShellQuotaPermissionContext(); |
| 269 } | 265 } |
| 270 | 266 |
| 271 void ShellContentBrowserClient::SelectClientCertificate( | 267 void ShellContentBrowserClient::SelectClientCertificate( |
| 272 WebContents* web_contents, | 268 WebContents* web_contents, |
| 273 net::SSLCertRequestInfo* cert_request_info, | 269 net::SSLCertRequestInfo* cert_request_info, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 ShellBrowserContext* | 364 ShellBrowserContext* |
| 369 ShellContentBrowserClient::off_the_record_browser_context() { | 365 ShellContentBrowserClient::off_the_record_browser_context() { |
| 370 return shell_browser_main_parts_->off_the_record_browser_context(); | 366 return shell_browser_main_parts_->off_the_record_browser_context(); |
| 371 } | 367 } |
| 372 | 368 |
| 373 GeolocationDelegate* ShellContentBrowserClient::CreateGeolocationDelegate() { | 369 GeolocationDelegate* ShellContentBrowserClient::CreateGeolocationDelegate() { |
| 374 return new ShellGeolocationDelegate(browser_context()); | 370 return new ShellGeolocationDelegate(browser_context()); |
| 375 } | 371 } |
| 376 | 372 |
| 377 } // namespace content | 373 } // namespace content |
| OLD | NEW |