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_FILEAPI_PROVIDER_ASYNC_FILE
_UTIL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_PROVIDER_ASYNC_FILE
_UTIL_H_ |
6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_PROVIDER_ASYNC_FILE
_UTIL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_PROVIDER_ASYNC_FILE
_UTIL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "storage/browser/fileapi/async_file_util.h" | 14 #include "storage/browser/fileapi/async_file_util.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 namespace file_system_provider { | 17 namespace file_system_provider { |
18 | 18 |
19 class FileSystemInterface; | |
20 | |
21 // TODO(mtomasz): Remove this namespace. | 19 // TODO(mtomasz): Remove this namespace. |
22 namespace internal { | 20 namespace internal { |
23 | 21 |
24 // The implementation of storage::AsyncFileUtil for provided file systems. It is | 22 // The implementation of storage::AsyncFileUtil for provided file systems. It is |
25 // created one per Chrome process. It is responsible for routing calls to the | 23 // created one per Chrome process. It is responsible for routing calls to the |
26 // correct profile, and then to the correct profided file system. | 24 // correct profile, and then to the correct profided file system. |
27 // | 25 // |
28 // This class should be called AsyncFileUtil, without the Provided prefix. This | 26 // This class should be called AsyncFileUtil, without the Provided prefix. This |
29 // is impossible, though because of GYP limitations. There must not be two files | 27 // is impossible, though because of GYP limitations. There must not be two files |
30 // with the same name in a Chromium tree. | 28 // with the same name in a Chromium tree. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 103 |
106 private: | 104 private: |
107 DISALLOW_COPY_AND_ASSIGN(ProviderAsyncFileUtil); | 105 DISALLOW_COPY_AND_ASSIGN(ProviderAsyncFileUtil); |
108 }; | 106 }; |
109 | 107 |
110 } // namespace internal | 108 } // namespace internal |
111 } // namespace file_system_provider | 109 } // namespace file_system_provider |
112 } // namespace chromeos | 110 } // namespace chromeos |
113 | 111 |
114 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_PROVIDER_ASYNC_F
ILE_UTIL_H_ | 112 #endif // CHROME_BROWSER_CHROMEOS_FILE_SYSTEM_PROVIDER_FILEAPI_PROVIDER_ASYNC_F
ILE_UTIL_H_ |
OLD | NEW |