| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_CREATE_DIRECTORY
_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_CREATE_DIRECTORY
_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_CREATE_DIRECTORY
_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_CREATE_DIRECTORY
_H_ |
| 7 | 7 |
| 8 #include "base/files/file.h" | 8 #include "base/files/file.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/chromeos/file_system_provider/operations/operation.h" | 10 #include "chrome/browser/chromeos/file_system_provider/operations/operation.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 class CreateDirectory : public Operation { | 31 class CreateDirectory : public Operation { |
| 32 public: | 32 public: |
| 33 CreateDirectory(extensions::EventRouter* event_router, | 33 CreateDirectory(extensions::EventRouter* event_router, |
| 34 const ProvidedFileSystemInfo& file_system_info, | 34 const ProvidedFileSystemInfo& file_system_info, |
| 35 const base::FilePath& directory_path, | 35 const base::FilePath& directory_path, |
| 36 bool recursive, | 36 bool recursive, |
| 37 const storage::AsyncFileUtil::StatusCallback& callback); | 37 const storage::AsyncFileUtil::StatusCallback& callback); |
| 38 virtual ~CreateDirectory(); | 38 virtual ~CreateDirectory(); |
| 39 | 39 |
| 40 // Operation overrides. | 40 // Operation overrides. |
| 41 virtual bool Execute(int request_id) OVERRIDE; | 41 virtual bool Execute(int request_id) override; |
| 42 virtual void OnSuccess(int request_id, | 42 virtual void OnSuccess(int request_id, |
| 43 scoped_ptr<RequestValue> result, | 43 scoped_ptr<RequestValue> result, |
| 44 bool has_more) OVERRIDE; | 44 bool has_more) override; |
| 45 virtual void OnError(int request_id, | 45 virtual void OnError(int request_id, |
| 46 scoped_ptr<RequestValue> result, | 46 scoped_ptr<RequestValue> result, |
| 47 base::File::Error error) OVERRIDE; | 47 base::File::Error error) override; |
| 48 | 48 |
| 49 private: | 49 private: |
| 50 base::FilePath directory_path_; | 50 base::FilePath directory_path_; |
| 51 ProvidedFileSystemInterface::OpenFileMode mode_; | 51 ProvidedFileSystemInterface::OpenFileMode mode_; |
| 52 bool recursive_; | 52 bool recursive_; |
| 53 const storage::AsyncFileUtil::StatusCallback callback_; | 53 const storage::AsyncFileUtil::StatusCallback callback_; |
| 54 | 54 |
| 55 DISALLOW_COPY_AND_ASSIGN(CreateDirectory); | 55 DISALLOW_COPY_AND_ASSIGN(CreateDirectory); |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 } // namespace operations | 58 } // namespace operations |
| 59 } // namespace file_system_provider | 59 } // namespace file_system_provider |
| 60 } // namespace chromeos | 60 } // namespace chromeos |
| 61 | 61 |
| 62 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_CREATE_DIRECT
ORY_H_ | 62 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_CREATE_DIRECT
ORY_H_ |
| OLD | NEW |