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

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

Issue 237833002: Create ExtensionsRendererClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « apps/shell/app_shell.gyp ('k') | apps/shell/renderer/shell_content_renderer_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 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 APPS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_
6 #define APPS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ 6 #define APPS_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 class Dispatcher; 14 class Dispatcher;
15 } 15 }
16 16
17 namespace apps { 17 namespace apps {
18 18
19 class ShellExtensionsClient; 19 class ShellExtensionsClient;
20 class ShellExtensionsRendererClient;
20 21
21 // Renderer initialization and runtime support for app_shell. 22 // Renderer initialization and runtime support for app_shell.
22 class ShellContentRendererClient : public content::ContentRendererClient { 23 class ShellContentRendererClient : public content::ContentRendererClient {
23 public: 24 public:
24 ShellContentRendererClient(); 25 ShellContentRendererClient();
25 virtual ~ShellContentRendererClient(); 26 virtual ~ShellContentRendererClient();
26 27
27 // content::ContentRendererClient implementation: 28 // content::ContentRendererClient implementation:
28 virtual void RenderThreadStarted() OVERRIDE; 29 virtual void RenderThreadStarted() OVERRIDE;
29 virtual void RenderFrameCreated(content::RenderFrame* render_frame) OVERRIDE; 30 virtual void RenderFrameCreated(content::RenderFrame* render_frame) OVERRIDE;
30 virtual void RenderViewCreated(content::RenderView* render_view) OVERRIDE; 31 virtual void RenderViewCreated(content::RenderView* render_view) OVERRIDE;
31 virtual bool WillSendRequest(blink::WebFrame* frame, 32 virtual bool WillSendRequest(blink::WebFrame* frame,
32 content::PageTransition transition_type, 33 content::PageTransition transition_type,
33 const GURL& url, 34 const GURL& url,
34 const GURL& first_party_for_cookies, 35 const GURL& first_party_for_cookies,
35 GURL* new_url) OVERRIDE; 36 GURL* new_url) OVERRIDE;
36 virtual void DidCreateScriptContext(blink::WebFrame* frame, 37 virtual void DidCreateScriptContext(blink::WebFrame* frame,
37 v8::Handle<v8::Context> context, 38 v8::Handle<v8::Context> context,
38 int extension_group, 39 int extension_group,
39 int world_id) OVERRIDE; 40 int world_id) OVERRIDE;
40 virtual bool ShouldEnableSiteIsolationPolicy() const OVERRIDE; 41 virtual bool ShouldEnableSiteIsolationPolicy() const OVERRIDE;
41 42
42 private: 43 private:
43 scoped_ptr<ShellExtensionsClient> extensions_client_; 44 scoped_ptr<ShellExtensionsClient> extensions_client_;
45 scoped_ptr<ShellExtensionsRendererClient> extensions_renderer_client_;
44 scoped_ptr<extensions::Dispatcher> extension_dispatcher_; 46 scoped_ptr<extensions::Dispatcher> extension_dispatcher_;
45 47
46 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient); 48 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient);
47 }; 49 };
48 50
49 } // namespace apps 51 } // namespace apps
50 52
51 #endif // APPS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_ 53 #endif // APPS_SHELL_RENDERER_SHELL_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « apps/shell/app_shell.gyp ('k') | apps/shell/renderer/shell_content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698