OLD | NEW |
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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 // The default MIME type for the NaCl plugin. | 197 // The default MIME type for the NaCl plugin. |
198 static const char* const kNaClMIMEType; | 198 static const char* const kNaClMIMEType; |
199 // The MIME type for the plugin when using PNaCl. | 199 // The MIME type for the plugin when using PNaCl. |
200 static const char* const kPnaclMIMEType; | 200 static const char* const kPnaclMIMEType; |
201 // Returns true if PPAPI Dev interfaces should be allowed. | 201 // Returns true if PPAPI Dev interfaces should be allowed. |
202 bool enable_dev_interfaces() { return enable_dev_interfaces_; } | 202 bool enable_dev_interfaces() { return enable_dev_interfaces_; } |
203 | 203 |
204 Manifest const* manifest() const { return manifest_.get(); } | 204 Manifest const* manifest() const { return manifest_.get(); } |
205 const pp::URLUtil_Dev* url_util() const { return url_util_; } | 205 const pp::URLUtil_Dev* url_util() const { return url_util_; } |
206 | 206 |
207 int exit_status() const { return exit_status_; } | |
208 // set_exit_status may be called off the main thread. | 207 // set_exit_status may be called off the main thread. |
209 void set_exit_status(int exit_status); | 208 void set_exit_status(int exit_status); |
210 | 209 |
211 const PPB_NaCl_Private* nacl_interface() const { return nacl_interface_; } | 210 const PPB_NaCl_Private* nacl_interface() const { return nacl_interface_; } |
212 pp::UMAPrivate& uma_interface() { return uma_interface_; } | 211 pp::UMAPrivate& uma_interface() { return uma_interface_; } |
213 | 212 |
214 private: | 213 private: |
215 NACL_DISALLOW_COPY_AND_ASSIGN(Plugin); | 214 NACL_DISALLOW_COPY_AND_ASSIGN(Plugin); |
216 // Prevent construction and destruction from outside the class: | 215 // Prevent construction and destruction from outside the class: |
217 // must use factory New() method instead. | 216 // must use factory New() method instead. |
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 int64_t time_of_last_progress_event_; | 428 int64_t time_of_last_progress_event_; |
430 int exit_status_; | 429 int exit_status_; |
431 | 430 |
432 const PPB_NaCl_Private* nacl_interface_; | 431 const PPB_NaCl_Private* nacl_interface_; |
433 pp::UMAPrivate uma_interface_; | 432 pp::UMAPrivate uma_interface_; |
434 }; | 433 }; |
435 | 434 |
436 } // namespace plugin | 435 } // namespace plugin |
437 | 436 |
438 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ | 437 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ |
OLD | NEW |