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

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

Issue 149163002: app_shell: Add ShellContentRendererClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac build (content_renderer_client) Created 6 years, 10 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "base/compiler_specific.h"
6 #include "base/macros.h"
7 #include "base/memory/scoped_ptr.h"
8 #include "content/public/renderer/content_renderer_client.h"
9
10 namespace extensions {
11 class Dispatcher;
12 }
13
14 namespace apps {
15
16 class ShellExtensionsClient;
17
18 // Renderer initialization and runtime support for app_shell.
19 class ShellContentRendererClient : public content::ContentRendererClient {
20 public:
21 ShellContentRendererClient();
22 virtual ~ShellContentRendererClient();
23
24 // content::ContentRendererClient implementation:
25 virtual void RenderThreadStarted() OVERRIDE;
26 virtual void RenderFrameCreated(content::RenderFrame* render_frame) OVERRIDE;
27 virtual void RenderViewCreated(content::RenderView* render_view) OVERRIDE;
28 virtual bool WillSendRequest(blink::WebFrame* frame,
29 content::PageTransition transition_type,
30 const GURL& url,
31 const GURL& first_party_for_cookies,
32 GURL* new_url) OVERRIDE;
33 virtual void DidCreateScriptContext(blink::WebFrame* frame,
34 v8::Handle<v8::Context> context,
35 int extension_group,
36 int world_id) OVERRIDE;
37 virtual void WillReleaseScriptContext(blink::WebFrame* frame,
38 v8::Handle<v8::Context> context,
39 int world_id) OVERRIDE;
40 virtual bool ShouldEnableSiteIsolationPolicy() const OVERRIDE;
41
42 private:
43 scoped_ptr<ShellExtensionsClient> extensions_client_;
44 scoped_ptr<extensions::Dispatcher> extension_dispatcher_;
45
46 DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient);
47 };
48
49 } // namespace apps
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698