Lines Matching defs:HttpCache

63 HttpCache::DefaultBackend::DefaultBackend(
76 HttpCache::DefaultBackend::~DefaultBackend() {}
79 HttpCache::BackendFactory* HttpCache::DefaultBackend::InMemory(int max_bytes) {
84 int HttpCache::DefaultBackend::CreateBackend(
101 HttpCache::ActiveEntry::ActiveEntry(disk_cache::Entry* entry)
108 HttpCache::ActiveEntry::~ActiveEntry() {
119 struct HttpCache::PendingOp {
142 class HttpCache::WorkItem {
198 class HttpCache::MetadataWriter {
200 explicit MetadataWriter(HttpCache::Transaction* trans)
208 // Implements the bulk of HttpCache::WriteMetadata.
217 scoped_ptr<HttpCache::Transaction> transaction_;
226 void HttpCache::MetadataWriter::Write(const GURL& url,
249 void HttpCache::MetadataWriter::VerifyResponse(int result) {
267 void HttpCache::MetadataWriter::SelfDestroy() {
271 void HttpCache::MetadataWriter::OnIOComplete(int result) {
279 class HttpCache::QuicServerInfoFactoryAdaptor : public QuicServerInfoFactory {
281 QuicServerInfoFactoryAdaptor(HttpCache* http_cache)
291 HttpCache* const http_cache_;
295 HttpCache::HttpCache(const net::HttpNetworkSession::Params& params,
310 HttpCache::HttpCache(HttpNetworkSession* session,
321 HttpCache::HttpCache(HttpTransactionFactory* network_layer,
334 HttpCache::~HttpCache() {
383 int HttpCache::GetBackend(disk_cache::Backend** backend,
395 disk_cache::Backend* HttpCache::GetCurrentBackend() const {
400 bool HttpCache::ParseResponseInfo(const char* data, int len,
407 void HttpCache::WriteMetadata(const GURL& url,
421 HttpCache::Transaction* trans =
422 new HttpCache::Transaction(priority, this);
429 void HttpCache::CloseAllConnections() {
435 void HttpCache::CloseIdleConnections() {
441 void HttpCache::OnExternalCacheHit(const GURL& url,
453 void HttpCache::InitializeInfiniteCache(const base::FilePath& path) {
459 int HttpCache::CreateTransaction(RequestPriority priority,
467 HttpCache::Transaction* transaction =
468 new HttpCache::Transaction(priority, this);
476 HttpCache* HttpCache::GetCache() {
480 HttpNetworkSession* HttpCache::GetSession() {
485 HttpCache::SetHttpNetworkTransactionFactoryForTesting(
494 int HttpCache::CreateBackend(disk_cache::Backend** backend,
516 pending_op->callback = base::Bind(&HttpCache::OnPendingOpComplete,
529 int HttpCache::GetBackendForTransaction(Transaction* trans) {
545 std::string HttpCache::GenerateCacheKey(const HttpRequestInfo* request) {
584 void HttpCache::DoomActiveEntry(const std::string& key) {
595 int HttpCache::DoomEntry(const std::string& key, Transaction* trans) {
621 int HttpCache::AsyncDoomEntry(const std::string& key, Transaction* trans) {
632 pending_op->callback = base::Bind(&HttpCache::OnPendingOpComplete,
644 void HttpCache::DoomMainEntryForUrl(const GURL& url) {
661 void HttpCache::FinalizeDoomedEntry(ActiveEntry* entry) {
674 HttpCache::ActiveEntry* HttpCache::FindActiveEntry(const std::string& key) {
679 HttpCache::ActiveEntry* HttpCache::ActivateEntry(
687 void HttpCache::DeactivateEntry(ActiveEntry* entry) {
708 void HttpCache::SlowDeactivateEntry(ActiveEntry* entry) {
719 HttpCache::PendingOp* HttpCache::GetPendingOp(const std::string& key) {
731 void HttpCache::DeletePendingOp(PendingOp* pending_op) {
754 int HttpCache::OpenEntry(const std::string& key, ActiveEntry** entry,
772 pending_op->callback = base::Bind(&HttpCache::OnPendingOpComplete,
785 int HttpCache::CreateEntry(const std::string& key, ActiveEntry** entry,
801 pending_op->callback = base::Bind(&HttpCache::OnPendingOpComplete,
814 void HttpCache::DestroyEntry(ActiveEntry* entry) {
822 int HttpCache::AddTransactionToEntry(ActiveEntry* entry, Transaction* trans) {
861 void HttpCache::DoneWithEntry(ActiveEntry* entry, Transaction* trans,
888 void HttpCache::DoneWritingToEntry(ActiveEntry* entry, bool success) {
915 void HttpCache::DoneReadingFromEntry(ActiveEntry* entry, Transaction* trans) {
927 void HttpCache::ConvertWriterToReader(ActiveEntry* entry) {
940 LoadState HttpCache::GetLoadStateForPendingTransaction(
953 void HttpCache::RemovePendingTransaction(Transaction* trans) {
985 bool HttpCache::RemovePendingTransactionFromEntry(ActiveEntry* entry,
998 bool HttpCache::RemovePendingTransactionFromPendingOp(PendingOp* pending_op,
1018 void HttpCache::SetupQuicServerInfoFactory(HttpNetworkSession* session) {
1028 void HttpCache::ProcessPendingQueue(ActiveEntry* entry) {
1038 base::Bind(&HttpCache::OnProcessPendingQueue, GetWeakPtr(), entry));
1041 void HttpCache::OnProcessPendingQueue(ActiveEntry* entry) {
1065 void HttpCache::OnIOComplete(int result, PendingOp* pending_op) {
1155 void HttpCache::OnPendingOpComplete(const base::WeakPtr<HttpCache>& cache,
1167 void HttpCache::OnBackendCreated(int result, PendingOp* pending_op) {
1198 base::Bind(&HttpCache::OnBackendCreated, GetWeakPtr(),