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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 176 |
177 private: | 177 private: |
178 NACL_DISALLOW_COPY_AND_ASSIGN(Plugin); | 178 NACL_DISALLOW_COPY_AND_ASSIGN(Plugin); |
179 // Prevent construction and destruction from outside the class: | 179 // Prevent construction and destruction from outside the class: |
180 // must use factory New() method instead. | 180 // must use factory New() method instead. |
181 explicit Plugin(PP_Instance instance); | 181 explicit Plugin(PP_Instance instance); |
182 // The browser will invoke the destructor via the pp::Instance | 182 // The browser will invoke the destructor via the pp::Instance |
183 // pointer to this object, not from base's Delete(). | 183 // pointer to this object, not from base's Delete(). |
184 ~Plugin(); | 184 ~Plugin(); |
185 | 185 |
186 bool EarlyInit(); | |
187 // Shuts down socket connection, service runtime, and receive thread, | 186 // Shuts down socket connection, service runtime, and receive thread, |
188 // in this order, for the main nacl subprocess. | 187 // in this order, for the main nacl subprocess. |
189 void ShutDownSubprocesses(); | 188 void ShutDownSubprocesses(); |
190 | 189 |
191 // Access the service runtime for the main NaCl subprocess. | 190 // Access the service runtime for the main NaCl subprocess. |
192 ServiceRuntime* main_service_runtime() const { | 191 ServiceRuntime* main_service_runtime() const { |
193 return main_subprocess_.service_runtime(); | 192 return main_subprocess_.service_runtime(); |
194 } | 193 } |
195 | 194 |
196 // Histogram helper functions, internal to Plugin so they can use | 195 // Histogram helper functions, internal to Plugin so they can use |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 int64_t manifest_open_time_; | 344 int64_t manifest_open_time_; |
346 int64_t nexe_open_time_; | 345 int64_t nexe_open_time_; |
347 | 346 |
348 const PPB_NaCl_Private* nacl_interface_; | 347 const PPB_NaCl_Private* nacl_interface_; |
349 pp::UMAPrivate uma_interface_; | 348 pp::UMAPrivate uma_interface_; |
350 }; | 349 }; |
351 | 350 |
352 } // namespace plugin | 351 } // namespace plugin |
353 | 352 |
354 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ | 353 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ |
OLD | NEW |