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

Unified Diff: storage/browser/blob/blob_transport_request_builder.h

Issue 2448353002: [BlobAsync] Moving async handling into BlobStorageContext & quota out. (Closed)
Patch Set: comments Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « storage/browser/blob/blob_transport_host.cc ('k') | storage/browser/blob/blob_transport_request_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/blob/blob_transport_request_builder.h
diff --git a/storage/browser/blob/blob_async_transport_request_builder.h b/storage/browser/blob/blob_transport_request_builder.h
similarity index 91%
rename from storage/browser/blob/blob_async_transport_request_builder.h
rename to storage/browser/blob/blob_transport_request_builder.h
index 10dde5ff6ffad01b1314cd105c285bc88a956874..4dce9a123a5cf2a12ad34d88f05976240cb93b13 100644
--- a/storage/browser/blob/blob_async_transport_request_builder.h
+++ b/storage/browser/blob/blob_transport_request_builder.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef STORAGE_BROWSER_BLOB_BLOB_ASYNC_TRANSPORT_REQUEST_BUILDER_H_
-#define STORAGE_BROWSER_BLOB_BLOB_ASYNC_TRANSPORT_REQUEST_BUILDER_H_
+#ifndef STORAGE_BROWSER_BLOB_BLOB_TRANSPORT_REQUEST_BUILDER_H_
+#define STORAGE_BROWSER_BLOB_BLOB_TRANSPORT_REQUEST_BUILDER_H_
#include <stddef.h>
#include <stdint.h>
@@ -28,7 +28,7 @@ namespace storage {
// where the data is already present in the blob description, and will
// always give the caller requests for requesting all data from the
// renderer.
-class STORAGE_EXPORT BlobAsyncTransportRequestBuilder {
+class STORAGE_EXPORT BlobTransportRequestBuilder {
public:
struct RendererMemoryItemRequest {
RendererMemoryItemRequest();
@@ -42,8 +42,10 @@ class STORAGE_EXPORT BlobAsyncTransportRequestBuilder {
BlobItemBytesRequest message;
};
- BlobAsyncTransportRequestBuilder();
- virtual ~BlobAsyncTransportRequestBuilder();
+ BlobTransportRequestBuilder();
+ BlobTransportRequestBuilder(BlobTransportRequestBuilder&&);
+ BlobTransportRequestBuilder& operator=(BlobTransportRequestBuilder&&);
+ virtual ~BlobTransportRequestBuilder();
// Initializes the request builder for file requests. One or more files are
// created to hold the given data. Each file can hold data from multiple
@@ -114,9 +116,6 @@ class STORAGE_EXPORT BlobAsyncTransportRequestBuilder {
// The total bytes size of memory items in the blob.
uint64_t total_bytes_size() const { return total_bytes_size_; }
- static bool ShouldBeShortcut(const std::vector<DataElement>& items,
- size_t memory_available);
-
private:
static void ComputeHandleSizes(uint64_t total_memory_size,
size_t max_segment_size,
@@ -130,9 +129,9 @@ class STORAGE_EXPORT BlobAsyncTransportRequestBuilder {
uint64_t total_bytes_size_;
std::vector<RendererMemoryItemRequest> requests_;
- DISALLOW_COPY_AND_ASSIGN(BlobAsyncTransportRequestBuilder);
+ DISALLOW_COPY_AND_ASSIGN(BlobTransportRequestBuilder);
};
} // namespace storage
-#endif // STORAGE_BROWSER_BLOB_BLOB_ASYNC_TRANSPORT_REQUEST_BUILDER_H_
+#endif // STORAGE_BROWSER_BLOB_BLOB_TRANSPORT_REQUEST_BUILDER_H_
« no previous file with comments | « storage/browser/blob/blob_transport_host.cc ('k') | storage/browser/blob/blob_transport_request_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698