diff options
author | tommycli@chromium.org <tommycli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-15 09:55:38 +0000 |
---|---|---|
committer | tommycli@chromium.org <tommycli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-01-15 09:55:38 +0000 |
commit | 89b429341068c7b6d4c1129052e7abfc708d6161 (patch) | |
tree | 208aa003365726a6ae615da869b9ab19dc451c09 /chrome/browser/extensions/api/feedback_private/feedback_service.h | |
parent | 24e4cac9b53c6bebf0bafc40213ff67fa9caedb2 (diff) | |
download | chromium_src-89b429341068c7b6d4c1129052e7abfc708d6161.zip chromium_src-89b429341068c7b6d4c1129052e7abfc708d6161.tar.gz chromium_src-89b429341068c7b6d4c1129052e7abfc708d6161.tar.bz2 |
This is to allow extensions to determine the total length of Javascript blobs.
This cannot AFAIK be done via passing the length in a custom binding, as base::Value does not support int64 a.k.a. 'long long' types.
The total blob length is going to be used in media_galleries_api.cc to construct the SafeMediaMetadataParser in a followup CL. It appears unused in this patch.
BUG=
Review URL: https://codereview.chromium.org/129823003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@244860 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/api/feedback_private/feedback_service.h')
-rw-r--r-- | chrome/browser/extensions/api/feedback_private/feedback_service.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/extensions/api/feedback_private/feedback_service.h b/chrome/browser/extensions/api/feedback_private/feedback_service.h index 9886149..3daff71 100644 --- a/chrome/browser/extensions/api/feedback_private/feedback_service.h +++ b/chrome/browser/extensions/api/feedback_private/feedback_service.h @@ -57,8 +57,10 @@ class FeedbackService { virtual base::WeakPtr<FeedbackService> GetWeakPtr() = 0; // Callbacks to receive blob data. - void AttachedFileCallback(scoped_ptr<std::string> data); - void ScreenshotCallback(scoped_ptr<std::string> data); + void AttachedFileCallback(scoped_ptr<std::string> data, + int64 total_blob_length); + void ScreenshotCallback(scoped_ptr<std::string> data, + int64 total_blob_length); // Checks if we have read all the blobs we need to; signals the feedback // data object once all the requisite data has been populated. |