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

Side by Side Diff: extensions/shell/renderer/shell_content_renderer_client.h

Issue 2909673003: [Extensions Bindings] Request JS execution from messaging bindings (Closed)
Patch Set: lazyboy's Created 3 years, 6 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_
6 #define EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ 6 #define EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "content/public/renderer/content_renderer_client.h" 12 #include "content/public/renderer/content_renderer_client.h"
13 13
14 namespace blink { 14 namespace blink {
15 class WebURL; 15 class WebURL;
16 } // namespace blink 16 } // namespace blink
17 17
18 namespace extensions { 18 namespace extensions {
19 19
20 class Dispatcher;
21 class DispatcherDelegate;
22 class ExtensionsClient; 20 class ExtensionsClient;
23 class ExtensionsGuestViewContainerDispatcher; 21 class ExtensionsGuestViewContainerDispatcher;
24 class ShellExtensionsRendererClient; 22 class ShellExtensionsRendererClient;
25 23
26 // Renderer initialization and runtime support for app_shell. 24 // Renderer initialization and runtime support for app_shell.
27 class ShellContentRendererClient : public content::ContentRendererClient { 25 class ShellContentRendererClient : public content::ContentRendererClient {
28 public: 26 public:
29 ShellContentRendererClient(); 27 ShellContentRendererClient();
30 ~ShellContentRendererClient() override; 28 ~ShellContentRendererClient() override;
31 29
(...skipping 23 matching lines...) Expand all
55 void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) override; 53 void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) override;
56 54
57 protected: 55 protected:
58 // app_shell embedders may need custom extensions client interfaces. 56 // app_shell embedders may need custom extensions client interfaces.
59 // This class takes ownership of the returned object. 57 // This class takes ownership of the returned object.
60 virtual ExtensionsClient* CreateExtensionsClient(); 58 virtual ExtensionsClient* CreateExtensionsClient();
61 59
62 private: 60 private:
63 std::unique_ptr<ExtensionsClient> extensions_client_; 61 std::unique_ptr<ExtensionsClient> extensions_client_;
64 std::unique_ptr<ShellExtensionsRendererClient> extensions_renderer_client_; 62 std::unique_ptr<ShellExtensionsRendererClient> extensions_renderer_client_;
65 std::unique_ptr<DispatcherDelegate> extension_dispatcher_delegate_;
66 std::unique_ptr<Dispatcher> extension_dispatcher_;
67 std::unique_ptr<ExtensionsGuestViewContainerDispatcher> 63 std::unique_ptr<ExtensionsGuestViewContainerDispatcher>
68 guest_view_container_dispatcher_; 64 guest_view_container_dispatcher_;
69 65
70 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient); 66 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient);
71 }; 67 };
72 68
73 } // namespace extensions 69 } // namespace extensions
74 70
75 #endif // EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ 71 #endif // EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « extensions/renderer/test_extensions_renderer_client.cc ('k') | extensions/shell/renderer/shell_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698