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

Side by Side Diff: content/browser/blob_storage/chrome_blob_storage_context.h

Issue 2954343005: Merge ResourceRequestBodyImpl and ResourceRequestBody. (Closed)
Patch Set: Remove comment Created 3 years, 5 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
« no previous file with comments | « no previous file | content/browser/blob_storage/chrome_blob_storage_context.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CONTENT_BROWSER_FILEAPI_CHROME_BLOB_STORAGE_CONTEXT_H_ 5 #ifndef CONTENT_BROWSER_FILEAPI_CHROME_BLOB_STORAGE_CONTEXT_H_
6 #define CONTENT_BROWSER_FILEAPI_CHROME_BLOB_STORAGE_CONTEXT_H_ 6 #define CONTENT_BROWSER_FILEAPI_CHROME_BLOB_STORAGE_CONTEXT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 16 matching lines...) Expand all
27 27
28 namespace storage { 28 namespace storage {
29 class BlobStorageContext; 29 class BlobStorageContext;
30 class BlobRegistryImpl; 30 class BlobRegistryImpl;
31 } 31 }
32 32
33 namespace content { 33 namespace content {
34 class BlobHandle; 34 class BlobHandle;
35 class BrowserContext; 35 class BrowserContext;
36 struct ChromeBlobStorageContextDeleter; 36 struct ChromeBlobStorageContextDeleter;
37 class ResourceRequestBodyImpl; 37 class ResourceRequestBody;
38 class ResourceContext; 38 class ResourceContext;
39 39
40 // A context class that keeps track of BlobStorageController used by the chrome. 40 // A context class that keeps track of BlobStorageController used by the chrome.
41 // There is an instance associated with each BrowserContext. There could be 41 // There is an instance associated with each BrowserContext. There could be
42 // multiple URLRequestContexts in the same browser context that refers to the 42 // multiple URLRequestContexts in the same browser context that refers to the
43 // same instance. 43 // same instance.
44 // 44 //
45 // All methods, except the ctor, are expected to be called on 45 // All methods, except the ctor, are expected to be called on
46 // the IO thread (unless specifically called out in doc comments). 46 // the IO thread (unless specifically called out in doc comments).
47 class CONTENT_EXPORT ChromeBlobStorageContext 47 class CONTENT_EXPORT ChromeBlobStorageContext
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // Returns the BlobStorageContext associated with the 96 // Returns the BlobStorageContext associated with the
97 // ChromeBlobStorageContext instance passed in. 97 // ChromeBlobStorageContext instance passed in.
98 storage::BlobStorageContext* GetBlobStorageContext( 98 storage::BlobStorageContext* GetBlobStorageContext(
99 ChromeBlobStorageContext* blob_storage_context); 99 ChromeBlobStorageContext* blob_storage_context);
100 100
101 using BlobHandles = std::vector<std::unique_ptr<storage::BlobDataHandle>>; 101 using BlobHandles = std::vector<std::unique_ptr<storage::BlobDataHandle>>;
102 102
103 // Attempts to create a vector of BlobDataHandles that ensure any blob data 103 // Attempts to create a vector of BlobDataHandles that ensure any blob data
104 // associated with |body| isn't cleaned up until the handles are destroyed. 104 // associated with |body| isn't cleaned up until the handles are destroyed.
105 // Returns false on failure. This is used for POST and PUT requests. 105 // Returns false on failure. This is used for POST and PUT requests.
106 bool GetBodyBlobDataHandles(ResourceRequestBodyImpl* body, 106 bool GetBodyBlobDataHandles(ResourceRequestBody* body,
107 ResourceContext* resource_context, 107 ResourceContext* resource_context,
108 BlobHandles* blob_handles); 108 BlobHandles* blob_handles);
109 109
110 } // namespace content 110 } // namespace content
111 111
112 #endif // CONTENT_BROWSER_FILEAPI_CHROME_BLOB_STORAGE_CONTEXT_H_ 112 #endif // CONTENT_BROWSER_FILEAPI_CHROME_BLOB_STORAGE_CONTEXT_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/blob_storage/chrome_blob_storage_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698