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

Side by Side Diff: content/browser/fileapi/blob_storage_host.h

Issue 442383002: Move storage-related files from webkit/ to new top-level directory storage/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 months 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 | Annotate | Revision Log
OLDNEW
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 CONTENT_BROWSER_FILEAPI_STORAGE_HOST_H_ 5 #ifndef CONTENT_BROWSER_FILEAPI_STORAGE_HOST_H_
6 #define CONTENT_BROWSER_FILEAPI_STORAGE_HOST_H_ 6 #define CONTENT_BROWSER_FILEAPI_STORAGE_HOST_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
11 11
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
14 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
15 #include "webkit/common/blob/blob_data.h" 15 #include "storage/common/blob/blob_data.h"
16 16
17 class GURL; 17 class GURL;
18 18
19 namespace webkit_blob { 19 namespace storage {
20 class BlobDataHandle; 20 class BlobDataHandle;
21 class BlobStorageHost; 21 class BlobStorageHost;
22 class BlobStorageContext; 22 class BlobStorageContext;
23 } 23 }
24 24
25 using webkit_blob::BlobStorageContext; 25 using storage::BlobStorageContext;
26 using webkit_blob::BlobData; 26 using storage::BlobData;
27 27
28 namespace content { 28 namespace content {
29 29
30 // This class handles the logistics of blob storage for a single child process. 30 // This class handles the logistics of blob storage for a single child process.
31 // There is one instance per child process. When the child process 31 // There is one instance per child process. When the child process
32 // terminates all blob references attibutable to that process go away upon 32 // terminates all blob references attibutable to that process go away upon
33 // destruction of the instance. The class is single threaded and should 33 // destruction of the instance. The class is single threaded and should
34 // only be used on the IO thread. 34 // only be used on the IO thread.
35 class CONTENT_EXPORT BlobStorageHost { 35 class CONTENT_EXPORT BlobStorageHost {
36 public: 36 public:
(...skipping 30 matching lines...) Expand all
67 std::set<GURL> public_blob_urls_; 67 std::set<GURL> public_blob_urls_;
68 68
69 base::WeakPtr<BlobStorageContext> context_; 69 base::WeakPtr<BlobStorageContext> context_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(BlobStorageHost); 71 DISALLOW_COPY_AND_ASSIGN(BlobStorageHost);
72 }; 72 };
73 73
74 } // namespace content 74 } // namespace content
75 75
76 #endif // CONTENT_BROWSER_FILEAPI_STORAGE_HOST_H_ 76 #endif // CONTENT_BROWSER_FILEAPI_STORAGE_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/fileapi/blob_storage_context_unittest.cc ('k') | content/browser/fileapi/blob_storage_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698