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

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

Issue 1985383002: Logging and check fail crbug/612358 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleaned up logging Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/log/net_log_event_type_list.h ('k') | storage/browser/blob/blob_async_builder_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: storage/browser/blob/blob_async_builder_host.h
diff --git a/storage/browser/blob/blob_async_builder_host.h b/storage/browser/blob/blob_async_builder_host.h
index b7e82fb3dd7dd97b6422b70e301f881dbab93f5d..f83d446f68587cdc3c023453fef2fffe85d22435 100644
--- a/storage/browser/blob/blob_async_builder_host.h
+++ b/storage/browser/blob/blob_async_builder_host.h
@@ -162,11 +162,24 @@ class STORAGE_EXPORT BlobAsyncBuilderHost {
// and to wait until any blobs that are not done building are fully
// constructed.
std::vector<std::unique_ptr<BlobDataHandle>> referenced_blob_handles;
-
// These are the number of blobs we're waiting for before we can start
// building.
size_t num_referenced_blobs_building = 0;
+ void LogState() {
+ LOG(ERROR) << "Requests: " << request_builder.requests().size();
+ for (const auto& request : request_builder.requests()) {
+ LOG(ERROR) << " " << static_cast<int>(request.message.transport_strategy);
+ }
+
+ LOG(ERROR) << "request_received: " << request_received.size();
+ for (bool received : request_received) {
+ LOG(ERROR) << " " << received;
+ }
+ LOG(ERROR) << "next_request: " << next_request;
+ LOG(ERROR) << "num_fulfilled: " << num_fulfilled_requests;
+ }
+
BlobAsyncBuilderHost::RequestMemoryCallback request_memory_callback;
};
« no previous file with comments | « net/log/net_log_event_type_list.h ('k') | storage/browser/blob/blob_async_builder_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698