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

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

Issue 2448353002: [BlobAsync] Moving async handling into BlobStorageContext & quota out. (Closed)
Patch Set: rebase 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
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..78ae68a2824eaad4597219091bca37e825452b01 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,8 @@ class STORAGE_EXPORT BlobAsyncTransportRequestBuilder {
BlobItemBytesRequest message;
};
- BlobAsyncTransportRequestBuilder();
- virtual ~BlobAsyncTransportRequestBuilder();
+ 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 +114,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 +127,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_

Powered by Google App Engine
This is Rietveld 408576698