| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 // For testing. | 115 // For testing. |
| 116 void SetExtensionDispatcher(ExtensionDispatcher* extension_dispatcher); | 116 void SetExtensionDispatcher(ExtensionDispatcher* extension_dispatcher); |
| 117 | 117 |
| 118 // Called in low-memory conditions to dump the memory used by the spellchecker | 118 // Called in low-memory conditions to dump the memory used by the spellchecker |
| 119 // and start over. | 119 // and start over. |
| 120 void OnPurgeMemory(); | 120 void OnPurgeMemory(); |
| 121 | 121 |
| 122 virtual void RegisterPPAPIInterfaceFactories( | 122 virtual void RegisterPPAPIInterfaceFactories( |
| 123 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) OVERRIDE; | 123 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) OVERRIDE; |
| 124 | 124 |
| 125 virtual bool AllowSocketAPI(const GURL& url) OVERRIDE; | |
| 126 | |
| 127 SpellCheck* spellcheck() const { return spellcheck_.get(); } | 125 SpellCheck* spellcheck() const { return spellcheck_.get(); } |
| 128 | 126 |
| 129 WebKit::WebPlugin* CreatePlugin( | 127 WebKit::WebPlugin* CreatePlugin( |
| 130 content::RenderView* render_view, | 128 content::RenderView* render_view, |
| 131 WebKit::WebFrame* frame, | 129 WebKit::WebFrame* frame, |
| 132 const WebKit::WebPluginParams& params, | 130 const WebKit::WebPluginParams& params, |
| 133 const ChromeViewHostMsg_GetPluginInfo_Status& status, | 131 const ChromeViewHostMsg_GetPluginInfo_Status& status, |
| 134 const webkit::WebPluginInfo& plugin, | 132 const webkit::WebPluginInfo& plugin, |
| 135 const std::string& actual_mime_type); | 133 const std::string& actual_mime_type); |
| 136 | 134 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 152 bool enable_nacl, | 150 bool enable_nacl, |
| 153 WebKit::WebPluginParams& params); | 151 WebKit::WebPluginParams& params); |
| 154 | 152 |
| 155 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; | 153 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; |
| 156 scoped_ptr<ExtensionDispatcher> extension_dispatcher_; | 154 scoped_ptr<ExtensionDispatcher> extension_dispatcher_; |
| 157 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; | 155 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; |
| 158 scoped_ptr<RendererNetPredictor> net_predictor_; | 156 scoped_ptr<RendererNetPredictor> net_predictor_; |
| 159 scoped_ptr<SpellCheck> spellcheck_; | 157 scoped_ptr<SpellCheck> spellcheck_; |
| 160 scoped_ptr<VisitedLinkSlave> visited_link_slave_; | 158 scoped_ptr<VisitedLinkSlave> visited_link_slave_; |
| 161 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 159 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
| 162 | |
| 163 // Set of origins that can use TCP/UDP private APIs from NaCl. | |
| 164 std::set<std::string> allowed_socket_origins_; | |
| 165 }; | 160 }; |
| 166 | 161 |
| 167 } // namespace chrome | 162 } // namespace chrome |
| 168 | 163 |
| 169 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 164 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |