Lines Matching refs:Backend
369 class MockDiskCache : public disk_cache::Backend {
541 disk_cache::Backend** backend,
543 *backend = new MockDiskCache();
565 disk_cache::Backend* backend;
566 int rv = http_cache_.GetBackend(&backend, &cb);
568 return (rv == net::OK) ? static_cast<MockDiskCache*>(backend) : NULL;
607 // Helper function to synchronously open a backend entry.
614 // Helper function to synchronously create a backend entry.
637 disk_cache::Backend** backend,
639 *backend = new MockDiskCacheNoCB();
644 // This backend factory allows us to control the backend instantiation.
651 disk_cache::Backend** backend,
655 *backend = new MockDiskCache();
659 backend_ = backend;
664 // Completes the backend creation. Any blocked call will be notified via the
677 disk_cache::Backend** backend() { return backend_; }
685 disk_cache::Backend** backend_;
1053 disk_cache::Backend* backend;
1055 // This will lazily initialize the backend.
1056 int rv = cache.http_cache()->GetBackend(&backend, &cb);
1108 // This will initialize a cache object with NULL backend.
1951 // ("waiting for the backend" as opposed to Active or Doomed entries).
1987 // Tests that we queue requests when initializing the backend.
2032 // Tests that we can cancel requests that are queued waiting for the backend
2087 // Tests that we can delete the cache while creating the backend.
2109 disk_cache::Backend** backend = factory->backend();
2114 *backend = NULL;
2118 // Tests that we can delete the cache while creating the backend, from within
2125 disk_cache::Backend* backend;
2126 int rv = cache->http_cache()->GetBackend(&backend, &cb);
2138 // And another direct backend request.
2140 rv = cache->http_cache()->GetBackend(&backend, &cb2);