| 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_GET_METADATA_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_GET_METADATA_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_GET_METADATA_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_GET_METADATA_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 8 #include <string> | 9 #include <string> |
| 9 | 10 |
| 10 #include "base/files/file.h" | 11 #include "base/files/file.h" |
| 11 #include "base/macros.h" | 12 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | |
| 13 #include "chrome/browser/chromeos/file_system_provider/operations/operation.h" | 13 #include "chrome/browser/chromeos/file_system_provider/operations/operation.h" |
| 14 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" | 14 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_info
.h" |
| 15 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" | 15 #include "chrome/browser/chromeos/file_system_provider/provided_file_system_inte
rface.h" |
| 16 #include "chrome/browser/chromeos/file_system_provider/request_value.h" | 16 #include "chrome/browser/chromeos/file_system_provider/request_value.h" |
| 17 #include "chrome/common/extensions/api/file_system_provider_internal.h" | 17 #include "chrome/common/extensions/api/file_system_provider_internal.h" |
| 18 | 18 |
| 19 namespace base { | 19 namespace base { |
| 20 class FilePath; | 20 class FilePath; |
| 21 } // namespace base | 21 } // namespace base |
| 22 | 22 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 45 GetMetadata(extensions::EventRouter* event_router, | 45 GetMetadata(extensions::EventRouter* event_router, |
| 46 const ProvidedFileSystemInfo& file_system_info, | 46 const ProvidedFileSystemInfo& file_system_info, |
| 47 const base::FilePath& entry_path, | 47 const base::FilePath& entry_path, |
| 48 ProvidedFileSystemInterface::MetadataFieldMask fields, | 48 ProvidedFileSystemInterface::MetadataFieldMask fields, |
| 49 const ProvidedFileSystemInterface::GetMetadataCallback& callback); | 49 const ProvidedFileSystemInterface::GetMetadataCallback& callback); |
| 50 ~GetMetadata() override; | 50 ~GetMetadata() override; |
| 51 | 51 |
| 52 // Operation overrides. | 52 // Operation overrides. |
| 53 bool Execute(int request_id) override; | 53 bool Execute(int request_id) override; |
| 54 void OnSuccess(int request_id, | 54 void OnSuccess(int request_id, |
| 55 scoped_ptr<RequestValue> result, | 55 std::unique_ptr<RequestValue> result, |
| 56 bool has_more) override; | 56 bool has_more) override; |
| 57 void OnError(int request_id, | 57 void OnError(int request_id, |
| 58 scoped_ptr<RequestValue> result, | 58 std::unique_ptr<RequestValue> result, |
| 59 base::File::Error error) override; | 59 base::File::Error error) override; |
| 60 | 60 |
| 61 private: | 61 private: |
| 62 base::FilePath entry_path_; | 62 base::FilePath entry_path_; |
| 63 ProvidedFileSystemInterface::MetadataFieldMask fields_; | 63 ProvidedFileSystemInterface::MetadataFieldMask fields_; |
| 64 const ProvidedFileSystemInterface::GetMetadataCallback callback_; | 64 const ProvidedFileSystemInterface::GetMetadataCallback callback_; |
| 65 | 65 |
| 66 DISALLOW_COPY_AND_ASSIGN(GetMetadata); | 66 DISALLOW_COPY_AND_ASSIGN(GetMetadata); |
| 67 }; | 67 }; |
| 68 | 68 |
| 69 } // namespace operations | 69 } // namespace operations |
| 70 } // namespace file_system_provider | 70 } // namespace file_system_provider |
| 71 } // namespace chromeos | 71 } // namespace chromeos |
| 72 | 72 |
| 73 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_GET_METADATA_
H_ | 73 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_OPERATIONS_GET_METADATA_
H_ |
| OLD | NEW |