Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / chromeos / file_system_provider / operations / operation.h
index 3c1e78a..205b9d4 100644 (file)
 #include "base/memory/scoped_ptr.h"
 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info.h"
 #include "chrome/browser/chromeos/file_system_provider/request_manager.h"
-#include "webkit/browser/fileapi/async_file_util.h"
+#include "storage/browser/fileapi/async_file_util.h"
 
 namespace base {
-class DictionaryValue;
+class ListValue;
 }  // namespace base
 
 namespace extensions {
@@ -41,19 +41,20 @@ class Operation : public RequestManager::HandlerInterface {
   virtual void OnSuccess(int request_id,
                          scoped_ptr<RequestValue> result,
                          bool has_more) OVERRIDE = 0;
-  virtual void OnError(int request_id, base::File::Error error) OVERRIDE = 0;
+  virtual void OnError(int request_id,
+                       scoped_ptr<RequestValue> result,
+                       base::File::Error error) OVERRIDE = 0;
 
   // Sets custom dispatchign event implementation for tests.
   void SetDispatchEventImplForTesting(
       const DispatchEventImplCallback& callback);
 
  protected:
-  // Sends an event to the providing extension. Automatically adds the file
-  // system id and the request id fields. Returns false, if the providing
+  // Sends an event to the providing extension. Returns false, if the providing
   // extension does not handle the |event_name| event.
   bool SendEvent(int request_id,
                  const std::string& event_name,
-                 scoped_ptr<base::DictionaryValue> options);
+                 scoped_ptr<base::ListValue> event_args);
 
   ProvidedFileSystemInfo file_system_info_;