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

Side by Side Diff: chrome/browser/chrome_content_browser_client.cc

Issue 2104193002: Geolocation: Extract GeolocationProvider::Delegate into GeolocationDelegate (no new code) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: jam@ nit: content/browser/geolocation/geolocation_delegate.cc --> content/public/browser 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
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 "chrome/browser/chrome_content_browser_client.h" 5 #include "chrome/browser/chrome_content_browser_client.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 #include "components/variations/variations_associated_data.h" 137 #include "components/variations/variations_associated_data.h"
138 #include "components/version_info/version_info.h" 138 #include "components/version_info/version_info.h"
139 #include "content/public/browser/browser_child_process_host.h" 139 #include "content/public/browser/browser_child_process_host.h"
140 #include "content/public/browser/browser_main_parts.h" 140 #include "content/public/browser/browser_main_parts.h"
141 #include "content/public/browser/browser_ppapi_host.h" 141 #include "content/public/browser/browser_ppapi_host.h"
142 #include "content/public/browser/browser_thread.h" 142 #include "content/public/browser/browser_thread.h"
143 #include "content/public/browser/browser_url_handler.h" 143 #include "content/public/browser/browser_url_handler.h"
144 #include "content/public/browser/child_process_data.h" 144 #include "content/public/browser/child_process_data.h"
145 #include "content/public/browser/child_process_security_policy.h" 145 #include "content/public/browser/child_process_security_policy.h"
146 #include "content/public/browser/client_certificate_delegate.h" 146 #include "content/public/browser/client_certificate_delegate.h"
147 #include "content/public/browser/geolocation_delegate.h"
147 #include "content/public/browser/navigation_handle.h" 148 #include "content/public/browser/navigation_handle.h"
148 #include "content/public/browser/navigation_throttle.h" 149 #include "content/public/browser/navigation_throttle.h"
149 #include "content/public/browser/render_frame_host.h" 150 #include "content/public/browser/render_frame_host.h"
150 #include "content/public/browser/render_process_host.h" 151 #include "content/public/browser/render_process_host.h"
151 #include "content/public/browser/render_view_host.h" 152 #include "content/public/browser/render_view_host.h"
152 #include "content/public/browser/resource_context.h" 153 #include "content/public/browser/resource_context.h"
153 #include "content/public/browser/site_instance.h" 154 #include "content/public/browser/site_instance.h"
154 #include "content/public/browser/storage_partition.h" 155 #include "content/public/browser/storage_partition.h"
155 #include "content/public/browser/vpn_service_proxy.h" 156 #include "content/public/browser/vpn_service_proxy.h"
156 #include "content/public/browser/web_contents.h" 157 #include "content/public/browser/web_contents.h"
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 serialized_report, base::Bind(&base::DoNothing)); 622 serialized_report, base::Bind(&base::DoNothing));
622 } 623 }
623 } 624 }
624 625
625 private: 626 private:
626 const scoped_refptr<safe_browsing::SafeBrowsingUIManager> 627 const scoped_refptr<safe_browsing::SafeBrowsingUIManager>
627 safe_browsing_ui_manager_; 628 safe_browsing_ui_manager_;
628 }; 629 };
629 630
630 // A provider of Geolocation services to override AccessTokenStore. 631 // A provider of Geolocation services to override AccessTokenStore.
631 class ChromeGeolocationDelegate 632 class ChromeGeolocationDelegate : public content::GeolocationDelegate {
632 : public content::GeolocationProvider::Delegate {
633 public: 633 public:
634 ChromeGeolocationDelegate() = default; 634 ChromeGeolocationDelegate() = default;
635 635
636 AccessTokenStore* CreateAccessTokenStore() final { 636 AccessTokenStore* CreateAccessTokenStore() final {
637 return new ChromeAccessTokenStore(); 637 return new ChromeAccessTokenStore();
638 } 638 }
639 639
640 private: 640 private:
641 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationDelegate); 641 DISALLOW_COPY_AND_ASSIGN(ChromeGeolocationDelegate);
642 }; 642 };
(...skipping 1609 matching lines...) Expand 10 before | Expand all | Expand 10 after
2252 2252
2253 content::SpeechRecognitionManagerDelegate* 2253 content::SpeechRecognitionManagerDelegate*
2254 ChromeContentBrowserClient::CreateSpeechRecognitionManagerDelegate() { 2254 ChromeContentBrowserClient::CreateSpeechRecognitionManagerDelegate() {
2255 return new speech::ChromeSpeechRecognitionManagerDelegate(); 2255 return new speech::ChromeSpeechRecognitionManagerDelegate();
2256 } 2256 }
2257 2257
2258 net::NetLog* ChromeContentBrowserClient::GetNetLog() { 2258 net::NetLog* ChromeContentBrowserClient::GetNetLog() {
2259 return g_browser_process->net_log(); 2259 return g_browser_process->net_log();
2260 } 2260 }
2261 2261
2262 content::GeolocationProvider::Delegate* 2262 content::GeolocationDelegate*
2263 ChromeContentBrowserClient::CreateGeolocationDelegate() { 2263 ChromeContentBrowserClient::CreateGeolocationDelegate() {
2264 return new ChromeGeolocationDelegate(); 2264 return new ChromeGeolocationDelegate();
2265 } 2265 }
2266 2266
2267 bool ChromeContentBrowserClient::IsFastShutdownPossible() { 2267 bool ChromeContentBrowserClient::IsFastShutdownPossible() {
2268 return true; 2268 return true;
2269 } 2269 }
2270 2270
2271 void ChromeContentBrowserClient::OverrideWebkitPrefs( 2271 void ChromeContentBrowserClient::OverrideWebkitPrefs(
2272 RenderViewHost* rvh, WebPreferences* web_prefs) { 2272 RenderViewHost* rvh, WebPreferences* web_prefs) {
(...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after
2984 if (channel <= kMaxDisableEncryptionChannel) { 2984 if (channel <= kMaxDisableEncryptionChannel) {
2985 static const char* const kWebRtcDevSwitchNames[] = { 2985 static const char* const kWebRtcDevSwitchNames[] = {
2986 switches::kDisableWebRtcEncryption, 2986 switches::kDisableWebRtcEncryption,
2987 }; 2987 };
2988 to_command_line->CopySwitchesFrom(from_command_line, 2988 to_command_line->CopySwitchesFrom(from_command_line,
2989 kWebRtcDevSwitchNames, 2989 kWebRtcDevSwitchNames,
2990 arraysize(kWebRtcDevSwitchNames)); 2990 arraysize(kWebRtcDevSwitchNames));
2991 } 2991 }
2992 } 2992 }
2993 #endif // defined(ENABLE_WEBRTC) 2993 #endif // defined(ENABLE_WEBRTC)
OLDNEW
« no previous file with comments | « chrome/browser/chrome_content_browser_client.h ('k') | chromecast/browser/cast_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698