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

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

Issue 2157143002: Move interface registration to OnConnect in RPH (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 | « no previous file | blimp/engine/app/blimp_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) 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/mojo/blob_channel_service.h"
9 #include "content/public/browser/content_browser_client.h" 10 #include "content/public/browser/content_browser_client.h"
10 11
11 namespace content { 12 namespace content {
12 class GeolocationDelegate; 13 class GeolocationDelegate;
13 } // namespace content 14 } // namespace content
14 15
15 namespace blimp { 16 namespace blimp {
16 namespace engine { 17 namespace engine {
17 18
18 class BlimpBrowserMainParts; 19 class BlimpBrowserMainParts;
19 class BlimpBrowserContext; 20 class BlimpBrowserContext;
20 21
21 class BlimpContentBrowserClient : public content::ContentBrowserClient { 22 class BlimpContentBrowserClient : public content::ContentBrowserClient {
22 public: 23 public:
23 BlimpContentBrowserClient(); 24 BlimpContentBrowserClient();
24 ~BlimpContentBrowserClient() override; 25 ~BlimpContentBrowserClient() override;
25 26
26 BlimpBrowserMainParts* blimp_browser_main_parts() { 27 BlimpBrowserMainParts* blimp_browser_main_parts() {
27 return blimp_browser_main_parts_; 28 return blimp_browser_main_parts_;
28 } 29 }
29 30
30 // content::ContentBrowserClient implementation. 31 // content::ContentBrowserClient implementation.
31 content::BrowserMainParts* CreateBrowserMainParts( 32 content::BrowserMainParts* CreateBrowserMainParts(
32 const content::MainFunctionParams& parameters) override; 33 const content::MainFunctionParams& parameters) override;
33 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host, 34 void OverrideWebkitPrefs(content::RenderViewHost* render_view_host,
34 content::WebPreferences* prefs) override; 35 content::WebPreferences* prefs) override;
35 void ExposeInterfacesToRenderer( 36 void ExposeInterfacesToRenderer(shell::Connection* connection) override;
36 shell::InterfaceRegistry* registry,
37 content::RenderProcessHost* render_process_host) override;
38 37
39 BlimpBrowserContext* GetBrowserContext(); 38 BlimpBrowserContext* GetBrowserContext();
40 39
41 private: 40 private:
41 void BindBlobChannel(mojom::BlobChannelRequest request);
42
42 // Owned by BrowserMainLoop 43 // Owned by BrowserMainLoop
43 BlimpBrowserMainParts* blimp_browser_main_parts_ = nullptr; 44 BlimpBrowserMainParts* blimp_browser_main_parts_ = nullptr;
44 45
45 DISALLOW_COPY_AND_ASSIGN(BlimpContentBrowserClient); 46 DISALLOW_COPY_AND_ASSIGN(BlimpContentBrowserClient);
46 }; 47 };
47 48
48 } // namespace engine 49 } // namespace engine
49 } // namespace blimp 50 } // namespace blimp
50 51
51 #endif // BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_ 52 #endif // BLIMP_ENGINE_APP_BLIMP_CONTENT_BROWSER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | blimp/engine/app/blimp_content_browser_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698