OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 WEBKIT_BROWSER_FILEAPI_ISOLATED_CONTEXT_H_ | 5 #ifndef STORAGE_BROWSER_FILEAPI_ISOLATED_CONTEXT_H_ |
6 #define WEBKIT_BROWSER_FILEAPI_ISOLATED_CONTEXT_H_ | 6 #define STORAGE_BROWSER_FILEAPI_ISOLATED_CONTEXT_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/lazy_instance.h" | 15 #include "base/lazy_instance.h" |
16 #include "base/memory/singleton.h" | 16 #include "base/memory/singleton.h" |
17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
18 #include "webkit/browser/fileapi/mount_points.h" | 18 #include "storage/browser/fileapi/mount_points.h" |
19 #include "webkit/browser/storage_browser_export.h" | 19 #include "storage/browser/storage_browser_export.h" |
20 #include "webkit/common/fileapi/file_system_types.h" | 20 #include "storage/common/fileapi/file_system_types.h" |
21 | 21 |
22 namespace storage { | 22 namespace storage { |
23 class FileSystemURL; | 23 class FileSystemURL; |
24 } | 24 } |
25 | 25 |
26 namespace storage { | 26 namespace storage { |
27 | 27 |
28 // Manages isolated filesystem mount points which have no well-known names | 28 // Manages isolated filesystem mount points which have no well-known names |
29 // and are identified by a string 'filesystem ID', which usually just looks | 29 // and are identified by a string 'filesystem ID', which usually just looks |
30 // like random value. | 30 // like random value. |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
191 mutable base::Lock lock_; | 191 mutable base::Lock lock_; |
192 | 192 |
193 IDToInstance instance_map_; | 193 IDToInstance instance_map_; |
194 PathToID path_to_id_map_; | 194 PathToID path_to_id_map_; |
195 | 195 |
196 DISALLOW_COPY_AND_ASSIGN(IsolatedContext); | 196 DISALLOW_COPY_AND_ASSIGN(IsolatedContext); |
197 }; | 197 }; |
198 | 198 |
199 } // namespace storage | 199 } // namespace storage |
200 | 200 |
201 #endif // WEBKIT_BROWSER_FILEAPI_ISOLATED_CONTEXT_H_ | 201 #endif // STORAGE_BROWSER_FILEAPI_ISOLATED_CONTEXT_H_ |
OLD | NEW |