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

Side by Side Diff: webkit/plugins/npapi/plugin_instance.h

Issue 13219005: Replace string16 with base::string16 in src/webkit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
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 WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_ 8 #ifndef WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_
9 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_ 9 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_
10 10
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 void CloseStreams(); 145 void CloseStreams();
146 146
147 // Returns the WebPluginResourceClient object for a stream that has become 147 // Returns the WebPluginResourceClient object for a stream that has become
148 // seekable. 148 // seekable.
149 WebPluginResourceClient* GetRangeRequest(int id); 149 WebPluginResourceClient* GetRangeRequest(int id);
150 150
151 // Have the plugin create its script object. 151 // Have the plugin create its script object.
152 NPObject* GetPluginScriptableObject(); 152 NPObject* GetPluginScriptableObject();
153 153
154 // Returns the form value of this instance. 154 // Returns the form value of this instance.
155 bool GetFormValue(string16* value); 155 bool GetFormValue(base::string16* value);
156 156
157 // WebViewDelegate methods that we implement. This is for handling 157 // WebViewDelegate methods that we implement. This is for handling
158 // callbacks during getURLNotify. 158 // callbacks during getURLNotify.
159 void DidFinishLoadWithReason(const GURL& url, NPReason reason, int notify_id); 159 void DidFinishLoadWithReason(const GURL& url, NPReason reason, int notify_id);
160 160
161 // If true, send the Mozilla user agent instead of Chrome's to the plugin. 161 // If true, send the Mozilla user agent instead of Chrome's to the plugin.
162 bool use_mozilla_user_agent() { return use_mozilla_user_agent_; } 162 bool use_mozilla_user_agent() { return use_mozilla_user_agent_; }
163 void set_use_mozilla_user_agent() { use_mozilla_user_agent_ = true; } 163 void set_use_mozilla_user_agent() { use_mozilla_user_agent_ = true; }
164 164
165 // If the plugin instance is backed by a texture, return its ID in the 165 // If the plugin instance is backed by a texture, return its ID in the
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 private: 363 private:
364 scoped_refptr<PluginInstance> instance_; 364 scoped_refptr<PluginInstance> instance_;
365 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent); 365 DISALLOW_COPY_AND_ASSIGN(ScopedCurrentPluginEvent);
366 }; 366 };
367 #endif 367 #endif
368 368
369 } // namespace npapi 369 } // namespace npapi
370 } // namespace webkit 370 } // namespace webkit
371 371
372 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_ 372 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698