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

Side by Side Diff: ppapi/native_client/src/trusted/plugin/scriptable_plugin.cc

Issue 20182002: Make inttypes.h and similar macro usage C++11-friendly. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: line Created 7 years, 4 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 // Scriptable plugin implementation. 5 // Scriptable plugin implementation.
6 6
7 #include "ppapi/native_client/src/trusted/plugin/scriptable_plugin.h" 7 #include "ppapi/native_client/src/trusted/plugin/scriptable_plugin.h"
8 8
9 #include <string.h> 9 #include <string.h>
10 10
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 UNREFERENCED_PARAMETER(properties); 201 UNREFERENCED_PARAMETER(properties);
202 UNREFERENCED_PARAMETER(exception); 202 UNREFERENCED_PARAMETER(exception);
203 Error("GetAllPropertyNames", "", "GetAllPropertyNames is not supported", 203 Error("GetAllPropertyNames", "", "GetAllPropertyNames is not supported",
204 exception); 204 exception);
205 } 205 }
206 206
207 207
208 pp::Var ScriptablePlugin::Call(const pp::Var& name, 208 pp::Var ScriptablePlugin::Call(const pp::Var& name,
209 const std::vector<pp::Var>& args, 209 const std::vector<pp::Var>& args,
210 pp::Var* exception) { 210 pp::Var* exception) {
211 PLUGIN_PRINTF(("ScriptablePlugin::Call (name=%s, %"NACL_PRIuS 211 PLUGIN_PRINTF(("ScriptablePlugin::Call (name=%s, %" NACL_PRIuS
212 " args)\n", name.DebugString().c_str(), args.size())); 212 " args)\n", name.DebugString().c_str(), args.size()));
213 return Error("Call", name.DebugString().c_str(), 213 return Error("Call", name.DebugString().c_str(),
214 "method invocation is not supported", exception); 214 "method invocation is not supported", exception);
215 } 215 }
216 216
217 217
218 pp::Var ScriptablePlugin::Construct(const std::vector<pp::Var>& args, 218 pp::Var ScriptablePlugin::Construct(const std::vector<pp::Var>& args,
219 pp::Var* exception) { 219 pp::Var* exception) {
220 PLUGIN_PRINTF(("ScriptablePlugin::Construct (%"NACL_PRIuS 220 PLUGIN_PRINTF(("ScriptablePlugin::Construct (%" NACL_PRIuS
221 " args)\n", args.size())); 221 " args)\n", args.size()));
222 return Error("constructor", "Construct", "constructor is not supported", 222 return Error("constructor", "Construct", "constructor is not supported",
223 exception); 223 exception);
224 } 224 }
225 225
226 226
227 ScriptablePlugin* ScriptablePlugin::AddRef() { 227 ScriptablePlugin* ScriptablePlugin::AddRef() {
228 // This is called when we are about to share this object with the browser, 228 // This is called when we are about to share this object with the browser,
229 // and we need to make sure we have an internal plugin reference, so this 229 // and we need to make sure we have an internal plugin reference, so this
230 // object doesn't get deallocated when the browser discards its references. 230 // object doesn't get deallocated when the browser discards its references.
(...skipping 26 matching lines...) Expand all
257 // Neither the browser nor plugin ever var referenced this object, 257 // Neither the browser nor plugin ever var referenced this object,
258 // so it can safely discarded. 258 // so it can safely discarded.
259 PLUGIN_PRINTF(("ScriptablePlugin::Unref (delete this)\n")); 259 PLUGIN_PRINTF(("ScriptablePlugin::Unref (delete this)\n"));
260 CHECK(var_ == NULL); 260 CHECK(var_ == NULL);
261 delete this; 261 delete this;
262 } 262 }
263 } 263 }
264 264
265 265
266 } // namespace plugin 266 } // namespace plugin
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698