| 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> | |
| 363 ContentBrowserClient::CreateThrottlesForNavigation( | |
| 364 NavigationHandle* navigation_handle) { | |
| 365 return ScopedVector<NavigationThrottle>(); | |
| 366 } | |
| 367 | |
| 368 #if defined(OS_WIN) | 362 #if defined(OS_WIN) |
| 369 const wchar_t* ContentBrowserClient::GetResourceDllName() { | 363 const wchar_t* ContentBrowserClient::GetResourceDllName() { |
| 370 return nullptr; | 364 return nullptr; |
| 371 } | 365 } |
| 372 | 366 |
| 373 base::string16 ContentBrowserClient::GetAppContainerSidForSandboxType( | 367 base::string16 ContentBrowserClient::GetAppContainerSidForSandboxType( |
| 374 int sandbox_type) const { | 368 int sandbox_type) const { |
| 375 // Embedders should override this method and return different SIDs for each | 369 // Embedders should override this method and return different SIDs for each |
| 376 // sandbox type. Note: All content level tests will run child processes in the | 370 // sandbox type. Note: All content level tests will run child processes in the |
| 377 // same AppContainer. | 371 // same AppContainer. |
| 378 return base::string16( | 372 return base::string16( |
| 379 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" | 373 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" |
| 380 L"924012148-129201922"); | 374 L"924012148-129201922"); |
| 381 } | 375 } |
| 382 #endif | 376 #endif |
| 383 | 377 |
| 384 #if defined(VIDEO_HOLE) | 378 #if defined(VIDEO_HOLE) |
| 385 ExternalVideoSurfaceContainer* | 379 ExternalVideoSurfaceContainer* |
| 386 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 380 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
| 387 WebContents* web_contents) { | 381 WebContents* web_contents) { |
| 388 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; | 382 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; |
| 389 return nullptr; | 383 return nullptr; |
| 390 } | 384 } |
| 391 #endif | 385 #endif |
| 392 | 386 |
| 393 } // namespace content | 387 } // namespace content |
| OLD | NEW |