Consolidate proto parsing into DeviceFiles::RetrieveHashedFile

[ Merge of http://go/wvgerrit/16251 ]

Change-Id: I7aa849ccf0271c862d9b6a7c639da88cb0deff7d
This commit is contained in:
Rahul Frias
2016-01-15 17:15:52 -08:00
parent d2dc2e3670
commit 02751bcc91
3 changed files with 36 additions and 66 deletions

View File

@@ -8,6 +8,7 @@
#include <set>
#include <string>
#include "device_files.pb.h"
#include "scoped_ptr.h"
#include "wv_cdm_types.h"
@@ -107,7 +108,7 @@ class DeviceFiles {
bool StoreFileRaw(const std::string& name,
const std::string& serialized_file);
bool RetrieveHashedFile(const std::string& name,
std::string* serialized_file);
video_widevine_client::sdk::File* file);
bool FileExists(const std::string& name);
bool RemoveFile(const std::string& name);
ssize_t GetFileSize(const std::string& name);