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

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

Issue 335753004: [fsp] Cleanup handling errors for operation requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 years, 6 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 3920afb945b95d48cd71bae55f6b1a9f8550d749..b7c38f3a74f211c504a2d0b18f753ee9e61a23f6 100644
--- a/chrome/browser/chromeos/file_system_provider/request_value.h
+++ b/chrome/browser/chromeos/file_system_provider/request_value.h
@@ -40,6 +40,10 @@ class RequestValue {
scoped_ptr<extensions::api::file_system_provider_internal::
ReadFileRequestedSuccess::Params> params);
+ static scoped_ptr<RequestValue> CreateForOperationError(
+ scoped_ptr<extensions::api::file_system_provider_internal::
+ OperationRequestedError::Params> params);
+
static scoped_ptr<RequestValue> CreateForTesting(const std::string& params);
const extensions::api::file_system_provider_internal::
@@ -66,6 +70,12 @@ class RequestValue {
return read_file_success_params_.get();
}
+ const extensions::api::file_system_provider_internal::
+ OperationRequestedError::Params*
+ operation_error_params() const {
+ return operation_error_params_.get();
+ }
+
const std::string* testing_params() const { return testing_params_.get(); }
private:
@@ -79,6 +89,8 @@ class RequestValue {
read_directory_success_params_;
scoped_ptr<extensions::api::file_system_provider_internal::
ReadFileRequestedSuccess::Params> read_file_success_params_;
+ scoped_ptr<extensions::api::file_system_provider_internal::
+ OperationRequestedError::Params> operation_error_params_;
scoped_ptr<std::string> testing_params_;
DISALLOW_COPY_AND_ASSIGN(RequestValue);

Powered by Google App Engine
This is Rietveld 408576698