Chromium Code Reviews| OLD | NEW |
|---|---|
| 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" | |
| 9 #include "content/public/browser/content_browser_client.h" | 10 #include "content/public/browser/content_browser_client.h" |
| 10 | 11 |
| 11 namespace blimp { | 12 namespace blimp { |
| 12 namespace engine { | 13 namespace engine { |
| 13 | 14 |
| 14 class BlimpBrowserMainParts; | 15 class BlimpBrowserMainParts; |
| 15 class BlimpBrowserContext; | 16 class BlimpBrowserContext; |
| 16 | 17 |
| 17 class BlimpContentBrowserClient : public content::ContentBrowserClient { | 18 class BlimpContentBrowserClient : public content::ContentBrowserClient { |
| 18 public: | 19 public: |
| 19 BlimpContentBrowserClient(); | 20 BlimpContentBrowserClient(); |
| 20 ~BlimpContentBrowserClient() override; | 21 ~BlimpContentBrowserClient() override; |
| 21 | 22 |
| 22 BlimpBrowserMainParts* blimp_browser_main_parts() { | 23 BlimpBrowserMainParts* blimp_browser_main_parts() { |
| 23 return blimp_browser_main_parts_; | 24 return blimp_browser_main_parts_; |
| 24 } | 25 } |
| 25 | 26 |
| 26 // content::ContentBrowserClient implementation. | 27 // content::ContentBrowserClient implementation. |
| 27 content::BrowserMainParts* CreateBrowserMainParts( | 28 content::BrowserMainParts* CreateBrowserMainParts( |
| 28 const content::MainFunctionParams& parameters) override; | 29 const content::MainFunctionParams& parameters) override; |
| 29 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host, | 30 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host, |
| 30 content::WebPreferences* prefs) override; | 31 content::WebPreferences* prefs) override; |
| 31 void RegisterRenderProcessMojoServices( | 32 void RegisterRenderProcessMojoServices( |
| 32 content::ServiceRegistry* registry) override; | 33 content::ServiceRegistry* registry) override; |
| 33 | 34 |
| 34 BlimpBrowserContext* GetBrowserContext(); | 35 BlimpBrowserContext* GetBrowserContext(); |
| 35 | 36 |
| 37 content::LocationProvider* OverrideSystemLocationProvider() override; | |
|
Kevin M
2016/05/31 23:43:55
Cluster these overrides with the others under "con
CJ
2016/05/31 23:51:24
Done.
| |
| 38 | |
| 39 bool UseDefaultLocationProviders() override; | |
| 40 | |
| 36 private: | 41 private: |
| 37 // Owned by BrowserMainLoop | 42 // Owned by BrowserMainLoop |
| 38 BlimpBrowserMainParts* blimp_browser_main_parts_ = nullptr; | 43 BlimpBrowserMainParts* blimp_browser_main_parts_ = nullptr; |
| 39 | 44 |
| 45 BlimpLocationProvider location_provider_; | |
| 46 | |
| 40 DISALLOW_COPY_AND_ASSIGN(BlimpContentBrowserClient); | 47 DISALLOW_COPY_AND_ASSIGN(BlimpContentBrowserClient); |
| 41 }; | 48 }; |
| 42 | 49 |
| 43 } // namespace engine | 50 } // namespace engine |
| 44 } // namespace blimp | 51 } // namespace blimp |
| 45 | 52 |
| 46 #endif // BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_ | 53 #endif // BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |