| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 } | 47 } |
| 48 | 48 |
| 49 namespace visitedlink { | 49 namespace visitedlink { |
| 50 class VisitedLinkSlave; | 50 class VisitedLinkSlave; |
| 51 } | 51 } |
| 52 | 52 |
| 53 namespace blink { | 53 namespace blink { |
| 54 class WebSecurityOrigin; | 54 class WebSecurityOrigin; |
| 55 } | 55 } |
| 56 | 56 |
| 57 namespace password_manager { |
| 58 class CredentialManagerClient; |
| 59 } |
| 60 |
| 57 #if defined(ENABLE_WEBRTC) | 61 #if defined(ENABLE_WEBRTC) |
| 58 class WebRtcLoggingMessageFilter; | 62 class WebRtcLoggingMessageFilter; |
| 59 #endif | 63 #endif |
| 60 | 64 |
| 61 class ChromeContentRendererClient : public content::ContentRendererClient { | 65 class ChromeContentRendererClient : public content::ContentRendererClient { |
| 62 public: | 66 public: |
| 63 ChromeContentRendererClient(); | 67 ChromeContentRendererClient(); |
| 64 virtual ~ChromeContentRendererClient(); | 68 virtual ~ChromeContentRendererClient(); |
| 65 | 69 |
| 66 virtual void RenderThreadStarted() OVERRIDE; | 70 virtual void RenderThreadStarted() OVERRIDE; |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 CreateWorkerPermissionClientProxy(content::RenderFrame* render_frame, | 131 CreateWorkerPermissionClientProxy(content::RenderFrame* render_frame, |
| 128 blink::WebFrame* frame) OVERRIDE; | 132 blink::WebFrame* frame) OVERRIDE; |
| 129 virtual bool AllowPepperMediaStreamAPI(const GURL& url) OVERRIDE; | 133 virtual bool AllowPepperMediaStreamAPI(const GURL& url) OVERRIDE; |
| 130 virtual void AddKeySystems( | 134 virtual void AddKeySystems( |
| 131 std::vector<content::KeySystemInfo>* key_systems) OVERRIDE; | 135 std::vector<content::KeySystemInfo>* key_systems) OVERRIDE; |
| 132 virtual bool IsPluginAllowedToUseDevChannelAPIs() OVERRIDE; | 136 virtual bool IsPluginAllowedToUseDevChannelAPIs() OVERRIDE; |
| 133 virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url) OVERRIDE; | 137 virtual bool IsPluginAllowedToUseCompositorAPI(const GURL& url) OVERRIDE; |
| 134 virtual bool IsPluginAllowedToUseVideoDecodeAPI(const GURL& url) OVERRIDE; | 138 virtual bool IsPluginAllowedToUseVideoDecodeAPI(const GURL& url) OVERRIDE; |
| 135 | 139 |
| 136 // Takes ownership. | 140 // Takes ownership. |
| 141 void SetCredentialManagerClientForTest( |
| 142 password_manager::CredentialManagerClient* client); |
| 143 |
| 144 // Takes ownership. |
| 137 void SetExtensionDispatcherForTest( | 145 void SetExtensionDispatcherForTest( |
| 138 extensions::Dispatcher* extension_dispatcher); | 146 extensions::Dispatcher* extension_dispatcher); |
| 139 extensions::Dispatcher* GetExtensionDispatcherForTest(); | 147 extensions::Dispatcher* GetExtensionDispatcherForTest(); |
| 140 | 148 |
| 141 #if defined(ENABLE_SPELLCHECK) | 149 #if defined(ENABLE_SPELLCHECK) |
| 142 // Sets a new |spellcheck|. Used for testing only. | 150 // Sets a new |spellcheck|. Used for testing only. |
| 143 // Takes ownership of |spellcheck|. | 151 // Takes ownership of |spellcheck|. |
| 144 void SetSpellcheck(SpellCheck* spellcheck); | 152 void SetSpellcheck(SpellCheck* spellcheck); |
| 145 #endif | 153 #endif |
| 146 | 154 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 206 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
| 199 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; | 207 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; |
| 200 #if defined(ENABLE_WEBRTC) | 208 #if defined(ENABLE_WEBRTC) |
| 201 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; | 209 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; |
| 202 #endif | 210 #endif |
| 203 scoped_ptr<SearchBouncer> search_bouncer_; | 211 scoped_ptr<SearchBouncer> search_bouncer_; |
| 204 #if defined(ENABLE_PLUGINS) | 212 #if defined(ENABLE_PLUGINS) |
| 205 std::set<std::string> allowed_compositor_origins_; | 213 std::set<std::string> allowed_compositor_origins_; |
| 206 std::set<std::string> allowed_video_decode_origins_; | 214 std::set<std::string> allowed_video_decode_origins_; |
| 207 #endif | 215 #endif |
| 216 scoped_ptr<password_manager::CredentialManagerClient> |
| 217 credential_manager_client_; |
| 208 }; | 218 }; |
| 209 | 219 |
| 210 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 220 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |