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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 return nullptr; | 347 return nullptr; |
348 } | 348 } |
349 | 349 |
350 void ContentBrowserClient::OpenURL( | 350 void ContentBrowserClient::OpenURL( |
351 content::BrowserContext* browser_context, | 351 content::BrowserContext* browser_context, |
352 const content::OpenURLParams& params, | 352 const content::OpenURLParams& params, |
353 const base::Callback<void(content::WebContents*)>& callback) { | 353 const base::Callback<void(content::WebContents*)>& callback) { |
354 callback.Run(nullptr); | 354 callback.Run(nullptr); |
355 } | 355 } |
356 | 356 |
| 357 std::vector<NavigationThrottle*> ContentBrowserClient::AddNavigationThrottles( |
| 358 NavigationHandle* navigation_handle, |
| 359 WebContents* web_contents) { |
| 360 return std::vector<NavigationThrottle*>(); |
| 361 } |
| 362 |
357 #if defined(OS_WIN) | 363 #if defined(OS_WIN) |
358 const wchar_t* ContentBrowserClient::GetResourceDllName() { | 364 const wchar_t* ContentBrowserClient::GetResourceDllName() { |
359 return nullptr; | 365 return nullptr; |
360 } | 366 } |
361 | 367 |
362 base::string16 ContentBrowserClient::GetAppContainerSidForSandboxType( | 368 base::string16 ContentBrowserClient::GetAppContainerSidForSandboxType( |
363 int sandbox_type) const { | 369 int sandbox_type) const { |
364 // Embedders should override this method and return different SIDs for each | 370 // Embedders should override this method and return different SIDs for each |
365 // sandbox type. Note: All content level tests will run child processes in the | 371 // sandbox type. Note: All content level tests will run child processes in the |
366 // same AppContainer. | 372 // same AppContainer. |
367 return base::string16( | 373 return base::string16( |
368 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" | 374 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" |
369 L"924012148-129201922"); | 375 L"924012148-129201922"); |
370 } | 376 } |
371 #endif | 377 #endif |
372 | 378 |
373 #if defined(VIDEO_HOLE) | 379 #if defined(VIDEO_HOLE) |
374 ExternalVideoSurfaceContainer* | 380 ExternalVideoSurfaceContainer* |
375 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( | 381 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( |
376 WebContents* web_contents) { | 382 WebContents* web_contents) { |
377 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; | 383 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; |
378 return nullptr; | 384 return nullptr; |
379 } | 385 } |
380 #endif | 386 #endif |
381 | 387 |
382 } // namespace content | 388 } // namespace content |
OLD | NEW |