Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(56)

Side by Side Diff: ppapi/native_client/src/trusted/plugin/plugin.h

Issue 8548018: Make the rate limiting of Native Client Plugin progress events more robust. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | ppapi/native_client/src/trusted/plugin/plugin.cc » ('j') | ppapi/native_client/src/trusted/plugin/plugin.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698