| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_ROOT_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_ROOT_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_ROOT_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_ROOT_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 | 139 |
| 140 void ReadDirectoryWithDocumentId(const ReadDirectoryCallback& callback, | 140 void ReadDirectoryWithDocumentId(const ReadDirectoryCallback& callback, |
| 141 const std::string& document_id); | 141 const std::string& document_id); |
| 142 void ReadDirectoryWithNameToThinDocumentMap( | 142 void ReadDirectoryWithNameToThinDocumentMap( |
| 143 const ReadDirectoryCallback& callback, | 143 const ReadDirectoryCallback& callback, |
| 144 base::File::Error error, | 144 base::File::Error error, |
| 145 NameToThinDocumentMap mapping); | 145 NameToThinDocumentMap mapping); |
| 146 | 146 |
| 147 void AddWatcherWithDocumentId(const base::FilePath& path, | 147 void AddWatcherWithDocumentId(const base::FilePath& path, |
| 148 const WatcherCallback& watcher_callback, | 148 const WatcherCallback& watcher_callback, |
| 149 const StatusCallback& callback, | |
| 150 const std::string& document_id); | 149 const std::string& document_id); |
| 151 void OnWatcherAdded(const base::FilePath& path, | 150 void OnWatcherAdded(const base::FilePath& path, |
| 152 const StatusCallback& callback, | |
| 153 int64_t watcher_id); | 151 int64_t watcher_id); |
| 154 void OnWatcherAddedButRemoved(const StatusCallback& callback, bool success); | 152 void OnWatcherAddedButRemoved(bool success); |
| 155 | 153 |
| 156 void OnWatcherRemoved(const StatusCallback& callback, bool success); | 154 void OnWatcherRemoved(const StatusCallback& callback, bool success); |
| 157 | 155 |
| 158 void ResolveToContentUrlWithDocumentId( | 156 void ResolveToContentUrlWithDocumentId( |
| 159 const ResolveToContentUrlCallback& callback, | 157 const ResolveToContentUrlCallback& callback, |
| 160 const std::string& document_id); | 158 const std::string& document_id); |
| 161 | 159 |
| 162 // Resolves |path| to a document ID. Failures are indicated by an empty | 160 // Resolves |path| to a document ID. Failures are indicated by an empty |
| 163 // document ID. | 161 // document ID. |
| 164 void ResolveToDocumentId(const base::FilePath& path, | 162 void ResolveToDocumentId(const base::FilePath& path, |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 observer_wrapper_; | 201 observer_wrapper_; |
| 204 | 202 |
| 205 base::WeakPtrFactory<ArcDocumentsProviderRoot> weak_ptr_factory_; | 203 base::WeakPtrFactory<ArcDocumentsProviderRoot> weak_ptr_factory_; |
| 206 | 204 |
| 207 DISALLOW_COPY_AND_ASSIGN(ArcDocumentsProviderRoot); | 205 DISALLOW_COPY_AND_ASSIGN(ArcDocumentsProviderRoot); |
| 208 }; | 206 }; |
| 209 | 207 |
| 210 } // namespace arc | 208 } // namespace arc |
| 211 | 209 |
| 212 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_ROOT_H_ | 210 #endif // CHROME_BROWSER_CHROMEOS_ARC_FILEAPI_ARC_DOCUMENTS_PROVIDER_ROOT_H_ |
| OLD | NEW |