| 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 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // http://crbug.com/100411 | 123 // http://crbug.com/100411 |
| 124 bool IsAdblockInstalled(); | 124 bool IsAdblockInstalled(); |
| 125 bool IsAdblockPlusInstalled(); | 125 bool IsAdblockPlusInstalled(); |
| 126 bool IsAdblockWithWebRequestInstalled(); | 126 bool IsAdblockWithWebRequestInstalled(); |
| 127 bool IsAdblockPlusWithWebRequestInstalled(); | 127 bool IsAdblockPlusWithWebRequestInstalled(); |
| 128 bool IsOtherExtensionWithWebRequestInstalled(); | 128 bool IsOtherExtensionWithWebRequestInstalled(); |
| 129 | 129 |
| 130 // For testing. | 130 // For testing. |
| 131 void SetExtensionDispatcher(extensions::Dispatcher* extension_dispatcher); | 131 void SetExtensionDispatcher(extensions::Dispatcher* extension_dispatcher); |
| 132 | 132 |
| 133 // Sets a new |spellcheck|. Used for low-mem restart and testing only. |
| 134 // Takes ownership of |spellcheck|. |
| 135 void SetSpellcheck(SpellCheck* spellcheck); |
| 136 |
| 133 // Called in low-memory conditions to dump the memory used by the spellchecker | 137 // Called in low-memory conditions to dump the memory used by the spellchecker |
| 134 // and start over. | 138 // and start over. |
| 135 void OnPurgeMemory(); | 139 void OnPurgeMemory(); |
| 136 | 140 |
| 137 virtual void RegisterPPAPIInterfaceFactories( | 141 virtual void RegisterPPAPIInterfaceFactories( |
| 138 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) OVERRIDE; | 142 webkit::ppapi::PpapiInterfaceFactoryManager* factory_manager) OVERRIDE; |
| 139 | 143 |
| 140 WebKit::WebPlugin* CreatePlugin( | 144 WebKit::WebPlugin* CreatePlugin( |
| 141 content::RenderView* render_view, | 145 content::RenderView* render_view, |
| 142 WebKit::WebFrame* frame, | 146 WebKit::WebFrame* frame, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 171 scoped_ptr<RendererNetPredictor> net_predictor_; | 175 scoped_ptr<RendererNetPredictor> net_predictor_; |
| 172 scoped_ptr<SpellCheck> spellcheck_; | 176 scoped_ptr<SpellCheck> spellcheck_; |
| 173 scoped_ptr<VisitedLinkSlave> visited_link_slave_; | 177 scoped_ptr<VisitedLinkSlave> visited_link_slave_; |
| 174 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 178 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
| 175 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; | 179 scoped_ptr<prerender::PrerenderDispatcher> prerender_dispatcher_; |
| 176 }; | 180 }; |
| 177 | 181 |
| 178 } // namespace chrome | 182 } // namespace chrome |
| 179 | 183 |
| 180 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 184 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |