Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.h

Issue 19894003: Move webplugininfo.h to content/public. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #if defined(ENABLE_PLUGINS) 11 #if defined(ENABLE_PLUGINS)
12 #include <set> 12 #include <set>
13 #endif 13 #endif
14 14
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/strings/string16.h" 17 #include "base/strings/string16.h"
18 #include "content/public/renderer/content_renderer_client.h" 18 #include "content/public/renderer/content_renderer_client.h"
19 19
20 class ChromeRenderProcessObserver; 20 class ChromeRenderProcessObserver;
21 class ExtensionSet; 21 class ExtensionSet;
22 class PrescientNetworkingDispatcher; 22 class PrescientNetworkingDispatcher;
23 class RendererNetPredictor; 23 class RendererNetPredictor;
24 class SpellCheck; 24 class SpellCheck;
25 class SpellCheckProvider; 25 class SpellCheckProvider;
26 26
27 struct ChromeViewHostMsg_GetPluginInfo_Output; 27 struct ChromeViewHostMsg_GetPluginInfo_Output;
28 28
29 namespace content {
30 struct WebPluginInfo;
31 }
32
29 namespace extensions { 33 namespace extensions {
30 class Dispatcher; 34 class Dispatcher;
31 class Extension; 35 class Extension;
32 class RendererPermissionsPolicyDelegate; 36 class RendererPermissionsPolicyDelegate;
33 } 37 }
34 38
35 namespace prerender { 39 namespace prerender {
36 class PrerenderDispatcher; 40 class PrerenderDispatcher;
37 } 41 }
38 42
39 namespace safe_browsing { 43 namespace safe_browsing {
40 class PhishingClassifierFilter; 44 class PhishingClassifierFilter;
41 } 45 }
42 46
43 namespace visitedlink { 47 namespace visitedlink {
44 class VisitedLinkSlave; 48 class VisitedLinkSlave;
45 } 49 }
46 50
47 namespace webkit {
48 struct WebPluginInfo;
49 }
50
51 namespace WebKit { 51 namespace WebKit {
52 class WebSecurityOrigin; 52 class WebSecurityOrigin;
53 } 53 }
54 54
55 #if defined(ENABLE_WEBRTC) 55 #if defined(ENABLE_WEBRTC)
56 class WebRtcLoggingMessageFilter; 56 class WebRtcLoggingMessageFilter;
57 #endif 57 #endif
58 58
59 namespace chrome { 59 namespace chrome {
60 60
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 // Returns true if the frame is navigating to an URL either into or out of an 170 // Returns true if the frame is navigating to an URL either into or out of an
171 // extension app's extent. 171 // extension app's extent.
172 bool CrossesExtensionExtents(WebKit::WebFrame* frame, 172 bool CrossesExtensionExtents(WebKit::WebFrame* frame,
173 const GURL& new_url, 173 const GURL& new_url,
174 const ExtensionSet& extensions, 174 const ExtensionSet& extensions,
175 bool is_extension_url, 175 bool is_extension_url,
176 bool is_initial_navigation); 176 bool is_initial_navigation);
177 177
178 static GURL GetNaClContentHandlerURL(const std::string& actual_mime_type, 178 static GURL GetNaClContentHandlerURL(const std::string& actual_mime_type,
179 const webkit::WebPluginInfo& plugin); 179 const content::WebPluginInfo& plugin);
180 static bool IsNaClAllowed(const GURL& manifest_url, 180 static bool IsNaClAllowed(const GURL& manifest_url,
181 const GURL& app_url, 181 const GURL& app_url,
182 bool is_nacl_unrestricted, 182 bool is_nacl_unrestricted,
183 const extensions::Extension* extension, 183 const extensions::Extension* extension,
184 WebKit::WebPluginParams* params); 184 WebKit::WebPluginParams* params);
185 185
186 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; 186 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_;
187 scoped_ptr<extensions::Dispatcher> extension_dispatcher_; 187 scoped_ptr<extensions::Dispatcher> extension_dispatcher_;
188 scoped_ptr<extensions::RendererPermissionsPolicyDelegate> 188 scoped_ptr<extensions::RendererPermissionsPolicyDelegate>
189 permissions_policy_delegate_; 189 permissions_policy_delegate_;
190 scoped_ptr<PrescientNetworkingDispatcher> prescient_networking_dispatcher_; 190 scoped_ptr<PrescientNetworkingDispatcher> prescient_networking_dispatcher_;
191 scoped_ptr<RendererNetPredictor> net_predictor_; 191 scoped_ptr<RendererNetPredictor> net_predictor_;
192 scoped_ptr<SpellCheck> spellcheck_; 192 scoped_ptr<SpellCheck> spellcheck_;
193 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_; 193 scoped_ptr<visitedlink::VisitedLinkSlave> visited_link_slave_;
194 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; 194 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_;
195 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; 195 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_;
196 #if defined(ENABLE_WEBRTC) 196 #if defined(ENABLE_WEBRTC)
197 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_; 197 scoped_refptr<WebRtcLoggingMessageFilter> webrtc_logging_message_filter_;
198 #endif 198 #endif
199 199
200 #if defined(ENABLE_PLUGINS) 200 #if defined(ENABLE_PLUGINS)
201 std::set<std::string> allowed_file_handle_origins_; 201 std::set<std::string> allowed_file_handle_origins_;
202 #endif 202 #endif
203 }; 203 };
204 204
205 } // namespace chrome 205 } // namespace chrome
206 206
207 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 207 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698