| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/public/browser/content_browser_client.h" | 5 #include "content/public/browser/content_browser_client.h" |
| 6 | 6 |
| 7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
| 8 #include "content/public/browser/client_certificate_delegate.h" | 8 #include "content/public/browser/client_certificate_delegate.h" |
| 9 #include "content/public/common/sandbox_type.h" | 9 #include "content/public/common/sandbox_type.h" |
| 10 #include "ui/gfx/image/image_skia.h" | 10 #include "ui/gfx/image/image_skia.h" |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 return nullptr; | 352 return nullptr; |
| 353 } | 353 } |
| 354 | 354 |
| 355 void ContentBrowserClient::OpenURL( | 355 void ContentBrowserClient::OpenURL( |
| 356 content::BrowserContext* browser_context, | 356 content::BrowserContext* browser_context, |
| 357 const content::OpenURLParams& params, | 357 const content::OpenURLParams& params, |
| 358 const base::Callback<void(content::WebContents*)>& callback) { | 358 const base::Callback<void(content::WebContents*)>& callback) { |
| 359 callback.Run(nullptr); | 359 callback.Run(nullptr); |
| 360 } | 360 } |
| 361 | 361 |
| 362 ScopedVector<NavigationThrottle> ContentBrowserClient::GetNavigationThrottles( |
| 363 NavigationHandle* navigation_handle) { |
| 364 return ScopedVector<NavigationThrottle>(); |
| 365 } |
| 366 |
| 362 #if defined(OS_WIN) | 367 #if defined(OS_WIN) |
| 363 const wchar_t* ContentBrowserClient::GetResourceDllName() { | 368 const wchar_t* ContentBrowserClient::GetResourceDllName() { |
| 364 return nullptr; | 369 return nullptr; |
| 365 } | 370 } |
| 366 | 371 |
| 367 base::string16 ContentBrowserClient::GetAppContainerSidForSandboxType( | 372 base::string16 ContentBrowserClient::GetAppContainerSidForSandboxType( |
| 368 int sandbox_type) const { | 373 int sandbox_type) const { |
| 369 // Embedders should override this method and return different SIDs for each | 374 // Embedders should override this method and return different SIDs for each |
| 370 // sandbox type. Note: All content level tests will run child processes in the | 375 // sandbox type. Note: All content level tests will run child processes in the |
| 371 // same AppContainer. | 376 // same AppContainer. |
| 372 return base::string16( | 377 return base::string16( |
| 373 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" | 378 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" |
| 374 L"924012148-129201922"); | 379 L"924012148-129201922"); |
| 375 } | 380 } |
| 376 #endif | 381 #endif |
| 377 | 382 |
| 378 #if defined(VIDEO_HOLE) | 383 #if defined(VIDEO_HOLE) |
| 379 ExternalVideoSurfaceContainer* | 384 ExternalVideoSurfaceContainer* |
| 380 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 385 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
| 381 WebContents* web_contents) { | 386 WebContents* web_contents) { |
| 382 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; | 387 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; |
| 383 return nullptr; | 388 return nullptr; |
| 384 } | 389 } |
| 385 #endif | 390 #endif |
| 386 | 391 |
| 387 } // namespace content | 392 } // namespace content |
| OLD | NEW |