| Index: apps/shell/shell_content_renderer_client.h
|
| diff --git a/apps/shell/shell_content_renderer_client.h b/apps/shell/shell_content_renderer_client.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..0503190f95d9a3c667a717abbb1e0c975642a201
|
| --- /dev/null
|
| +++ b/apps/shell/shell_content_renderer_client.h
|
| @@ -0,0 +1,49 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "base/macros.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "content/public/renderer/content_renderer_client.h"
|
| +
|
| +namespace extensions {
|
| +class Dispatcher;
|
| +}
|
| +
|
| +namespace apps {
|
| +
|
| +class ShellExtensionsClient;
|
| +
|
| +// Renderer initialization and runtime support for app_shell.
|
| +class ShellContentRendererClient : public content::ContentRendererClient {
|
| + public:
|
| + ShellContentRendererClient();
|
| + virtual ~ShellContentRendererClient();
|
| +
|
| + // content::ContentRendererClient implementation:
|
| + virtual void RenderThreadStarted() OVERRIDE;
|
| + virtual void RenderFrameCreated(content::RenderFrame* render_frame) OVERRIDE;
|
| + virtual void RenderViewCreated(content::RenderView* render_view) OVERRIDE;
|
| + virtual bool WillSendRequest(blink::WebFrame* frame,
|
| + content::PageTransition transition_type,
|
| + const GURL& url,
|
| + const GURL& first_party_for_cookies,
|
| + GURL* new_url) OVERRIDE;
|
| + virtual void DidCreateScriptContext(blink::WebFrame* frame,
|
| + v8::Handle<v8::Context> context,
|
| + int extension_group,
|
| + int world_id) OVERRIDE;
|
| + virtual void WillReleaseScriptContext(blink::WebFrame* frame,
|
| + v8::Handle<v8::Context> context,
|
| + int world_id) OVERRIDE;
|
| + virtual bool ShouldEnableSiteIsolationPolicy() const OVERRIDE;
|
| +
|
| + private:
|
| + scoped_ptr<ShellExtensionsClient> extensions_client_;
|
| + scoped_ptr<extensions::Dispatcher> extension_dispatcher_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ShellContentRendererClient);
|
| +};
|
| +
|
| +} // namespace apps
|
|
|