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

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

Issue 2174613002: Geolocation: move creation of the GeolocationDelegate to the embedders (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/browser/browser_main_loop.cc ('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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 class AccessTokenStore; 100 class AccessTokenStore;
101 class BrowserChildProcessHost; 101 class BrowserChildProcessHost;
102 class BrowserContext; 102 class BrowserContext;
103 class BrowserMainParts; 103 class BrowserMainParts;
104 class BrowserPluginGuestDelegate; 104 class BrowserPluginGuestDelegate;
105 class BrowserPpapiHost; 105 class BrowserPpapiHost;
106 class BrowserURLHandler; 106 class BrowserURLHandler;
107 class ClientCertificateDelegate; 107 class ClientCertificateDelegate;
108 class DevToolsManagerDelegate; 108 class DevToolsManagerDelegate;
109 class ExternalVideoSurfaceContainer; 109 class ExternalVideoSurfaceContainer;
110 class GeolocationDelegate;
111 class LocationProvider; 110 class LocationProvider;
112 class MediaObserver; 111 class MediaObserver;
113 class NavigationHandle; 112 class NavigationHandle;
114 class PlatformNotificationService; 113 class PlatformNotificationService;
115 class PresentationServiceDelegate; 114 class PresentationServiceDelegate;
116 class QuotaPermissionContext; 115 class QuotaPermissionContext;
117 class RenderFrameHost; 116 class RenderFrameHost;
118 class RenderProcessHost; 117 class RenderProcessHost;
119 class RenderViewHost; 118 class RenderViewHost;
120 class ResourceContext; 119 class ResourceContext;
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
528 virtual void ResourceDispatcherHostCreated() {} 527 virtual void ResourceDispatcherHostCreated() {}
529 528
530 // Allows the embedder to return a delegate for the SpeechRecognitionManager. 529 // Allows the embedder to return a delegate for the SpeechRecognitionManager.
531 // The delegate will be owned by the manager. It's valid to return nullptr. 530 // The delegate will be owned by the manager. It's valid to return nullptr.
532 virtual SpeechRecognitionManagerDelegate* 531 virtual SpeechRecognitionManagerDelegate*
533 CreateSpeechRecognitionManagerDelegate(); 532 CreateSpeechRecognitionManagerDelegate();
534 533
535 // Getters for common objects. 534 // Getters for common objects.
536 virtual net::NetLog* GetNetLog(); 535 virtual net::NetLog* GetNetLog();
537 536
538 // Allows the embedder to provide a Delegate for Geolocation to override some
539 // functionality of the API (e.g. AccessTokenStore, LocationProvider).
540 virtual GeolocationDelegate* CreateGeolocationDelegate();
541
542 // Returns true if fast shutdown is possible. 537 // Returns true if fast shutdown is possible.
543 virtual bool IsFastShutdownPossible(); 538 virtual bool IsFastShutdownPossible();
544 539
545 // Called by WebContents to override the WebKit preferences that are used by 540 // Called by WebContents to override the WebKit preferences that are used by
546 // the renderer. The content layer will add its own settings, and then it's up 541 // the renderer. The content layer will add its own settings, and then it's up
547 // to the embedder to update it if it wants. 542 // to the embedder to update it if it wants.
548 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host, 543 virtual void OverrideWebkitPrefs(RenderViewHost* render_view_host,
549 WebPreferences* prefs) {} 544 WebPreferences* prefs) {}
550 545
551 // Notifies that BrowserURLHandler has been created, so that the embedder can 546 // Notifies that BrowserURLHandler has been created, so that the embedder can
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 // Allows an embedder to provide its own ExternalVideoSurfaceContainer 778 // Allows an embedder to provide its own ExternalVideoSurfaceContainer
784 // implementation. Return nullptr to disable external surface video. 779 // implementation. Return nullptr to disable external surface video.
785 virtual ExternalVideoSurfaceContainer* 780 virtual ExternalVideoSurfaceContainer*
786 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents); 781 OverrideCreateExternalVideoSurfaceContainer(WebContents* web_contents);
787 #endif 782 #endif
788 }; 783 };
789 784
790 } // namespace content 785 } // namespace content
791 786
792 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_ 787 #endif // CONTENT_PUBLIC_BROWSER_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/public/browser/content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698