summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/file_system_provider/request_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/file_system_provider/request_manager.h')
-rw-r--r--chrome/browser/chromeos/file_system_provider/request_manager.h24
1 files changed, 13 insertions, 11 deletions
diff --git a/chrome/browser/chromeos/file_system_provider/request_manager.h b/chrome/browser/chromeos/file_system_provider/request_manager.h
index 913408b..ccc87d8 100644
--- a/chrome/browser/chromeos/file_system_provider/request_manager.h
+++ b/chrome/browser/chromeos/file_system_provider/request_manager.h
@@ -113,17 +113,19 @@ class RequestManager {
int CreateRequest(RequestType type, scoped_ptr<HandlerInterface> handler);
// Handles successful response for the |request_id|. If |has_more| is false,
- // then the request is disposed, after handling the |response|. On error,
- // returns false, and the request is disposed. |response| must not be NULL.
- bool FulfillRequest(int request_id,
- scoped_ptr<RequestValue> response,
- bool has_more);
-
- // Handles error response for the |request_id|. If handling the error fails,
- // returns false. Always disposes the request. |response| must not be NULL.
- bool RejectRequest(int request_id,
- scoped_ptr<RequestValue> response,
- base::File::Error error);
+ // then the request is disposed, after handling the |response|. On success,
+ // returns base::File::FILE_OK. Otherwise returns an error code. |response|
+ // must not be NULL.
+ base::File::Error FulfillRequest(int request_id,
+ scoped_ptr<RequestValue> response,
+ bool has_more);
+
+ // Handles error response for the |request_id|. If handling the error
+ // succeeds, theen returns base::File::FILE_OK. Otherwise returns an error
+ // code. Always disposes the request. |response| must not be NULL.
+ base::File::Error RejectRequest(int request_id,
+ scoped_ptr<RequestValue> response,
+ base::File::Error error);
// Sets a custom timeout for tests. The new timeout value will be applied to
// new requests