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

Unified Diff: chrome/browser/chromeos/file_system_provider/request_value.h

Issue 287673004: [fsp] First part of support for reading files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 7 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: chrome/browser/chromeos/file_system_provider/request_value.h
diff --git a/chrome/browser/chromeos/file_system_provider/request_value.h b/chrome/browser/chromeos/file_system_provider/request_value.h
index 251947366fcfc1d424171410a2fa0aeff33fa269..3920afb945b95d48cd71bae55f6b1a9f8550d749 100644
--- a/chrome/browser/chromeos/file_system_provider/request_value.h
+++ b/chrome/browser/chromeos/file_system_provider/request_value.h
@@ -31,10 +31,15 @@ class RequestValue {
static scoped_ptr<RequestValue> CreateForGetMetadataSuccess(
scoped_ptr<extensions::api::file_system_provider_internal::
GetMetadataRequestedSuccess::Params> params);
+
static scoped_ptr<RequestValue> CreateForReadDirectorySuccess(
scoped_ptr<extensions::api::file_system_provider_internal::
ReadDirectoryRequestedSuccess::Params> params);
+ static scoped_ptr<RequestValue> CreateForReadFileSuccess(
+ scoped_ptr<extensions::api::file_system_provider_internal::
+ ReadFileRequestedSuccess::Params> params);
+
static scoped_ptr<RequestValue> CreateForTesting(const std::string& params);
const extensions::api::file_system_provider_internal::
@@ -55,6 +60,12 @@ class RequestValue {
return read_directory_success_params_.get();
}
+ const extensions::api::file_system_provider_internal::
+ ReadFileRequestedSuccess::Params*
+ read_file_success_params() const {
+ return read_file_success_params_.get();
+ }
+
const std::string* testing_params() const { return testing_params_.get(); }
private:
@@ -66,6 +77,8 @@ class RequestValue {
scoped_ptr<extensions::api::file_system_provider_internal::
ReadDirectoryRequestedSuccess::Params>
read_directory_success_params_;
+ scoped_ptr<extensions::api::file_system_provider_internal::
+ ReadFileRequestedSuccess::Params> read_file_success_params_;
scoped_ptr<std::string> testing_params_;
DISALLOW_COPY_AND_ASSIGN(RequestValue);

Powered by Google App Engine
This is Rietveld 408576698