| 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 last_error_string_ = error; | 274 last_error_string_ = error; |
| 275 } | 275 } |
| 276 | 276 |
| 277 // The MIME type used to instantiate this instance of the NaCl plugin. | 277 // The MIME type used to instantiate this instance of the NaCl plugin. |
| 278 // Typically, the MIME type will be application/x-nacl. However, if the NEXE | 278 // Typically, the MIME type will be application/x-nacl. However, if the NEXE |
| 279 // is being used as a content type handler for another content type (such as | 279 // is being used as a content type handler for another content type (such as |
| 280 // PDF), then this function will return that type. | 280 // PDF), then this function will return that type. |
| 281 const nacl::string& mime_type() const { return mime_type_; } | 281 const nacl::string& mime_type() const { return mime_type_; } |
| 282 // The default MIME type for the NaCl plugin. | 282 // The default MIME type for the NaCl plugin. |
| 283 static const char* const kNaClMIMEType; | 283 static const char* const kNaClMIMEType; |
| 284 // The MIME type for the plugin when using PNaCl. |
| 285 static const char* const kPnaclMIMEType; |
| 284 // Returns true if PPAPI Dev interfaces should be allowed. | 286 // Returns true if PPAPI Dev interfaces should be allowed. |
| 285 bool enable_dev_interfaces() { return enable_dev_interfaces_; } | 287 bool enable_dev_interfaces() { return enable_dev_interfaces_; } |
| 286 | 288 |
| 287 Manifest const* manifest() const { return manifest_.get(); } | 289 Manifest const* manifest() const { return manifest_.get(); } |
| 288 const pp::URLUtil_Dev* url_util() const { return url_util_; } | 290 const pp::URLUtil_Dev* url_util() const { return url_util_; } |
| 289 | 291 |
| 290 // Extracts the exit status from the (main) service runtime. | 292 // Extracts the exit status from the (main) service runtime. |
| 291 int exit_status() const { | 293 int exit_status() const { |
| 292 if (NULL == main_service_runtime()) { | 294 if (NULL == main_service_runtime()) { |
| 293 return -1; | 295 return -1; |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 const FileDownloader* FindFileDownloader(PP_Resource url_loader) const; | 507 const FileDownloader* FindFileDownloader(PP_Resource url_loader) const; |
| 506 | 508 |
| 507 int64_t time_of_last_progress_event_; | 509 int64_t time_of_last_progress_event_; |
| 508 | 510 |
| 509 const PPB_NaCl_Private* nacl_interface_; | 511 const PPB_NaCl_Private* nacl_interface_; |
| 510 }; | 512 }; |
| 511 | 513 |
| 512 } // namespace plugin | 514 } // namespace plugin |
| 513 | 515 |
| 514 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ | 516 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ |
| OLD | NEW |