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

Unified Diff: media/cdm/ppapi/cdm_file_io_impl.h

Issue 568623003: CdmAdapter: Report size of the file read by CDM via FileIO. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months 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 side-by-side diff with in-line comments
Download patch
Index: media/cdm/ppapi/cdm_file_io_impl.h
diff --git a/media/cdm/ppapi/cdm_file_io_impl.h b/media/cdm/ppapi/cdm_file_io_impl.h
index aecb1e44e9a9f01c3ac72ba79864e80144ff3de2..b62b038c5b3eb2fdfdcc0d597cee4f77873971f0 100644
--- a/media/cdm/ppapi/cdm_file_io_impl.h
+++ b/media/cdm/ppapi/cdm_file_io_impl.h
@@ -35,7 +35,9 @@ class CdmFileIOImpl : public cdm::FileIO {
DISALLOW_COPY_AND_ASSIGN(ResourceTracker);
};
- CdmFileIOImpl(cdm::FileIOClient* client, PP_Instance pp_instance);
+ CdmFileIOImpl(cdm::FileIOClient* client,
+ PP_Instance pp_instance,
+ const pp::CompletionCallback& last_read_file_size_kb_cb);
ddorwin 2014/09/12 02:26:28 s/kb/bytes/ - the value passed is bytes - this cod
xhwang 2014/09/12 04:30:12 I renamed all other places but forgot this one. Re
// cdm::FileIO implementation.
virtual void Open(const char* file_name, uint32_t file_name_size) OVERRIDE;
@@ -162,6 +164,9 @@ class CdmFileIOImpl : public cdm::FileIO {
// when read completes.
std::vector<char> cumulative_read_buffer_;
+ // Callback to report size of the last read file.
+ pp::CompletionCallback file_read_cb_;
+
DISALLOW_COPY_AND_ASSIGN(CdmFileIOImpl);
};

Powered by Google App Engine
This is Rietveld 408576698