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

Side by Side Diff: ppapi/native_client/src/trusted/plugin/plugin.h

Issue 10815080: Add an interface for nacl to create delete-on-close temp files, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: revert buildbot hack Created 8 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 // -*- c++ -*- 1 // -*- c++ -*-
2 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 // The portable representation of an instance and root scriptable object. 6 // The portable representation of an instance and root scriptable object.
7 // The PPAPI version of the plugin instantiates a subclass of this class. 7 // The PPAPI version of the plugin instantiates a subclass of this class.
8 8
9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_
10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ 10 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 const pp::URLUtil_Dev* url_util() const { return url_util_; } 312 const pp::URLUtil_Dev* url_util() const { return url_util_; }
313 313
314 // Extracts the exit status from the (main) service runtime. 314 // Extracts the exit status from the (main) service runtime.
315 int exit_status() const { 315 int exit_status() const {
316 if (NULL == main_service_runtime()) { 316 if (NULL == main_service_runtime()) {
317 return -1; 317 return -1;
318 } 318 }
319 return main_service_runtime()->exit_status(); 319 return main_service_runtime()->exit_status();
320 } 320 }
321 321
322 const PPB_NaCl_Private* nacl_interface() { return nacl_interface_; }
323
322 private: 324 private:
323 NACL_DISALLOW_COPY_AND_ASSIGN(Plugin); 325 NACL_DISALLOW_COPY_AND_ASSIGN(Plugin);
324 // Prevent construction and destruction from outside the class: 326 // Prevent construction and destruction from outside the class:
325 // must use factory New() method instead. 327 // must use factory New() method instead.
326 explicit Plugin(PP_Instance instance); 328 explicit Plugin(PP_Instance instance);
327 // The browser will invoke the destructor via the pp::Instance 329 // The browser will invoke the destructor via the pp::Instance
328 // pointer to this object, not from base's Delete(). 330 // pointer to this object, not from base's Delete().
329 ~Plugin(); 331 ~Plugin();
330 332
331 bool Init(int argc, char* argn[], char* argv[]); 333 bool Init(int argc, char* argn[], char* argv[]);
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 531
530 // Whether we are using IPC-based PPAPI proxy. 532 // Whether we are using IPC-based PPAPI proxy.
531 bool using_ipc_proxy_; 533 bool using_ipc_proxy_;
532 534
533 const PPB_NaCl_Private* nacl_interface_; 535 const PPB_NaCl_Private* nacl_interface_;
534 }; 536 };
535 537
536 } // namespace plugin 538 } // namespace plugin
537 539
538 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ 540 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_
OLDNEW
« no previous file with comments | « ppapi/native_client/src/trusted/plugin/local_temp_file.cc ('k') | ppapi/native_client/src/trusted/plugin/plugin.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698