OLD | NEW |
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> |
| 9 |
8 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 11 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "content/public/renderer/content_renderer_client.h" | 12 #include "content/public/renderer/content_renderer_client.h" |
12 | 13 |
13 namespace extensions { | 14 namespace extensions { |
14 | 15 |
15 class Dispatcher; | 16 class Dispatcher; |
16 class DispatcherDelegate; | 17 class DispatcherDelegate; |
17 class ExtensionsClient; | 18 class ExtensionsClient; |
18 class ExtensionsGuestViewContainerDispatcher; | 19 class ExtensionsGuestViewContainerDispatcher; |
19 class ShellExtensionsRendererClient; | 20 class ShellExtensionsRendererClient; |
20 class ShellRendererMainDelegate; | 21 class ShellRendererMainDelegate; |
(...skipping 28 matching lines...) Expand all Loading... |
49 const GURL& original_url) override; | 50 const GURL& original_url) override; |
50 void RunScriptsAtDocumentStart(content::RenderFrame* render_frame) override; | 51 void RunScriptsAtDocumentStart(content::RenderFrame* render_frame) override; |
51 void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) override; | 52 void RunScriptsAtDocumentEnd(content::RenderFrame* render_frame) override; |
52 | 53 |
53 protected: | 54 protected: |
54 // app_shell embedders may need custom extensions client interfaces. | 55 // app_shell embedders may need custom extensions client interfaces. |
55 // This class takes ownership of the returned object. | 56 // This class takes ownership of the returned object. |
56 virtual ExtensionsClient* CreateExtensionsClient(); | 57 virtual ExtensionsClient* CreateExtensionsClient(); |
57 | 58 |
58 private: | 59 private: |
59 scoped_ptr<ExtensionsClient> extensions_client_; | 60 std::unique_ptr<ExtensionsClient> extensions_client_; |
60 scoped_ptr<ShellExtensionsRendererClient> extensions_renderer_client_; | 61 std::unique_ptr<ShellExtensionsRendererClient> extensions_renderer_client_; |
61 scoped_ptr<DispatcherDelegate> extension_dispatcher_delegate_; | 62 std::unique_ptr<DispatcherDelegate> extension_dispatcher_delegate_; |
62 scoped_ptr<Dispatcher> extension_dispatcher_; | 63 std::unique_ptr<Dispatcher> extension_dispatcher_; |
63 scoped_ptr<ExtensionsGuestViewContainerDispatcher> | 64 std::unique_ptr<ExtensionsGuestViewContainerDispatcher> |
64 guest_view_container_dispatcher_; | 65 guest_view_container_dispatcher_; |
65 | 66 |
66 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient); | 67 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient); |
67 }; | 68 }; |
68 | 69 |
69 } // namespace extensions | 70 } // namespace extensions |
70 | 71 |
71 #endif // EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ | 72 #endif // EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |