| 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 // TODO: Need to deal with NPAPI's NPSavedData. | 5 // TODO: Need to deal with NPAPI's NPSavedData. |
| 6 // I haven't seen plugins use it yet. | 6 // I haven't seen plugins use it yet. |
| 7 | 7 |
| 8 #ifndef CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ | 8 #ifndef CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ |
| 9 #define CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ | 9 #define CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ |
| 10 | 10 |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 // relative to the upper left of the screen. | 108 // relative to the upper left of the screen. |
| 109 void set_window_frame(const gfx::Rect& frame) { | 109 void set_window_frame(const gfx::Rect& frame) { |
| 110 containing_window_frame_ = frame; | 110 containing_window_frame_ = frame; |
| 111 } | 111 } |
| 112 #endif | 112 #endif |
| 113 | 113 |
| 114 // Returns the WebPluginResourceClient object for a stream that has become | 114 // Returns the WebPluginResourceClient object for a stream that has become |
| 115 // seekable. | 115 // seekable. |
| 116 WebPluginResourceClient* GetRangeRequest(int id); | 116 WebPluginResourceClient* GetRangeRequest(int id); |
| 117 | 117 |
| 118 // Returns the form value of this instance. | |
| 119 bool GetFormValue(base::string16* value); | |
| 120 | |
| 121 // If true, send the Mozilla user agent instead of Chrome's to the plugin. | 118 // If true, send the Mozilla user agent instead of Chrome's to the plugin. |
| 122 bool use_mozilla_user_agent() { return use_mozilla_user_agent_; } | 119 bool use_mozilla_user_agent() { return use_mozilla_user_agent_; } |
| 123 void set_use_mozilla_user_agent() { use_mozilla_user_agent_ = true; } | 120 void set_use_mozilla_user_agent() { use_mozilla_user_agent_ = true; } |
| 124 | 121 |
| 125 // If the plugin instance is backed by a texture, return its ID in the | 122 // If the plugin instance is backed by a texture, return its ID in the |
| 126 // compositor's namespace. Otherwise return 0. Returns 0 by default. | 123 // compositor's namespace. Otherwise return 0. Returns 0 by default. |
| 127 unsigned GetBackingTextureId(); | 124 unsigned GetBackingTextureId(); |
| 128 | 125 |
| 129 // Helper that implements NPN_PluginThreadAsyncCall semantics | 126 // Helper that implements NPN_PluginThreadAsyncCall semantics |
| 130 void PluginThreadAsyncCall(void (*func)(void *), | 127 void PluginThreadAsyncCall(void (*func)(void *), |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 | 265 |
| 269 private: | 266 private: |
| 270 scoped_refptr<PluginInstance> instance_; | 267 scoped_refptr<PluginInstance> instance_; |
| 271 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent); | 268 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent); |
| 272 }; | 269 }; |
| 273 #endif | 270 #endif |
| 274 | 271 |
| 275 } // namespace content | 272 } // namespace content |
| 276 | 273 |
| 277 #endif // CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ | 274 #endif // CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ |
| OLD | NEW |