OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 virtual bool ShouldReportDetailedMessageForSource( | 124 virtual bool ShouldReportDetailedMessageForSource( |
125 const base::string16& source) const OVERRIDE; | 125 const base::string16& source) const OVERRIDE; |
126 virtual bool ShouldEnableSiteIsolationPolicy() const OVERRIDE; | 126 virtual bool ShouldEnableSiteIsolationPolicy() const OVERRIDE; |
127 virtual blink::WebWorkerPermissionClientProxy* | 127 virtual blink::WebWorkerPermissionClientProxy* |
128 CreateWorkerPermissionClientProxy(content::RenderFrame* render_frame, | 128 CreateWorkerPermissionClientProxy(content::RenderFrame* render_frame, |
129 blink::WebFrame* frame) OVERRIDE; | 129 blink::WebFrame* frame) OVERRIDE; |
130 virtual bool AllowPepperMediaStreamAPI(const GURL& url) OVERRIDE; | 130 virtual bool AllowPepperMediaStreamAPI(const GURL& url) OVERRIDE; |
131 virtual void AddKeySystems( | 131 virtual void AddKeySystems( |
132 std::vector<content::KeySystemInfo>* key_systems) OVERRIDE; | 132 std::vector<content::KeySystemInfo>* key_systems) OVERRIDE; |
133 | 133 |
134 // For testing. | 134 // Takes ownership. |
135 void SetExtensionDispatcher(extensions::Dispatcher* extension_dispatcher); | 135 void SetExtensionDispatcherForTest( |
| 136 extensions::Dispatcher* extension_dispatcher); |
| 137 extensions::Dispatcher* GetExtensionDispatcherForTest(); |
136 | 138 |
137 #if defined(ENABLE_SPELLCHECK) | 139 #if defined(ENABLE_SPELLCHECK) |
138 // Sets a new |spellcheck|. Used for testing only. | 140 // Sets a new |spellcheck|. Used for testing only. |
139 // Takes ownership of |spellcheck|. | 141 // Takes ownership of |spellcheck|. |
140 void SetSpellcheck(SpellCheck* spellcheck); | 142 void SetSpellcheck(SpellCheck* spellcheck); |
141 #endif | 143 #endif |
142 | 144 |
143 static blink::WebPlugin* CreatePlugin( | 145 static blink::WebPlugin* CreatePlugin( |
144 content::RenderFrame* render_frame, | 146 content::RenderFrame* render_frame, |
145 blink::WebLocalFrame* frame, | 147 blink::WebLocalFrame* frame, |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; | 200 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; |
199 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 201 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
200 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; | 202 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; |
201 #if defined(ENABLE_WEBRTC) | 203 #if defined(ENABLE_WEBRTC) |
202 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; | 204 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; |
203 #endif | 205 #endif |
204 scoped_ptr<SearchBouncer> search_bouncer_; | 206 scoped_ptr<SearchBouncer> search_bouncer_; |
205 }; | 207 }; |
206 | 208 |
207 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 209 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |