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

Side by Side Diff: blimp/engine/app/blimp_content_browser_client.h

Issue 2098553002: Geolocation: extract ContentBrowserClient methods specific to Geolocation into a class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added a TODO 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) 2015 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2015 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 BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_ 5 #ifndef BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_
6 #define BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_ 6 #define BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "blimp/engine/feature/geolocation/blimp_location_provider.h"
10 #include "content/public/browser/content_browser_client.h" 9 #include "content/public/browser/content_browser_client.h"
11 10
12 namespace blimp { 11 namespace blimp {
13 namespace engine { 12 namespace engine {
14 13
15 class BlimpBrowserMainParts; 14 class BlimpBrowserMainParts;
16 class BlimpBrowserContext; 15 class BlimpBrowserContext;
17 16
18 class BlimpContentBrowserClient : public content::ContentBrowserClient { 17 class BlimpContentBrowserClient : public content::ContentBrowserClient {
19 public: 18 public:
20 BlimpContentBrowserClient(); 19 BlimpContentBrowserClient();
21 ~BlimpContentBrowserClient() override; 20 ~BlimpContentBrowserClient() override;
22 21
23 BlimpBrowserMainParts* blimp_browser_main_parts() { 22 BlimpBrowserMainParts* blimp_browser_main_parts() {
24 return blimp_browser_main_parts_; 23 return blimp_browser_main_parts_;
25 } 24 }
26 25
27 // content::ContentBrowserClient implementation. 26 // content::ContentBrowserClient implementation.
28 content::BrowserMainParts* CreateBrowserMainParts( 27 content::BrowserMainParts* CreateBrowserMainParts(
29 const content::MainFunctionParams& parameters) override; 28 const content::MainFunctionParams& parameters) override;
30 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host, 29 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host,
31 content::WebPreferences* prefs) override; 30 content::WebPreferences* prefs) override;
32 void ExposeInterfacesToRenderer( 31 void ExposeInterfacesToRenderer(
33 shell::InterfaceRegistry* registry, 32 shell::InterfaceRegistry* registry,
34 content::RenderProcessHost* render_process_host) override; 33 content::RenderProcessHost* render_process_host) override;
35 34
36 content::LocationProvider* OverrideSystemLocationProvider() override; 35 content::GeolocationProvider::Delegate* CreateGeolocationDelegate() override;
37 bool UseNetworkLocationProviders() override;
38 36
39 BlimpBrowserContext* GetBrowserContext(); 37 BlimpBrowserContext* GetBrowserContext();
40 38
41 private: 39 private:
42 // Owned by BrowserMainLoop 40 // Owned by BrowserMainLoop
43 BlimpBrowserMainParts* blimp_browser_main_parts_ = nullptr; 41 BlimpBrowserMainParts* blimp_browser_main_parts_ = nullptr;
44 42
45 std::unique_ptr<BlimpLocationProvider> location_provider_;
46
47 DISALLOW_COPY_AND_ASSIGN(BlimpContentBrowserClient); 43 DISALLOW_COPY_AND_ASSIGN(BlimpContentBrowserClient);
48 }; 44 };
49 45
50 } // namespace engine 46 } // namespace engine
51 } // namespace blimp 47 } // namespace blimp
52 48
53 #endif // BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_ 49 #endif // BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « android_webview/browser/aw_content_browser_client.cc ('k') | blimp/engine/app/blimp_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698