Home | History | Annotate | Download | only in http

Lines Matching refs:HttpCache

57 HttpCache::DefaultBackend::DefaultBackend(CacheType type,
69 HttpCache::DefaultBackend::~DefaultBackend() {}
72 HttpCache::BackendFactory* HttpCache::DefaultBackend::InMemory(int max_bytes) {
77 int HttpCache::DefaultBackend::CreateBackend(
94 HttpCache::ActiveEntry::ActiveEntry(disk_cache::Entry* entry)
101 HttpCache::ActiveEntry::~ActiveEntry() {
112 struct HttpCache::PendingOp {
135 class HttpCache::WorkItem {
191 class HttpCache::MetadataWriter {
193 explicit MetadataWriter(HttpCache::Transaction* trans)
201 // Implements the bulk of HttpCache::WriteMetadata.
210 scoped_ptr<HttpCache::Transaction> transaction_;
219 void HttpCache::MetadataWriter::Write(const GURL& url,
242 void HttpCache::MetadataWriter::VerifyResponse(int result) {
260 void HttpCache::MetadataWriter::SelfDestroy() {
264 void HttpCache::MetadataWriter::OnIOComplete(int result) {
272 class HttpCache::QuicServerInfoFactoryAdaptor : public QuicServerInfoFactory {
274 QuicServerInfoFactoryAdaptor(HttpCache* http_cache)
284 HttpCache* const http_cache_;
288 HttpCache::HttpCache(const net::HttpNetworkSession::Params& params,
302 HttpCache::HttpCache(HttpNetworkSession* session,
312 HttpCache::HttpCache(HttpTransactionFactory* network_layer,
324 HttpCache::~HttpCache() {
372 int HttpCache::GetBackend(disk_cache::Backend** backend,
384 disk_cache::Backend* HttpCache::GetCurrentBackend() const {
389 bool HttpCache::ParseResponseInfo(const char* data, int len,
396 void HttpCache::WriteMetadata(const GURL& url,
410 HttpCache::Transaction* trans =
411 new HttpCache::Transaction(priority, this);
418 void HttpCache::CloseAllConnections() {
424 void HttpCache::CloseIdleConnections() {
430 void HttpCache::OnExternalCacheHit(const GURL& url,
442 void HttpCache::InitializeInfiniteCache(const base::FilePath& path) {
448 int HttpCache::CreateTransaction(RequestPriority priority,
456 trans->reset(new HttpCache::Transaction(priority, this));
460 HttpCache* HttpCache::GetCache() {
464 HttpNetworkSession* HttpCache::GetSession() {
469 HttpCache::SetHttpNetworkTransactionFactoryForTesting(
478 int HttpCache::CreateBackend(disk_cache::Backend** backend,
500 pending_op->callback = base::Bind(&HttpCache::OnPendingOpComplete,
513 int HttpCache::GetBackendForTransaction(Transaction* trans) {
529 std::string HttpCache::GenerateCacheKey(const HttpRequestInfo* request) {
568 void HttpCache::DoomActiveEntry(const std::string& key) {
579 int HttpCache::DoomEntry(const std::string& key, Transaction* trans) {
604 int HttpCache::AsyncDoomEntry(const std::string& key, Transaction* trans) {
615 pending_op->callback = base::Bind(&HttpCache::OnPendingOpComplete,
627 void HttpCache::DoomMainEntryForUrl(const GURL& url) {
644 void HttpCache::FinalizeDoomedEntry(ActiveEntry* entry) {
657 HttpCache::ActiveEntry* HttpCache::FindActiveEntry(const std::string& key) {
662 HttpCache::ActiveEntry* HttpCache::ActivateEntry(
670 void HttpCache::DeactivateEntry(ActiveEntry* entry) {
691 void HttpCache::SlowDeactivateEntry(ActiveEntry* entry) {
702 HttpCache::PendingOp* HttpCache::GetPendingOp(const std::string& key) {
714 void HttpCache::DeletePendingOp(PendingOp* pending_op) {
737 int HttpCache::OpenEntry(const std::string& key, ActiveEntry** entry,
755 pending_op->callback = base::Bind(&HttpCache::OnPendingOpComplete,
768 int HttpCache::CreateEntry(const std::string& key, ActiveEntry** entry,
784 pending_op->callback = base::Bind(&HttpCache::OnPendingOpComplete,
797 void HttpCache::DestroyEntry(ActiveEntry* entry) {
805 int HttpCache::AddTransactionToEntry(ActiveEntry* entry, Transaction* trans) {
844 void HttpCache::DoneWithEntry(ActiveEntry* entry, Transaction* trans,
871 void HttpCache::DoneWritingToEntry(ActiveEntry* entry, bool success) {
898 void HttpCache::DoneReadingFromEntry(ActiveEntry* entry, Transaction* trans) {
910 void HttpCache::ConvertWriterToReader(ActiveEntry* entry) {
923 LoadState HttpCache::GetLoadStateForPendingTransaction(
936 void HttpCache::RemovePendingTransaction(Transaction* trans) {
968 bool HttpCache::RemovePendingTransactionFromEntry(ActiveEntry* entry,
981 bool HttpCache::RemovePendingTransactionFromPendingOp(PendingOp* pending_op,
1001 void HttpCache::SetupQuicServerInfoFactory(HttpNetworkSession* session) {
1011 void HttpCache::ProcessPendingQueue(ActiveEntry* entry) {
1021 base::Bind(&HttpCache::OnProcessPendingQueue, GetWeakPtr(), entry));
1024 void HttpCache::OnProcessPendingQueue(ActiveEntry* entry) {
1048 void HttpCache::OnIOComplete(int result, PendingOp* pending_op) {
1138 void HttpCache::OnPendingOpComplete(const base::WeakPtr<HttpCache>& cache,
1150 void HttpCache::OnBackendCreated(int result, PendingOp* pending_op) {
1178 base::Bind(&HttpCache::OnBackendCreated, GetWeakPtr(),