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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 class BrowserPpp; | 55 class BrowserPpp; |
56 } | 56 } |
57 | 57 |
58 namespace plugin { | 58 namespace plugin { |
59 | 59 |
60 class ErrorInfo; | 60 class ErrorInfo; |
61 class Manifest; | 61 class Manifest; |
62 class ProgressEvent; | 62 class ProgressEvent; |
63 class ScriptablePlugin; | 63 class ScriptablePlugin; |
64 | 64 |
| 65 typedef int (*GetReadonlyPnaclFdFunc)(const char* filename); |
| 66 extern GetReadonlyPnaclFdFunc get_readonly_pnacl_fd; |
| 67 |
65 class Plugin : public pp::InstancePrivate { | 68 class Plugin : public pp::InstancePrivate { |
66 public: | 69 public: |
67 // Factory method for creation. | 70 // Factory method for creation. |
68 static Plugin* New(PP_Instance instance); | 71 static Plugin* New(PP_Instance instance); |
69 | 72 |
70 // ----- Methods inherited from pp::Instance: | 73 // ----- Methods inherited from pp::Instance: |
71 | 74 |
72 // Initializes this plugin with <embed/object ...> tag attribute count |argc|, | 75 // Initializes this plugin with <embed/object ...> tag attribute count |argc|, |
73 // names |argn| and values |argn|. Returns false on failure. | 76 // names |argn| and values |argn|. Returns false on failure. |
74 // Gets called by the browser right after New(). | 77 // Gets called by the browser right after New(). |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 // in UpdateDownloadProgress to map a url loader back to the URL being | 521 // in UpdateDownloadProgress to map a url loader back to the URL being |
519 // downloaded. | 522 // downloaded. |
520 const FileDownloader* FindFileDownloader(PP_Resource url_loader) const; | 523 const FileDownloader* FindFileDownloader(PP_Resource url_loader) const; |
521 | 524 |
522 int64_t time_of_last_progress_event_; | 525 int64_t time_of_last_progress_event_; |
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 |