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_ |
11 | 11 |
12 #include <stdio.h> | 12 #include <stdio.h> |
13 | 13 |
14 #include <map> | 14 #include <map> |
15 #include <queue> | 15 #include <queue> |
16 #include <set> | 16 #include <set> |
17 #include <string> | 17 #include <string> |
18 | 18 |
19 #include "native_client/src/include/nacl_macros.h" | 19 #include "native_client/src/include/nacl_macros.h" |
20 #include "native_client/src/include/nacl_scoped_ptr.h" | 20 #include "native_client/src/include/nacl_scoped_ptr.h" |
21 #include "native_client/src/include/nacl_string.h" | 21 #include "native_client/src/include/nacl_string.h" |
22 #include "native_client/src/trusted/plugin/file_downloader.h" | 22 #include "native_client/src/trusted/plugin/file_downloader.h" |
23 #include "native_client/src/trusted/plugin/nacl_subprocess.h" | 23 #include "native_client/src/trusted/plugin/nacl_subprocess.h" |
24 #include "native_client/src/trusted/plugin/pnacl_coordinator.h" | 24 #include "native_client/src/trusted/plugin/pnacl_coordinator.h" |
25 #include "native_client/src/trusted/plugin/service_runtime.h" | 25 #include "native_client/src/trusted/plugin/service_runtime.h" |
26 #include "native_client/src/trusted/plugin/utility.h" | 26 #include "native_client/src/trusted/plugin/utility.h" |
27 | 27 |
| 28 #include "ppapi/c/private/ppb_nacl_private.h" |
28 #include "ppapi/cpp/private/var_private.h" | 29 #include "ppapi/cpp/private/var_private.h" |
29 // for pp::VarPrivate | 30 // for pp::VarPrivate |
30 #include "ppapi/cpp/private/instance_private.h" | 31 #include "ppapi/cpp/private/instance_private.h" |
31 #include "ppapi/cpp/rect.h" | 32 #include "ppapi/cpp/rect.h" |
32 #include "ppapi/cpp/url_loader.h" | 33 #include "ppapi/cpp/url_loader.h" |
33 #include "ppapi/cpp/var.h" | 34 #include "ppapi/cpp/var.h" |
34 #include "ppapi/cpp/view.h" | 35 #include "ppapi/cpp/view.h" |
35 | 36 |
36 struct NaClSrpcChannel; | 37 struct NaClSrpcChannel; |
37 | 38 |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 | 514 |
514 // Finds the file downloader which owns the given URL loader. This is used | 515 // Finds the file downloader which owns the given URL loader. This is used |
515 // in UpdateDownloadProgress to map a url loader back to the URL being | 516 // in UpdateDownloadProgress to map a url loader back to the URL being |
516 // downloaded. | 517 // downloaded. |
517 const FileDownloader* FindFileDownloader(PP_Resource url_loader) const; | 518 const FileDownloader* FindFileDownloader(PP_Resource url_loader) const; |
518 | 519 |
519 int64_t time_of_last_progress_event_; | 520 int64_t time_of_last_progress_event_; |
520 | 521 |
521 // Whether we are using IPC-based PPAPI proxy. | 522 // Whether we are using IPC-based PPAPI proxy. |
522 bool using_ipc_proxy_; | 523 bool using_ipc_proxy_; |
| 524 |
| 525 const PPB_NaCl_Private* nacl_interface_; |
523 }; | 526 }; |
524 | 527 |
525 } // namespace plugin | 528 } // namespace plugin |
526 | 529 |
527 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ | 530 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ |
OLD | NEW |