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_COMMON_BLOB_SHAREABLE_FILE_REFERENCE_H_ | 5 #ifndef STORAGE_COMMON_BLOB_SHAREABLE_FILE_REFERENCE_H_ |
6 #define WEBKIT_COMMON_BLOB_SHAREABLE_FILE_REFERENCE_H_ | 6 #define STORAGE_COMMON_BLOB_SHAREABLE_FILE_REFERENCE_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "webkit/common/blob/scoped_file.h" | 10 #include "storage/common/blob/scoped_file.h" |
11 | 11 |
12 namespace storage { | 12 namespace storage { |
13 | 13 |
14 // ShareableFileReference allows consumers to share FileReference for the | 14 // ShareableFileReference allows consumers to share FileReference for the |
15 // same path if it already exists in its internal map. | 15 // same path if it already exists in its internal map. |
16 // This class is non-thread-safe and all methods must be called on a single | 16 // This class is non-thread-safe and all methods must be called on a single |
17 // thread. | 17 // thread. |
18 class STORAGE_COMMON_EXPORT ShareableFileReference | 18 class STORAGE_COMMON_EXPORT ShareableFileReference |
19 : public base::RefCounted<ShareableFileReference> { | 19 : public base::RefCounted<ShareableFileReference> { |
20 public: | 20 public: |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 ShareableFileReference(ScopedFile scoped_file); | 64 ShareableFileReference(ScopedFile scoped_file); |
65 ~ShareableFileReference(); | 65 ~ShareableFileReference(); |
66 | 66 |
67 ScopedFile scoped_file_; | 67 ScopedFile scoped_file_; |
68 | 68 |
69 DISALLOW_COPY_AND_ASSIGN(ShareableFileReference); | 69 DISALLOW_COPY_AND_ASSIGN(ShareableFileReference); |
70 }; | 70 }; |
71 | 71 |
72 } // namespace storage | 72 } // namespace storage |
73 | 73 |
74 #endif // WEBKIT_COMMON_BLOB_SHAREABLE_FILE_REFERENCE_H_ | 74 #endif // STORAGE_COMMON_BLOB_SHAREABLE_FILE_REFERENCE_H_ |
OLD | NEW |