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

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

Issue 1363483007: Reland of Add a NavigationThrottle to the public content/ interface (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 2 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 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 return nullptr; 356 return nullptr;
357 } 357 }
358 358
359 void ContentBrowserClient::OpenURL( 359 void ContentBrowserClient::OpenURL(
360 content::BrowserContext* browser_context, 360 content::BrowserContext* browser_context,
361 const content::OpenURLParams& params, 361 const content::OpenURLParams& params,
362 const base::Callback<void(content::WebContents*)>& callback) { 362 const base::Callback<void(content::WebContents*)>& callback) {
363 callback.Run(nullptr); 363 callback.Run(nullptr);
364 } 364 }
365 365
366 ScopedVector<NavigationThrottle>
367 ContentBrowserClient::CreateThrottlesForNavigation(
368 NavigationHandle* navigation_handle) {
369 return ScopedVector<NavigationThrottle>();
370 }
371
366 #if defined(OS_WIN) 372 #if defined(OS_WIN)
367 const wchar_t* ContentBrowserClient::GetResourceDllName() { 373 const wchar_t* ContentBrowserClient::GetResourceDllName() {
368 return nullptr; 374 return nullptr;
369 } 375 }
370 376
371 base::string16 ContentBrowserClient::GetAppContainerSidForSandboxType( 377 base::string16 ContentBrowserClient::GetAppContainerSidForSandboxType(
372 int sandbox_type) const { 378 int sandbox_type) const {
373 // Embedders should override this method and return different SIDs for each 379 // Embedders should override this method and return different SIDs for each
374 // sandbox type. Note: All content level tests will run child processes in the 380 // sandbox type. Note: All content level tests will run child processes in the
375 // same AppContainer. 381 // same AppContainer.
376 return base::string16( 382 return base::string16(
377 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-" 383 L"S-1-15-2-3251537155-1984446955-2931258699-841473695-1938553385-"
378 L"924012148-129201922"); 384 L"924012148-129201922");
379 } 385 }
380 #endif 386 #endif
381 387
382 #if defined(VIDEO_HOLE) 388 #if defined(VIDEO_HOLE)
383 ExternalVideoSurfaceContainer* 389 ExternalVideoSurfaceContainer*
384 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer( 390 ContentBrowserClient::OverrideCreateExternalVideoSurfaceContainer(
385 WebContents* web_contents) { 391 WebContents* web_contents) {
386 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348."; 392 NOTREACHED() << "Hole-punching is not supported. See crbug.com/469348.";
387 return nullptr; 393 return nullptr;
388 } 394 }
389 #endif 395 #endif
390 396
391 } // namespace content 397 } // 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