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