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

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

Issue 2335133003: PlzNavigate: support the WebRequest API (Closed)
Patch Set: Rebase + addressed nit 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
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {} 735 virtual void RecordURLMetric(const std::string& metric, const GURL& url) {}
735 736
736 // Allows the embedder to register one or more NavigationThrottles for the 737 // Allows the embedder to register one or more NavigationThrottles for the
737 // navigation indicated by |navigation_handle|. A NavigationThrottle is used 738 // navigation indicated by |navigation_handle|. A NavigationThrottle is used
738 // to control the flow of a navigation on the UI thread. The embedder is 739 // to control the flow of a navigation on the UI thread. The embedder is
739 // guaranteed that the throttles will be executed in the order they were 740 // guaranteed that the throttles will be executed in the order they were
740 // provided. 741 // provided.
741 virtual ScopedVector<NavigationThrottle> CreateThrottlesForNavigation( 742 virtual ScopedVector<NavigationThrottle> CreateThrottlesForNavigation(
742 NavigationHandle* navigation_handle); 743 NavigationHandle* navigation_handle);
743 744
745 // PlzNavigate
746 // Called at the start of the navigation to get opaque data the embedder
747 // wants to see passed to the corresponding URLRequest on the IO thread.
748 virtual std::unique_ptr<NavigationUIData> GetNavigationUIData(
749 NavigationHandle* navigation_handle);
750
744 // Allows the embedder to provide its own AudioManager implementation. 751 // Allows the embedder to provide its own AudioManager implementation.
745 // If this function returns nullptr, a default platform implementation 752 // If this function returns nullptr, a default platform implementation
746 // will be used. 753 // will be used.
747 virtual media::ScopedAudioManagerPtr CreateAudioManager( 754 virtual media::ScopedAudioManagerPtr CreateAudioManager(
748 media::AudioLogFactory* audio_log_factory); 755 media::AudioLogFactory* audio_log_factory);
749 // Creates and returns a factory used for creating CDM instances for playing 756 // Creates and returns a factory used for creating CDM instances for playing
750 // protected content. 757 // protected content.
751 virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory(); 758 virtual std::unique_ptr<media::CdmFactory> CreateCdmFactory();
752 759
753 // Populates |mappings| with all files that need to be mapped before launching 760 // Populates |mappings| with all files that need to be mapped before launching
(...skipping 29 matching lines...) Expand all
783 // Returns whether the Win32k lockdown process mitigation should be applied to 790 // Returns whether the Win32k lockdown process mitigation should be applied to
784 // a process hosting a plugin with the specified |mime_type|. 791 // a process hosting a plugin with the specified |mime_type|.
785 virtual bool IsWin32kLockdownEnabledForMimeType( 792 virtual bool IsWin32kLockdownEnabledForMimeType(
786 const std::string& mime_type) const; 793 const std::string& mime_type) const;
787 #endif 794 #endif
788 }; 795 };
789 796
790 } // namespace content 797 } // namespace content
791 798
792 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 799 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698