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 <string> | 9 #include <string> |
10 | 10 |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/string16.h" | 13 #include "base/string16.h" |
14 #include "content/public/renderer/content_renderer_client.h" | 14 #include "content/public/renderer/content_renderer_client.h" |
15 | 15 |
16 class ChromeRenderProcessObserver; | 16 class ChromeRenderProcessObserver; |
| 17 class Extension; |
17 class ExtensionDispatcher; | 18 class ExtensionDispatcher; |
| 19 class ExtensionSet; |
18 class RendererHistogramSnapshots; | 20 class RendererHistogramSnapshots; |
19 class RendererNetPredictor; | 21 class RendererNetPredictor; |
20 class RendererTracking; | 22 class RendererTracking; |
21 class SpellCheck; | 23 class SpellCheck; |
22 class SpellCheckProvider; | 24 class SpellCheckProvider; |
23 class VisitedLinkSlave; | 25 class VisitedLinkSlave; |
24 | 26 |
25 namespace safe_browsing { | 27 namespace safe_browsing { |
26 class PhishingClassifierFilter; | 28 class PhishingClassifierFilter; |
27 } | 29 } |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 content::RenderView* render_view, | 121 content::RenderView* render_view, |
120 WebKit::WebFrame* frame, | 122 WebKit::WebFrame* frame, |
121 const webkit::WebPluginInfo& plugin, | 123 const webkit::WebPluginInfo& plugin, |
122 const WebKit::WebPluginParams& params, | 124 const WebKit::WebPluginParams& params, |
123 const webkit::npapi::PluginGroup* group, | 125 const webkit::npapi::PluginGroup* group, |
124 int resource_id, | 126 int resource_id, |
125 int message_id, | 127 int message_id, |
126 bool is_blocked_for_prerendering, | 128 bool is_blocked_for_prerendering, |
127 bool allow_loading); | 129 bool allow_loading); |
128 | 130 |
| 131 // Returns the extension for the given URL. Excludes extension objects for |
| 132 // bookmark apps, which do not use the app process model. |
| 133 const Extension* GetNonBookmarkAppExtension(const ExtensionSet* extensions, |
| 134 const GURL& url); |
| 135 |
129 // Returns true if the frame is navigating to an URL either into or out of an | 136 // Returns true if the frame is navigating to an URL either into or out of an |
130 // extension app's extent. | 137 // extension app's extent. |
131 bool CrossesExtensionExtents(WebKit::WebFrame* frame, | 138 bool CrossesExtensionExtents(WebKit::WebFrame* frame, |
132 const GURL& new_url, | 139 const GURL& new_url, |
133 bool is_initial_navigation); | 140 bool is_initial_navigation); |
134 | 141 |
135 // Returns true if the NaCl plugin can be created. If it returns true, as a | 142 // Returns true if the NaCl plugin can be created. If it returns true, as a |
136 // side effect, it may add special attributes to params. | 143 // side effect, it may add special attributes to params. |
137 bool IsNaClAllowed(const webkit::WebPluginInfo& plugin, | 144 bool IsNaClAllowed(const webkit::WebPluginInfo& plugin, |
138 const GURL& url, | 145 const GURL& url, |
(...skipping 11 matching lines...) Expand all Loading... |
150 // The SpellCheckProvider is a RenderViewObserver, and handles its own | 157 // The SpellCheckProvider is a RenderViewObserver, and handles its own |
151 // destruction. | 158 // destruction. |
152 SpellCheckProvider* spellcheck_provider_; | 159 SpellCheckProvider* spellcheck_provider_; |
153 scoped_ptr<VisitedLinkSlave> visited_link_slave_; | 160 scoped_ptr<VisitedLinkSlave> visited_link_slave_; |
154 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 161 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
155 }; | 162 }; |
156 | 163 |
157 } // namespace chrome | 164 } // namespace chrome |
158 | 165 |
159 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 166 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |