Home
last modified time | relevance | path

Searched refs:BackendResult (Results 1 – 13 of 13) sorted by relevance

/external/cronet/net/disk_cache/
Ddisk_cache.cc201 disk_cache::BackendResult result; in DoCallback()
203 result = disk_cache::BackendResult::Make(std::move(created_cache_)); in DoCallback()
206 result = disk_cache::BackendResult::MakeError( in DoCallback()
288 BackendResult::BackendResult() = default;
289 BackendResult::~BackendResult() = default;
290 BackendResult::BackendResult(BackendResult&&) = default;
291 BackendResult& BackendResult::operator=(BackendResult&&) = default;
294 BackendResult BackendResult::MakeError(net::Error error_in) { in MakeError()
296 BackendResult result; in MakeError()
302 BackendResult BackendResult::Make(std::unique_ptr<Backend> backend_in) { in Make()
[all …]
Ddisk_cache.h58 struct NET_EXPORT BackendResult { struct
59 BackendResult();
60 ~BackendResult();
61 BackendResult(BackendResult&&);
62 BackendResult& operator=(BackendResult&&); argument
64 BackendResult(const BackendResult&) = delete;
65 BackendResult& operator=(const BackendResult&) = delete; argument
68 static BackendResult MakeError(net::Error error_in);
70 static BackendResult Make(std::unique_ptr<Backend> backend_in);
76 using BackendResultCallback = base::OnceCallback<void(BackendResult)>; argument
[all …]
Ddisk_cache_test_util.h44 bool operator()(const disk_cache::BackendResult& result) const { in operator()
49 net::internal::TestCompletionCallbackTemplate<disk_cache::BackendResult,
Dbackend_unittest.cc602 disk_cache::BackendResult rv = disk_cache::CreateCacheBackend( in TEST_F()
629 disk_cache::BackendResult rv = disk_cache::CreateCacheBackend( in TEST_F()
653 disk_cache::BackendResult rv = disk_cache::CreateCacheBackend( in TEST_F()
658 disk_cache::BackendResult rv2 = disk_cache::CreateCacheBackend( in TEST_F()
693 disk_cache::BackendResult rv = disk_cache::CreateCacheBackend( in TEST_F()
698 disk_cache::BackendResult rv2 = disk_cache::CreateCacheBackend( in TEST_F()
747 disk_cache::BackendResult rv = disk_cache::CreateCacheBackend( in TEST_F()
796 disk_cache::BackendResult rv = disk_cache::CreateCacheBackend( in TEST_F()
974 disk_cache::BackendResult backend_rv = disk_cache::CreateCacheBackend( in TEST_F()
1123 disk_cache::BackendResult rv = disk_cache::CreateCacheBackend( in TEST_F()
[all …]
/external/cronet/net/http/
Dhttp_cache.h77 virtual disk_cache::BackendResult CreateBackend(
79 base::OnceCallback<void(disk_cache::BackendResult)> callback) = 0;
107 disk_cache::BackendResult CreateBackend(
109 base::OnceCallback<void(disk_cache::BackendResult)> callback) override;
643 disk_cache::BackendResult result);
Dmock_http_cache.cc651 disk_cache::BackendResult MockBackendFactory::CreateBackend( in CreateBackend()
654 return disk_cache::BackendResult::Make(std::make_unique<MockDiskCache>()); in CreateBackend()
811 disk_cache::BackendResult MockBackendNoCbFactory::CreateBackend( in CreateBackend()
814 return disk_cache::BackendResult::Make(std::make_unique<MockDiskCacheNoCB>()); in CreateBackend()
822 disk_cache::BackendResult MockBlockingBackendFactory::CreateBackend( in CreateBackend()
830 return disk_cache::BackendResult::MakeError(ERR_IO_PENDING); in CreateBackend()
841 disk_cache::BackendResult MockBlockingBackendFactory::MakeResult() { in MakeResult()
843 return disk_cache::BackendResult::MakeError(ERR_FAILED); in MakeResult()
845 return disk_cache::BackendResult::Make(std::make_unique<MockDiskCache>()); in MakeResult()
Dmock_http_cache.h283 disk_cache::BackendResult CreateBackend(
361 disk_cache::BackendResult CreateBackend(
372 disk_cache::BackendResult CreateBackend(
387 disk_cache::BackendResult MakeResult();
Dhttp_cache.cc101 disk_cache::BackendResult HttpCache::DefaultBackend::CreateBackend( in CreateBackend()
103 base::OnceCallback<void(disk_cache::BackendResult)> callback) { in CreateBackend()
593 disk_cache::BackendResult result = backend_factory_->CreateBackend( in CreateBackend()
1506 disk_cache::BackendResult result) { in OnPendingBackendCreationOpComplete()
Dhttp_cache_unittest.cc6035 std::move(callback).Run(disk_cache::BackendResult::MakeError(ERR_ABORTED)); in TEST_F()
/external/cronet/components/nacl/browser/
Dpnacl_translation_cache.h19 struct BackendResult;
97 void OnCreateBackendComplete(disk_cache::BackendResult result);
Dpnacl_translation_cache.cc344 disk_cache::BackendResult result = disk_cache::CreateCacheBackend( in Init()
359 disk_cache::BackendResult result) { in OnCreateBackendComplete()
/external/cronet/net/tools/disk_cache_memory_test/
Ddisk_cache_memory_test.cc93 BackendResult result; in CreateAndInitBackend()
98 [](BackendResult* out, base::RunLoop* run_loop, in CreateAndInitBackend()
99 BackendResult async_result) { in CreateAndInitBackend()
/external/cronet/net/tools/cachetool/
Dcachetool.cc32 using disk_cache::BackendResult;
756 BackendResult result = disk_cache::CreateCacheBackend( in main()