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