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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 void SetExtensionDispatcher(ExtensionDispatcher* extension_dispatcher); | 91 void SetExtensionDispatcher(ExtensionDispatcher* extension_dispatcher); |
92 | 92 |
93 // Called in low-memory conditions to dump the memory used by the spellchecker | 93 // Called in low-memory conditions to dump the memory used by the spellchecker |
94 // and start over. | 94 // and start over. |
95 void OnPurgeMemory(); | 95 void OnPurgeMemory(); |
96 | 96 |
97 private: | 97 private: |
98 WebKit::WebPlugin* CreatePlugin( | 98 WebKit::WebPlugin* CreatePlugin( |
99 RenderView* render_view, | 99 RenderView* render_view, |
100 WebKit::WebFrame* frame, | 100 WebKit::WebFrame* frame, |
101 const WebKit::WebPluginParams& params, | 101 const WebKit::WebPluginParams& params); |
102 bool* is_default_plugin); | |
103 | 102 |
104 WebKit::WebPlugin* CreatePluginPlaceholder( | 103 WebKit::WebPlugin* CreatePluginPlaceholder( |
105 RenderView* render_view, | 104 RenderView* render_view, |
106 WebKit::WebFrame* frame, | 105 WebKit::WebFrame* frame, |
107 const WebKit::WebPluginParams& params, | 106 const WebKit::WebPluginParams& params, |
108 const webkit::npapi::PluginGroup& group, | 107 const webkit::npapi::PluginGroup* group, |
109 int resource_id, | 108 int resource_id, |
110 int message_id, | 109 int message_id, |
111 bool is_blocked_for_prerendering, | 110 bool is_blocked_for_prerendering, |
112 bool allow_loading); | 111 bool allow_loading); |
113 | 112 |
114 // Returns true if the frame is navigating to an URL either into or out of an | 113 // Returns true if the frame is navigating to an URL either into or out of an |
115 // extension app's extent. | 114 // extension app's extent. |
116 bool CrossesExtensionExtents(WebKit::WebFrame* frame, | 115 bool CrossesExtensionExtents(WebKit::WebFrame* frame, |
117 const GURL& new_url, | 116 const GURL& new_url, |
118 bool is_initial_navigation); | 117 bool is_initial_navigation); |
119 | 118 |
120 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; | 119 scoped_ptr<ChromeRenderProcessObserver> chrome_observer_; |
121 scoped_ptr<ExtensionDispatcher> extension_dispatcher_; | 120 scoped_ptr<ExtensionDispatcher> extension_dispatcher_; |
122 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; | 121 scoped_ptr<RendererHistogramSnapshots> histogram_snapshots_; |
123 scoped_ptr<RendererNetPredictor> net_predictor_; | 122 scoped_ptr<RendererNetPredictor> net_predictor_; |
124 scoped_ptr<SpellCheck> spellcheck_; | 123 scoped_ptr<SpellCheck> spellcheck_; |
125 // The SpellCheckProvider is a RenderViewObserver, and handles its own | 124 // The SpellCheckProvider is a RenderViewObserver, and handles its own |
126 // destruction. | 125 // destruction. |
127 SpellCheckProvider* spellcheck_provider_; | 126 SpellCheckProvider* spellcheck_provider_; |
128 scoped_ptr<VisitedLinkSlave> visited_link_slave_; | 127 scoped_ptr<VisitedLinkSlave> visited_link_slave_; |
129 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; | 128 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; |
130 }; | 129 }; |
131 | 130 |
132 } // namespace chrome | 131 } // namespace chrome |
133 | 132 |
134 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ | 133 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |