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

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

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: Addressed comments + changes to NavigationHandleImpl following 2364943002 Created 4 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 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 6 #define CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 class BrowserPluginGuestDelegate; 108 class BrowserPluginGuestDelegate;
109 class BrowserPpapiHost; 109 class BrowserPpapiHost;
110 class BrowserURLHandler; 110 class BrowserURLHandler;
111 class ClientCertificateDelegate; 111 class ClientCertificateDelegate;
112 class DevToolsManagerDelegate; 112 class DevToolsManagerDelegate;
113 class ExternalVideoSurfaceContainer; 113 class ExternalVideoSurfaceContainer;
114 class GpuProcessHost; 114 class GpuProcessHost;
115 class LocationProvider; 115 class LocationProvider;
116 class MediaObserver; 116 class MediaObserver;
117 class NavigationHandle; 117 class NavigationHandle;
118 class NavigationUIData;
118 class PlatformNotificationService; 119 class PlatformNotificationService;
119 class PresentationServiceDelegate; 120 class PresentationServiceDelegate;
120 class QuotaPermissionContext; 121 class QuotaPermissionContext;
121 class RenderFrameHost; 122 class RenderFrameHost;
122 class RenderProcessHost; 123 class RenderProcessHost;
123 class RenderViewHost; 124 class RenderViewHost;
124 class ResourceContext; 125 class ResourceContext;
125 class SiteInstance; 126 class SiteInstance;
126 class SpeechRecognitionManagerDelegate; 127 class SpeechRecognitionManagerDelegate;
127 class TracingDelegate; 128 class TracingDelegate;
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} 736 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {}
736 737
737 // Allows the embedder to register one or more NavigationThrottles for the 738 // Allows the embedder to register one or more NavigationThrottles for the
738 // navigation indicated by |navigation_handle|. A NavigationThrottle is used 739 // navigation indicated by |navigation_handle|. A NavigationThrottle is used
739 // to control the flow of a navigation on the UI thread. The embedder is 740 // to control the flow of a navigation on the UI thread. The embedder is
740 // guaranteed that the throttles will be executed in the order they were 741 // guaranteed that the throttles will be executed in the order they were
741 // provided. 742 // provided.
742 virtual ScopedVector<NavigationThrottle> CreateThrottlesForNavigation( 743 virtual ScopedVector<NavigationThrottle> CreateThrottlesForNavigation(
743 NavigationHandle* navigation_handle); 744 NavigationHandle* navigation_handle);
744 745
746 // PlzNavigate
747 // Called at the start of the navigation to get opaque data the embedder
748 // wants to see passed to the corresponding URLRequest on the IO thread.
749 virtual std::unique_ptr<NavigationUIData> GetNavigationUIData(
750 NavigationHandle* navigation_handle);
751
745 // Allows the embedder to provide its own AudioManager implementation. 752 // Allows the embedder to provide its own AudioManager implementation.
746 // If this function returns nullptr, a default platform implementation 753 // If this function returns nullptr, a default platform implementation
747 // will be used. 754 // will be used.
748 virtual media::ScopedAudioManagerPtr CreateAudioManager( 755 virtual media::ScopedAudioManagerPtr CreateAudioManager(
749 media::AudioLogFactory* audio_log_factory); 756 media::AudioLogFactory* audio_log_factory);
750 // Creates and returns a factory used for creating CDM instances for playing 757 // Creates and returns a factory used for creating CDM instances for playing
751 // protected content. 758 // protected content.
752 virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory(); 759 virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory();
753 760
754 // Populates |mappings| with all files that need to be mapped before launching 761 // Populates |mappings| with all files that need to be mapped before launching
(...skipping 29 matching lines...) Expand all
784 // Returns whether the Win32k lockdown process mitigation should be applied to 791 // Returns whether the Win32k lockdown process mitigation should be applied to
785 // a process hosting a plugin with the specified |mime_type|. 792 // a process hosting a plugin with the specified |mime_type|.
786 virtual bool IsWin32kLockdownEnabledForMimeType( 793 virtual bool IsWin32kLockdownEnabledForMimeType(
787 const std::string& mime_type) const; 794 const std::string& mime_type) const;
788 #endif 795 #endif
789 }; 796 };
790 797
791 } // namespace content 798 } // namespace content
792 799
793 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 800 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698