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

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

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: PlzNavigate: support the WebRequest API Created 4 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 #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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} 747 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {}
747 748
748 // Allows the embedder to register one or more NavigationThrottles for the 749 // Allows the embedder to register one or more NavigationThrottles for the
749 // navigation indicated by |navigation_handle|. A NavigationThrottle is used 750 // navigation indicated by |navigation_handle|. A NavigationThrottle is used
750 // to control the flow of a navigation on the UI thread. The embedder is 751 // to control the flow of a navigation on the UI thread. The embedder is
751 // guaranteed that the throttles will be executed in the order they were 752 // guaranteed that the throttles will be executed in the order they were
752 // provided. 753 // provided.
753 virtual ScopedVector<NavigationThrottle> CreateThrottlesForNavigation( 754 virtual ScopedVector<NavigationThrottle> CreateThrottlesForNavigation(
754 NavigationHandle* navigation_handle); 755 NavigationHandle* navigation_handle);
755 756
757 // PlzNavigate
758 // Called at the start of the navigation to get opaque data the embedder
759 // wants to see passed to the corresponding URLRequest on the IO thread.
760 virtual std::unique_ptr<NavigationUIData> GetNavigationUIData(
761 NavigationHandle* navigation_handle);
762
756 // Allows the embedder to provide its own AudioManager implementation. 763 // Allows the embedder to provide its own AudioManager implementation.
757 // If this function returns nullptr, a default platform implementation 764 // If this function returns nullptr, a default platform implementation
758 // will be used. 765 // will be used.
759 virtual media::ScopedAudioManagerPtr CreateAudioManager( 766 virtual media::ScopedAudioManagerPtr CreateAudioManager(
760 media::AudioLogFactory* audio_log_factory); 767 media::AudioLogFactory* audio_log_factory);
761 // Creates and returns a factory used for creating CDM instances for playing 768 // Creates and returns a factory used for creating CDM instances for playing
762 // protected content. 769 // protected content.
763 virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory(); 770 virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory();
764 771
765 // Populates |mappings| with all files that need to be mapped before launching 772 // Populates |mappings| with all files that need to be mapped before launching
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
802 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 809 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
803 // implementation. Return nullptr to disable external surface video. 810 // implementation. Return nullptr to disable external surface video.
804 virtual ExternalVideoSurfaceContainer* 811 virtual ExternalVideoSurfaceContainer*
805 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 812 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
806 #endif 813 #endif
807 }; 814 };
808 815
809 } // namespace content 816 } // namespace content
810 817
811 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 818 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698