OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 10 matching lines...) Expand all Loading... | |
21 namespace safe_browsing { | 21 namespace safe_browsing { |
22 class PhishingClassifierFilter; | 22 class PhishingClassifierFilter; |
23 } | 23 } |
24 | 24 |
25 namespace webkit { | 25 namespace webkit { |
26 namespace npapi { | 26 namespace npapi { |
27 class PluginGroup; | 27 class PluginGroup; |
28 } | 28 } |
29 } | 29 } |
30 | 30 |
31 namespace v8 { | |
jam
2011/08/15 22:04:56
not needed since content_renderer_client already d
| |
32 class Context; | |
33 template<class T> class Handle; | |
34 } | |
35 | |
31 namespace chrome { | 36 namespace chrome { |
32 | 37 |
33 class ChromeContentRendererClient : public content::ContentRendererClient { | 38 class ChromeContentRendererClient : public content::ContentRendererClient { |
34 public: | 39 public: |
35 ChromeContentRendererClient(); | 40 ChromeContentRendererClient(); |
36 virtual ~ChromeContentRendererClient(); | 41 virtual ~ChromeContentRendererClient(); |
37 | 42 |
38 virtual void RenderThreadStarted() OVERRIDE; | 43 virtual void RenderThreadStarted() OVERRIDE; |
39 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; | 44 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; |
40 virtual void SetNumberOfViews(int number_of_views) OVERRIDE; | 45 virtual void SetNumberOfViews(int number_of_views) OVERRIDE; |
(...skipping 14 matching lines...) Expand all Loading... | |
55 virtual bool ShouldFork(WebKit::WebFrame* frame, | 60 virtual bool ShouldFork(WebKit::WebFrame* frame, |
56 const GURL& url, | 61 const GURL& url, |
57 bool is_content_initiated, | 62 bool is_content_initiated, |
58 bool* send_referrer) OVERRIDE; | 63 bool* send_referrer) OVERRIDE; |
59 virtual bool WillSendRequest(WebKit::WebFrame* frame, | 64 virtual bool WillSendRequest(WebKit::WebFrame* frame, |
60 const GURL& url, | 65 const GURL& url, |
61 GURL* new_url) OVERRIDE; | 66 GURL* new_url) OVERRIDE; |
62 virtual bool ShouldPumpEventsDuringCookieMessage() OVERRIDE; | 67 virtual bool ShouldPumpEventsDuringCookieMessage() OVERRIDE; |
63 virtual void DidCreateScriptContext(WebKit::WebFrame* frame) OVERRIDE; | 68 virtual void DidCreateScriptContext(WebKit::WebFrame* frame) OVERRIDE; |
64 virtual void DidDestroyScriptContext(WebKit::WebFrame* frame) OVERRIDE; | 69 virtual void DidDestroyScriptContext(WebKit::WebFrame* frame) OVERRIDE; |
65 virtual void DidCreateIsolatedScriptContext(WebKit::WebFrame* frame) OVERRIDE; | 70 virtual void DidCreateIsolatedScriptContext( |
71 WebKit::WebFrame* frame, int world_id, | |
72 v8::Handle<v8::Context> context) OVERRIDE; | |
66 virtual unsigned long long VisitedLinkHash(const char* canonical_url, | 73 virtual unsigned long long VisitedLinkHash(const char* canonical_url, |
67 size_t length) OVERRIDE; | 74 size_t length) OVERRIDE; |
68 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; | 75 virtual bool IsLinkVisited(unsigned long long link_hash) OVERRIDE; |
69 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; | 76 virtual void PrefetchHostName(const char* hostname, size_t length) OVERRIDE; |
70 virtual bool ShouldOverridePageVisibilityState( | 77 virtual bool ShouldOverridePageVisibilityState( |
71 const RenderView* render_view, | 78 const RenderView* render_view, |
72 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; | 79 WebKit::WebPageVisibilityState* override_state) const OVERRIDE; |
73 | 80 |
74 // For testing. | 81 // For testing. |
75 void SetExtensionDispatcher(ExtensionDispatcher* extension_dispatcher); | 82 void SetExtensionDispatcher(ExtensionDispatcher* extension_dispatcher); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
107 // The SpellCheckProvider is a RenderViewObserver, and handles its own | 114 // The SpellCheckProvider is a RenderViewObserver, and handles its own |
108 // destruction. | 115 // destruction. |
109 SpellCheckProvider* spellcheck_provider_; | 116 SpellCheckProvider* spellcheck_provider_; |
110 scoped_ptr<VisitedLinkSlave> visited_link_slave_; | 117 scoped_ptr<VisitedLinkSlave> visited_link_slave_; |
111 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 118 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
112 }; | 119 }; |
113 | 120 |
114 } // namespace chrome | 121 } // namespace chrome |
115 | 122 |
116 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 123 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |