| OLD | NEW |
| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 DecrementRefAfterOnStartWithHandle); | 80 DecrementRefAfterOnStartWithHandle); |
| 81 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, | 81 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, |
| 82 HostDisconnectAfterRegisterWithHandle); | 82 HostDisconnectAfterRegisterWithHandle); |
| 83 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, HostDisconnectAfterOnStart); | 83 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, HostDisconnectAfterOnStart); |
| 84 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, | 84 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, |
| 85 HostDisconnectAfterOnMemoryResponse); | 85 HostDisconnectAfterOnMemoryResponse); |
| 86 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, | 86 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, |
| 87 CreateBlobWithBrokenReference); | 87 CreateBlobWithBrokenReference); |
| 88 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, | 88 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, |
| 89 DeferenceBlobOnDifferentHost); | 89 DeferenceBlobOnDifferentHost); |
| 90 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, BuildingReferenceChain); |
| 91 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, |
| 92 BuildingReferenceChainWithCancel); |
| 93 FRIEND_TEST_ALL_PREFIXES(BlobDispatcherHostTest, |
| 94 BuildingReferenceChainWithSourceDeath); |
| 90 | 95 |
| 91 typedef std::map<std::string, int> BlobReferenceMap; | 96 typedef std::map<std::string, int> BlobReferenceMap; |
| 92 | 97 |
| 93 void OnRegisterBlobUUID(const std::string& uuid, | 98 void OnRegisterBlobUUID(const std::string& uuid, |
| 94 const std::string& content_type, | 99 const std::string& content_type, |
| 95 const std::string& content_disposition, | 100 const std::string& content_disposition, |
| 96 const std::set<std::string>& referenced_blob_uuids); | 101 const std::set<std::string>& referenced_blob_uuids); |
| 97 void OnStartBuildingBlob( | 102 void OnStartBuildingBlob( |
| 98 const std::string& uuid, | 103 const std::string& uuid, |
| 99 const std::vector<storage::DataElement>& descriptions); | 104 const std::vector<storage::DataElement>& descriptions); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 // The set of public blob urls coined by this consumer. | 138 // The set of public blob urls coined by this consumer. |
| 134 std::set<GURL> public_blob_urls_; | 139 std::set<GURL> public_blob_urls_; |
| 135 | 140 |
| 136 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; | 141 scoped_refptr<ChromeBlobStorageContext> blob_storage_context_; |
| 137 storage::BlobAsyncBuilderHost async_builder_; | 142 storage::BlobAsyncBuilderHost async_builder_; |
| 138 | 143 |
| 139 DISALLOW_COPY_AND_ASSIGN(BlobDispatcherHost); | 144 DISALLOW_COPY_AND_ASSIGN(BlobDispatcherHost); |
| 140 }; | 145 }; |
| 141 } // namespace content | 146 } // namespace content |
| 142 #endif // CONTENT_BROWSER_BLOB_STORAGE_BLOB_DISPATCHER_HOST_H_ | 147 #endif // CONTENT_BROWSER_BLOB_STORAGE_BLOB_DISPATCHER_HOST_H_ |
| OLD | NEW |