| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // Returns true if the frame is navigating to an URL either into or out of an | 138 // Returns true if the frame is navigating to an URL either into or out of an |
| 139 // extension app's extent. | 139 // extension app's extent. |
| 140 bool CrossesExtensionExtents(WebKit::WebFrame* frame, | 140 bool CrossesExtensionExtents(WebKit::WebFrame* frame, |
| 141 const GURL& new_url, | 141 const GURL& new_url, |
| 142 const ExtensionSet& extensions, | 142 const ExtensionSet& extensions, |
| 143 bool is_extension_url, | 143 bool is_extension_url, |
| 144 bool is_initial_navigation); | 144 bool is_initial_navigation); |
| 145 | 145 |
| 146 // Returns true if the NaCl plugin can be created. If it returns true, as a | 146 // Returns true if the NaCl plugin can be created. If it returns true, as a |
| 147 // side effect, it may add special attributes to params. | 147 // side effect, it may add special attributes to params. |
| 148 bool IsNaClAllowed(const webkit::WebPluginInfo& plugin, | 148 bool IsNaClAllowed(WebKit::WebFrame* frame, |
| 149 const webkit::WebPluginInfo& plugin, |
| 149 const GURL& url, | 150 const GURL& url, |
| 150 const std::string& actual_mime_type, | 151 const std::string& actual_mime_type, |
| 151 bool is_nacl_mime_type, | 152 bool is_nacl_mime_type, |
| 152 bool enable_nacl, | 153 bool enable_nacl, |
| 153 WebKit::WebPluginParams& params); | 154 WebKit::WebPluginParams& params); |
| 154 | 155 |
| 155 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; | 156 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; |
| 156 scoped_ptr<ExtensionDispatcher> extension_dispatcher_; | 157 scoped_ptr<ExtensionDispatcher> extension_dispatcher_; |
| 157 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; | 158 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; |
| 158 scoped_ptr<RendererNetPredictor> net_predictor_; | 159 scoped_ptr<RendererNetPredictor> net_predictor_; |
| 159 scoped_ptr<SpellCheck> spellcheck_; | 160 scoped_ptr<SpellCheck> spellcheck_; |
| 160 scoped_ptr<VisitedLinkSlave> visited_link_slave_; | 161 scoped_ptr<VisitedLinkSlave> visited_link_slave_; |
| 161 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 162 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
| 162 | 163 |
| 163 // Set of origins that can use TCP/UDP private APIs from NaCl. | 164 // Set of origins that can use TCP/UDP private APIs from NaCl. |
| 164 std::set<std::string> allowed_socket_origins_; | 165 std::set<std::string> allowed_socket_origins_; |
| 165 }; | 166 }; |
| 166 | 167 |
| 167 } // namespace chrome | 168 } // namespace chrome |
| 168 | 169 |
| 169 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 170 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |