| 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 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_; } | 322 const PPB_NaCl_Private* nacl_interface() const { return nacl_interface_; } |
| 323 | 323 |
| 324 private: | 324 private: |
| 325 NACL_DISALLOW_COPY_AND_ASSIGN(Plugin); | 325 NACL_DISALLOW_COPY_AND_ASSIGN(Plugin); |
| 326 // Prevent construction and destruction from outside the class: | 326 // Prevent construction and destruction from outside the class: |
| 327 // must use factory New() method instead. | 327 // must use factory New() method instead. |
| 328 explicit Plugin(PP_Instance instance); | 328 explicit Plugin(PP_Instance instance); |
| 329 // The browser will invoke the destructor via the pp::Instance | 329 // The browser will invoke the destructor via the pp::Instance |
| 330 // pointer to this object, not from base's Delete(). | 330 // pointer to this object, not from base's Delete(). |
| 331 ~Plugin(); | 331 ~Plugin(); |
| 332 | 332 |
| (...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 | 531 |
| 532 // Whether we are using IPC-based PPAPI proxy. | 532 // Whether we are using IPC-based PPAPI proxy. |
| 533 bool using_ipc_proxy_; | 533 bool using_ipc_proxy_; |
| 534 | 534 |
| 535 const PPB_NaCl_Private* nacl_interface_; | 535 const PPB_NaCl_Private* nacl_interface_; |
| 536 }; | 536 }; |
| 537 | 537 |
| 538 } // namespace plugin | 538 } // namespace plugin |
| 539 | 539 |
| 540 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ | 540 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ |
| OLD | NEW |