Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Side by Side Diff: storage/browser/blob/blob_storage_registry.h

Issue 2552723003: storage: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase on top of master Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BLOB_STORAGE_REGISTRY_H_ 5 #ifndef STORAGE_BROWSER_BLOB_BLOB_STORAGE_REGISTRY_H_
6 #define STORAGE_BROWSER_BLOB_BLOB_STORAGE_REGISTRY_H_ 6 #define STORAGE_BROWSER_BLOB_BLOB_STORAGE_REGISTRY_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/callback_forward.h" 15 #include "base/callback_forward.h"
16 #include "base/containers/scoped_ptr_hash_map.h" 16 #include "base/containers/scoped_ptr_hash_map.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "storage/browser/storage_browser_export.h" 18 #include "storage/browser/storage_browser_export.h"
19 #include "storage/common/blob_storage/blob_storage_constants.h" 19 #include "storage/common/blob_storage/blob_storage_constants.h"
20 20
21 class GURL; 21 class GURL;
22 22
23 namespace storage { 23 namespace storage {
24 class BlobDataHandle;
25 class BlobEntry; 24 class BlobEntry;
26 class ShareableBlobDataItem;
27 25
28 // This class stores the blob data in the various states of construction, as 26 // This class stores the blob data in the various states of construction, as
29 // well as URL mappings to blob uuids. 27 // well as URL mappings to blob uuids.
30 // Implementation notes: 28 // Implementation notes:
31 // * When removing a uuid registration, we do not check for URL mappings to that 29 // * When removing a uuid registration, we do not check for URL mappings to that
32 // uuid. The user must keep track of these. 30 // uuid. The user must keep track of these.
33 class STORAGE_EXPORT BlobStorageRegistry { 31 class STORAGE_EXPORT BlobStorageRegistry {
34 public: 32 public:
35 BlobStorageRegistry(); 33 BlobStorageRegistry();
36 ~BlobStorageRegistry(); 34 ~BlobStorageRegistry();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 using URLMap = std::map<GURL, std::string>; 75 using URLMap = std::map<GURL, std::string>;
78 76
79 BlobMap blob_map_; 77 BlobMap blob_map_;
80 URLMap url_to_uuid_; 78 URLMap url_to_uuid_;
81 79
82 DISALLOW_COPY_AND_ASSIGN(BlobStorageRegistry); 80 DISALLOW_COPY_AND_ASSIGN(BlobStorageRegistry);
83 }; 81 };
84 82
85 } // namespace storage 83 } // namespace storage
86 #endif // STORAGE_BROWSER_BLOB_BLOB_STORAGE_REGISTRY_H_ 84 #endif // STORAGE_BROWSER_BLOB_BLOB_STORAGE_REGISTRY_H_
OLDNEW
« no previous file with comments | « storage/browser/blob/blob_storage_context.h ('k') | storage/browser/blob/blob_url_request_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698