Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Side by Side Diff: content/child/npapi/plugin_instance.h

Issue 1483733002: Remove support for NPObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // relative to the upper left of the screen. 119 // relative to the upper left of the screen.
120 void set_window_frame(const gfx::Rect& frame) { 120 void set_window_frame(const gfx::Rect& frame) {
121 containing_window_frame_ = frame; 121 containing_window_frame_ = frame;
122 } 122 }
123 #endif 123 #endif
124 124
125 // Returns the WebPluginResourceClient object for a stream that has become 125 // Returns the WebPluginResourceClient object for a stream that has become
126 // seekable. 126 // seekable.
127 WebPluginResourceClient* GetRangeRequest(int id); 127 WebPluginResourceClient* GetRangeRequest(int id);
128 128
129 // Have the plugin create its script object.
130 NPObject* GetPluginScriptableObject();
131
132 // Returns the form value of this instance. 129 // Returns the form value of this instance.
133 bool GetFormValue(base::string16* value); 130 bool GetFormValue(base::string16* value);
134 131
135 // If true, send the Mozilla user agent instead of Chrome's to the plugin. 132 // If true, send the Mozilla user agent instead of Chrome's to the plugin.
136 bool use_mozilla_user_agent() { return use_mozilla_user_agent_; } 133 bool use_mozilla_user_agent() { return use_mozilla_user_agent_; }
137 void set_use_mozilla_user_agent() { use_mozilla_user_agent_ = true; } 134 void set_use_mozilla_user_agent() { use_mozilla_user_agent_ = true; }
138 135
139 // If the plugin instance is backed by a texture, return its ID in the 136 // If the plugin instance is backed by a texture, return its ID in the
140 // compositor's namespace. Otherwise return 0. Returns 0 by default. 137 // compositor's namespace. Otherwise return 0. Returns 0 by default.
141 unsigned GetBackingTextureId(); 138 unsigned GetBackingTextureId();
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 281
285 private: 282 private:
286 scoped_refptr<PluginInstance> instance_; 283 scoped_refptr<PluginInstance> instance_;
287 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent); 284 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent);
288 }; 285 };
289 #endif 286 #endif
290 287
291 } // namespace content 288 } // namespace content
292 289
293 #endif // CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_ 290 #endif // CONTENT_CHILD_NPAPI_PLUGIN_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698