Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(292)

Side by Side Diff: content/public/browser/content_browser_client.cc

Issue 1269813002: Add a NavigationThrottle to the public content/ interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@navigation-api
Patch Set: Rebase on https://codereview.chromium.org/1312213010/ Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
362 #if defined(OS_WIN) 368 #if defined(OS_WIN)
363 const wchar_t* ContentBrowserClient::GetResourceDllName() { 369 const wchar_t* ContentBrowserClient::GetResourceDllName() {
364 return nullptr; 370 return nullptr;
365 } 371 }
366 372
367 base::string16 ContentBrowserClient::GetAppContainerSidForSandboxType( 373 base::string16 ContentBrowserClient::GetAppContainerSidForSandboxType(
368 int sandbox_type) const { 374 int sandbox_type) const {
369 // Embedders should override this method and return different SIDs for each 375 // 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 376 // sandbox type. Note: All content level tests will run child processes in the
371 // same AppContainer. 377 // same AppContainer.
372 return base::string16( 378 return base::string16(
373 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" 379 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-"
374 L"924012148-129201922"); 380 L"924012148-129201922");
375 } 381 }
376 #endif 382 #endif
377 383
378 #if defined(VIDEO_HOLE) 384 #if defined(VIDEO_HOLE)
379 ExternalVideoSurfaceContainer* 385 ExternalVideoSurfaceContainer*
380 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 386 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
381 WebContents* web_contents) { 387 WebContents* web_contents) {
382 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; 388 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348.";
383 return nullptr; 389 return nullptr;
384 } 390 }
385 #endif 391 #endif
386 392
387 } // namespace content 393 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/content_browser_client.h ('k') | content/public/browser/navigation_handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698