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

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: comment addressed and updated historgrams.xml 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
« no previous file with comments | « media/cdm/ppapi/cdm_adapter.cc ('k') | media/cdm/ppapi/cdm_file_io_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6f12a84d11b09419226190186466d4b84c0ca782 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& file_read_cb);
ddorwin 2014/09/12 05:44:29 Comment that the CB takes a parameter that is the
xhwang 2014/09/12 17:48:45 Done.
// 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 the size of the file after a succeessful read.
+ pp::CompletionCallback file_read_cb_;
+
DISALLOW_COPY_AND_ASSIGN(CdmFileIOImpl);
};
« no previous file with comments | « media/cdm/ppapi/cdm_adapter.cc ('k') | media/cdm/ppapi/cdm_file_io_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698