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 <string> | 9 #include <string> |
9 #include <vector> | 10 #include <vector> |
10 | 11 |
11 #if defined(ENABLE_PLUGINS) | |
12 #include <set> | |
13 #endif | |
14 | |
15 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
16 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
17 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
18 #include "content/public/renderer/content_renderer_client.h" | 15 #include "content/public/renderer/content_renderer_client.h" |
19 | 16 |
20 class ChromeRenderProcessObserver; | 17 class ChromeRenderProcessObserver; |
21 class ExtensionSet; | 18 class ExtensionSet; |
22 class PrescientNetworkingDispatcher; | 19 class PrescientNetworkingDispatcher; |
23 class RendererNetPredictor; | 20 class RendererNetPredictor; |
24 class SearchBouncer; | 21 class SearchBouncer; |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // Called in low-memory conditions to dump the memory used by the spellchecker | 152 // Called in low-memory conditions to dump the memory used by the spellchecker |
156 // and start over. | 153 // and start over. |
157 void OnPurgeMemory(); | 154 void OnPurgeMemory(); |
158 | 155 |
159 static blink::WebPlugin* CreatePlugin( | 156 static blink::WebPlugin* CreatePlugin( |
160 content::RenderView* render_view, | 157 content::RenderView* render_view, |
161 blink::WebFrame* frame, | 158 blink::WebFrame* frame, |
162 const blink::WebPluginParams& params, | 159 const blink::WebPluginParams& params, |
163 const ChromeViewHostMsg_GetPluginInfo_Output& output); | 160 const ChromeViewHostMsg_GetPluginInfo_Output& output); |
164 | 161 |
| 162 static bool IsExtensionOrSharedModuleWhitelisted( |
| 163 const GURL& url, const std::set<std::string>& whitelist); |
| 164 |
165 // TODO(mpcomplete): remove after we collect histogram data. | 165 // TODO(mpcomplete): remove after we collect histogram data. |
166 // http://crbug.com/100411 | 166 // http://crbug.com/100411 |
167 static bool IsAdblockInstalled(); | 167 static bool IsAdblockInstalled(); |
168 static bool IsAdblockPlusInstalled(); | 168 static bool IsAdblockPlusInstalled(); |
169 static bool IsAdblockWithWebRequestInstalled(); | 169 static bool IsAdblockWithWebRequestInstalled(); |
170 static bool IsAdblockPlusWithWebRequestInstalled(); | 170 static bool IsAdblockPlusWithWebRequestInstalled(); |
171 static bool IsOtherExtensionWithWebRequestInstalled(); | 171 static bool IsOtherExtensionWithWebRequestInstalled(); |
172 | 172 |
173 private: | 173 private: |
174 FRIEND_TEST_ALL_PREFIXES(ChromeContentRendererClientTest, NaClRestriction); | 174 FRIEND_TEST_ALL_PREFIXES(ChromeContentRendererClientTest, NaClRestriction); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; | 211 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; |
212 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 212 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
213 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; | 213 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; |
214 #if defined(ENABLE_WEBRTC) | 214 #if defined(ENABLE_WEBRTC) |
215 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; | 215 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; |
216 #endif | 216 #endif |
217 scoped_ptr<SearchBouncer> search_bouncer_; | 217 scoped_ptr<SearchBouncer> search_bouncer_; |
218 }; | 218 }; |
219 | 219 |
220 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 220 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |