| OLD | NEW |
| 1 // -*- c++ -*- | 1 // -*- c++ -*- |
| 2 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 2 // Copyright (c) 2011 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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 int64_t bytes_sent, | 553 int64_t bytes_sent, |
| 554 int64_t total_bytes_to_be_sent, | 554 int64_t total_bytes_to_be_sent, |
| 555 int64_t bytes_received, | 555 int64_t bytes_received, |
| 556 int64_t total_bytes_to_be_received); | 556 int64_t total_bytes_to_be_received); |
| 557 | 557 |
| 558 // Finds the file downloader which owns the given URL loader. This is used | 558 // Finds the file downloader which owns the given URL loader. This is used |
| 559 // in UpdateDownloadProgress to map a url loader back to the URL being | 559 // in UpdateDownloadProgress to map a url loader back to the URL being |
| 560 // downloaded. | 560 // downloaded. |
| 561 const FileDownloader* FindFileDownloader(PP_Resource url_loader) const; | 561 const FileDownloader* FindFileDownloader(PP_Resource url_loader) const; |
| 562 | 562 |
| 563 int64_t last_event_bytes_received_; | 563 int64_t time_of_last_progress_event_; |
| 564 }; | 564 }; |
| 565 | 565 |
| 566 } // namespace plugin | 566 } // namespace plugin |
| 567 | 567 |
| 568 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ | 568 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_PLUGIN_H_ |
| OLD | NEW |