OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
6 #define CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 6 #define CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 const PP_Flash_NetAddress& remote_addr); | 156 const PP_Flash_NetAddress& remote_addr); |
157 virtual webkit::ppapi::FullscreenContainer* | 157 virtual webkit::ppapi::FullscreenContainer* |
158 CreateFullscreenContainer( | 158 CreateFullscreenContainer( |
159 webkit::ppapi::PluginInstance* instance); | 159 webkit::ppapi::PluginInstance* instance); |
160 virtual std::string GetDefaultEncoding(); | 160 virtual std::string GetDefaultEncoding(); |
161 virtual void ZoomLimitsChanged(double minimum_factor, double maximum_factor); | 161 virtual void ZoomLimitsChanged(double minimum_factor, double maximum_factor); |
162 virtual std::string ResolveProxy(const GURL& url); | 162 virtual std::string ResolveProxy(const GURL& url); |
163 virtual void DidStartLoading(); | 163 virtual void DidStartLoading(); |
164 virtual void DidStopLoading(); | 164 virtual void DidStopLoading(); |
165 virtual void SetContentRestriction(int restrictions); | 165 virtual void SetContentRestriction(int restrictions); |
| 166 virtual void HasUnsupportedFeature(); |
166 | 167 |
167 private: | 168 private: |
168 // Pointer to the RenderView that owns us. | 169 // Pointer to the RenderView that owns us. |
169 RenderView* render_view_; | 170 RenderView* render_view_; |
170 | 171 |
171 std::set<webkit::ppapi::PluginInstance*> active_instances_; | 172 std::set<webkit::ppapi::PluginInstance*> active_instances_; |
172 | 173 |
173 // TODO(viettrungluu): Get rid of |id_generator_| -- just use |IDMap::Add()|. | 174 // TODO(viettrungluu): Get rid of |id_generator_| -- just use |IDMap::Add()|. |
174 // Rename |messages_waiting_replies_| (to specify async open file). | 175 // Rename |messages_waiting_replies_| (to specify async open file). |
175 int id_generator_; | 176 int id_generator_; |
176 IDMap<AsyncOpenFileCallback> messages_waiting_replies_; | 177 IDMap<AsyncOpenFileCallback> messages_waiting_replies_; |
177 | 178 |
178 IDMap<scoped_refptr<webkit::ppapi::PPB_Flash_NetConnector_Impl>, | 179 IDMap<scoped_refptr<webkit::ppapi::PPB_Flash_NetConnector_Impl>, |
179 IDMapOwnPointer> pending_connect_tcps_; | 180 IDMapOwnPointer> pending_connect_tcps_; |
180 | 181 |
181 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); | 182 DISALLOW_COPY_AND_ASSIGN(PepperPluginDelegateImpl); |
182 }; | 183 }; |
183 | 184 |
184 #endif // CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ | 185 #endif // CHROME_RENDERER_PEPPER_PLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |