| 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 "content/public/browser/content_browser_client.h" | 9 #include "content/public/browser/content_browser_client.h" |
| 10 | 10 |
| 11 namespace content { |
| 12 class WebContentsViewDelegate; |
| 13 } |
| 14 |
| 11 namespace blimp { | 15 namespace blimp { |
| 12 namespace engine { | 16 namespace engine { |
| 13 | 17 |
| 14 class BlimpBrowserMainParts; | 18 class BlimpBrowserMainParts; |
| 15 class BlimpBrowserContext; | 19 class BlimpBrowserContext; |
| 16 | 20 |
| 17 class BlimpContentBrowserClient : public content::ContentBrowserClient { | 21 class BlimpContentBrowserClient : public content::ContentBrowserClient { |
| 18 public: | 22 public: |
| 19 BlimpContentBrowserClient(); | 23 BlimpContentBrowserClient(); |
| 20 ~BlimpContentBrowserClient() override; | 24 ~BlimpContentBrowserClient() override; |
| 21 | 25 |
| 22 BlimpBrowserMainParts* blimp_browser_main_parts() { | 26 BlimpBrowserMainParts* blimp_browser_main_parts() { |
| 23 return blimp_browser_main_parts_; | 27 return blimp_browser_main_parts_; |
| 24 } | 28 } |
| 25 | 29 |
| 26 // content::ContentBrowserClient implementation. | 30 // content::ContentBrowserClient implementation. |
| 27 content::BrowserMainParts* CreateBrowserMainParts( | 31 content::BrowserMainParts* CreateBrowserMainParts( |
| 28 const content::MainFunctionParams& parameters) override; | 32 const content::MainFunctionParams& parameters) override; |
| 29 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host, | 33 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host, |
| 30 content::WebPreferences* prefs) override; | 34 content::WebPreferences* prefs) override; |
| 31 void RegisterRenderProcessMojoServices( | 35 void RegisterRenderProcessMojoServices( |
| 32 content::ServiceRegistry* registry) override; | 36 content::ServiceRegistry* registry) override; |
| 37 content::WebContentsViewDelegate* GetWebContentsViewDelegate( |
| 38 content::WebContents* web_contents) override; |
| 33 | 39 |
| 34 BlimpBrowserContext* GetBrowserContext(); | 40 BlimpBrowserContext* GetBrowserContext(); |
| 35 | 41 |
| 36 private: | 42 private: |
| 37 // Owned by BrowserMainLoop | 43 // Owned by BrowserMainLoop |
| 38 BlimpBrowserMainParts* blimp_browser_main_parts_ = nullptr; | 44 BlimpBrowserMainParts* blimp_browser_main_parts_ = nullptr; |
| 39 | 45 |
| 40 DISALLOW_COPY_AND_ASSIGN(BlimpContentBrowserClient); | 46 DISALLOW_COPY_AND_ASSIGN(BlimpContentBrowserClient); |
| 41 }; | 47 }; |
| 42 | 48 |
| 43 } // namespace engine | 49 } // namespace engine |
| 44 } // namespace blimp | 50 } // namespace blimp |
| 45 | 51 |
| 46 #endif // BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_ | 52 #endif // BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_ |
| OLD | NEW |