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 APPS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ |
6 #define APPS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ | 6 #define EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "content/public/renderer/content_renderer_client.h" | 11 #include "content/public/renderer/content_renderer_client.h" |
12 | 12 |
13 namespace extensions { | 13 namespace extensions { |
| 14 |
14 class Dispatcher; | 15 class Dispatcher; |
15 class DispatcherDelegate; | 16 class DispatcherDelegate; |
16 } | |
17 | |
18 namespace apps { | |
19 | |
20 class ShellExtensionsClient; | 17 class ShellExtensionsClient; |
21 class ShellExtensionsRendererClient; | 18 class ShellExtensionsRendererClient; |
22 class ShellRendererMainDelegate; | 19 class ShellRendererMainDelegate; |
23 | 20 |
24 // Renderer initialization and runtime support for app_shell. | 21 // Renderer initialization and runtime support for app_shell. |
25 class ShellContentRendererClient : public content::ContentRendererClient { | 22 class ShellContentRendererClient : public content::ContentRendererClient { |
26 public: | 23 public: |
27 explicit ShellContentRendererClient( | 24 explicit ShellContentRendererClient( |
28 scoped_ptr<ShellRendererMainDelegate> delegate); | 25 scoped_ptr<ShellRendererMainDelegate> delegate); |
29 virtual ~ShellContentRendererClient(); | 26 virtual ~ShellContentRendererClient(); |
(...skipping 10 matching lines...) Expand all Loading... |
40 virtual void DidCreateScriptContext(blink::WebFrame* frame, | 37 virtual void DidCreateScriptContext(blink::WebFrame* frame, |
41 v8::Handle<v8::Context> context, | 38 v8::Handle<v8::Context> context, |
42 int extension_group, | 39 int extension_group, |
43 int world_id) OVERRIDE; | 40 int world_id) OVERRIDE; |
44 virtual bool ShouldEnableSiteIsolationPolicy() const OVERRIDE; | 41 virtual bool ShouldEnableSiteIsolationPolicy() const OVERRIDE; |
45 | 42 |
46 private: | 43 private: |
47 scoped_ptr<ShellRendererMainDelegate> delegate_; | 44 scoped_ptr<ShellRendererMainDelegate> delegate_; |
48 scoped_ptr<ShellExtensionsClient> extensions_client_; | 45 scoped_ptr<ShellExtensionsClient> extensions_client_; |
49 scoped_ptr<ShellExtensionsRendererClient> extensions_renderer_client_; | 46 scoped_ptr<ShellExtensionsRendererClient> extensions_renderer_client_; |
50 scoped_ptr<extensions::DispatcherDelegate> extension_dispatcher_delegate_; | 47 scoped_ptr<DispatcherDelegate> extension_dispatcher_delegate_; |
51 scoped_ptr<extensions::Dispatcher> extension_dispatcher_; | 48 scoped_ptr<Dispatcher> extension_dispatcher_; |
52 | 49 |
53 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient); | 50 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient); |
54 }; | 51 }; |
55 | 52 |
56 } // namespace apps | 53 } // namespace extensions |
57 | 54 |
58 #endif // APPS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ | 55 #endif // EXTENSIONS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |