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 |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 int message_id, | 113 int message_id, |
114 bool is_blocked_for_prerendering, | 114 bool is_blocked_for_prerendering, |
115 bool allow_loading); | 115 bool allow_loading); |
116 | 116 |
117 // Returns true if the frame is navigating to an URL either into or out of an | 117 // Returns true if the frame is navigating to an URL either into or out of an |
118 // extension app's extent. | 118 // extension app's extent. |
119 bool CrossesExtensionExtents(WebKit::WebFrame* frame, | 119 bool CrossesExtensionExtents(WebKit::WebFrame* frame, |
120 const GURL& new_url, | 120 const GURL& new_url, |
121 bool is_initial_navigation); | 121 bool is_initial_navigation); |
122 | 122 |
| 123 // Returns true if the NaCl plugin can be created. If it returns true, as a |
| 124 // side effect, it may add special attributes to params. |
| 125 bool IsNaClAllowed(const webkit::WebPluginInfo& plugin, |
| 126 const GURL& url, |
| 127 const std::string& actual_mime_type, |
| 128 bool enable_nacl, |
| 129 WebKit::WebPluginParams& params); |
| 130 |
123 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; | 131 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; |
124 scoped_ptr<ExtensionDispatcher> extension_dispatcher_; | 132 scoped_ptr<ExtensionDispatcher> extension_dispatcher_; |
125 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; | 133 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; |
126 scoped_ptr<RendererNetPredictor> net_predictor_; | 134 scoped_ptr<RendererNetPredictor> net_predictor_; |
127 scoped_ptr<SpellCheck> spellcheck_; | 135 scoped_ptr<SpellCheck> spellcheck_; |
128 // The SpellCheckProvider is a RenderViewObserver, and handles its own | 136 // The SpellCheckProvider is a RenderViewObserver, and handles its own |
129 // destruction. | 137 // destruction. |
130 SpellCheckProvider* spellcheck_provider_; | 138 SpellCheckProvider* spellcheck_provider_; |
131 scoped_ptr<VisitedLinkSlave> visited_link_slave_; | 139 scoped_ptr<VisitedLinkSlave> visited_link_slave_; |
132 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 140 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
133 }; | 141 }; |
134 | 142 |
135 } // namespace chrome | 143 } // namespace chrome |
136 | 144 |
137 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 145 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |