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

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

Issue 1853333003: [BlobAsync] Faster shortcuttin, make renderer controller leaky & alive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 8 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_BLOB_STORAGE_BLOB_DISPATCHER_HOST_H_ 5 #ifndef CONTENT_BROWSER_BLOB_STORAGE_BLOB_DISPATCHER_HOST_H_
6 #define CONTENT_BROWSER_BLOB_STORAGE_BLOB_DISPATCHER_HOST_H_ 6 #define CONTENT_BROWSER_BLOB_STORAGE_BLOB_DISPATCHER_HOST_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 size_t max_shared_memory_size, 59 size_t max_shared_memory_size,
60 uint64_t max_file_size) { 60 uint64_t max_file_size) {
61 async_builder_.SetMemoryConstantsForTesting( 61 async_builder_.SetMemoryConstantsForTesting(
62 max_ipc_memory_size, max_shared_memory_size, max_file_size); 62 max_ipc_memory_size, max_shared_memory_size, max_file_size);
63 } 63 }
64 64
65 private: 65 private:
66 friend class base::RefCountedThreadSafe<BlobDispatcherHost>; 66 friend class base::RefCountedThreadSafe<BlobDispatcherHost>;
67 friend class BlobDispatcherHostTest; 67 friend class BlobDispatcherHostTest;
68 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, EmptyUUIDs); 68 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, EmptyUUIDs);
69 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, MultipleTransfers);
69 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, SharedMemoryTransfer); 70 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, SharedMemoryTransfer);
70 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, OnCancelBuildingBlob); 71 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, OnCancelBuildingBlob);
71 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, 72 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest,
72 BlobReferenceWhileConstructing); 73 BlobReferenceWhileConstructing);
73 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, 74 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest,
74 BlobReferenceWhileShortcutConstructing); 75 BlobReferenceWhileShortcutConstructing);
75 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, 76 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest,
76 BlobReferenceWhileConstructingCancelled); 77 BlobReferenceWhileConstructingCancelled);
77 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, DecrementRefAfterRegister); 78 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, DecrementRefAfterRegister);
78 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, DecrementRefAfterOnStart); 79 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, DecrementRefAfterOnStart);
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // The set of public blob urls coined by this consumer. 134 // The set of public blob urls coined by this consumer.
134 std::set<GURL> public_blob_urls_; 135 std::set<GURL> public_blob_urls_;
135 136
136 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; 137 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_;
137 storage::BlobAsyncBuilderHost async_builder_; 138 storage::BlobAsyncBuilderHost async_builder_;
138 139
139 DISALLOW_COPY_AND_ASSIGN(BlobDispatcherHost); 140 DISALLOW_COPY_AND_ASSIGN(BlobDispatcherHost);
140 }; 141 };
141 } // namespace content 142 } // namespace content
142 #endif // CONTENT_BROWSER_BLOB_STORAGE_BLOB_DISPATCHER_HOST_H_ 143 #endif // CONTENT_BROWSER_BLOB_STORAGE_BLOB_DISPATCHER_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698