Home | History | Annotate | Download | only in http

Lines Matching refs:HttpCache

55 HttpCache::DefaultBackend::DefaultBackend(CacheType type,
67 HttpCache::DefaultBackend::~DefaultBackend() {}
70 HttpCache::BackendFactory* HttpCache::DefaultBackend::InMemory(int max_bytes) {
75 int HttpCache::DefaultBackend::CreateBackend(
92 HttpCache::ActiveEntry::ActiveEntry(disk_cache::Entry* entry)
99 HttpCache::ActiveEntry::~ActiveEntry() {
110 struct HttpCache::PendingOp {
133 class HttpCache::WorkItem {
189 class HttpCache::MetadataWriter {
191 explicit MetadataWriter(HttpCache::Transaction* trans)
199 // Implements the bulk of HttpCache::WriteMetadata.
208 scoped_ptr<HttpCache::Transaction> transaction_;
217 void HttpCache::MetadataWriter::Write(const GURL& url,
240 void HttpCache::MetadataWriter::VerifyResponse(int result) {
258 void HttpCache::MetadataWriter::SelfDestroy() {
262 void HttpCache::MetadataWriter::OnIOComplete(int result) {
270 HttpCache::HttpCache(const net::HttpNetworkSession::Params& params,
280 HttpCache::HttpCache(HttpNetworkSession* session,
289 HttpCache::HttpCache(HttpTransactionFactory* network_layer,
299 HttpCache::~HttpCache() {
343 int HttpCache::GetBackend(disk_cache::Backend** backend,
355 disk_cache::Backend* HttpCache::GetCurrentBackend() const {
360 bool HttpCache::ParseResponseInfo(const char* data, int len,
367 void HttpCache::WriteMetadata(const GURL& url,
381 HttpCache::Transaction* trans =
382 new HttpCache::Transaction(priority, this, NULL);
389 void HttpCache::CloseAllConnections() {
397 void HttpCache::CloseIdleConnections() {
405 void HttpCache::OnExternalCacheHit(const GURL& url,
417 void HttpCache::InitializeInfiniteCache(const base::FilePath& path) {
423 int HttpCache::CreateTransaction(RequestPriority priority,
432 trans->reset(new HttpCache::Transaction(priority, this, delegate));
436 HttpCache* HttpCache::GetCache() {
440 HttpNetworkSession* HttpCache::GetSession() {
448 int HttpCache::CreateBackend(disk_cache::Backend** backend,
470 pending_op->callback = base::Bind(&HttpCache::OnPendingOpComplete,
483 int HttpCache::GetBackendForTransaction(Transaction* trans) {
499 std::string HttpCache::GenerateCacheKey(const HttpRequestInfo* request) {
538 void HttpCache::DoomActiveEntry(const std::string& key) {
549 int HttpCache::DoomEntry(const std::string& key, Transaction* trans) {
574 int HttpCache::AsyncDoomEntry(const std::string& key, Transaction* trans) {
585 pending_op->callback = base::Bind(&HttpCache::OnPendingOpComplete,
597 void HttpCache::DoomMainEntryForUrl(const GURL& url) {
611 void HttpCache::FinalizeDoomedEntry(ActiveEntry* entry) {
624 HttpCache::ActiveEntry* HttpCache::FindActiveEntry(const std::string& key) {
629 HttpCache::ActiveEntry* HttpCache::ActivateEntry(
637 void HttpCache::DeactivateEntry(ActiveEntry* entry) {
658 void HttpCache::SlowDeactivateEntry(ActiveEntry* entry) {
669 HttpCache::PendingOp* HttpCache::GetPendingOp(const std::string& key) {
681 void HttpCache::DeletePendingOp(PendingOp* pending_op) {
704 int HttpCache::OpenEntry(const std::string& key, ActiveEntry** entry,
722 pending_op->callback = base::Bind(&HttpCache::OnPendingOpComplete,
735 int HttpCache::CreateEntry(const std::string& key, ActiveEntry** entry,
751 pending_op->callback = base::Bind(&HttpCache::OnPendingOpComplete,
764 void HttpCache::DestroyEntry(ActiveEntry* entry) {
772 int HttpCache::AddTransactionToEntry(ActiveEntry* entry, Transaction* trans) {
811 void HttpCache::DoneWithEntry(ActiveEntry* entry, Transaction* trans,
838 void HttpCache::DoneWritingToEntry(ActiveEntry* entry, bool success) {
865 void HttpCache::DoneReadingFromEntry(ActiveEntry* entry, Transaction* trans) {
877 void HttpCache::ConvertWriterToReader(ActiveEntry* entry) {
890 LoadState HttpCache::GetLoadStateForPendingTransaction(
903 void HttpCache::RemovePendingTransaction(Transaction* trans) {
935 bool HttpCache::RemovePendingTransactionFromEntry(ActiveEntry* entry,
948 bool HttpCache::RemovePendingTransactionFromPendingOp(PendingOp* pending_op,
968 void HttpCache::ProcessPendingQueue(ActiveEntry* entry) {
978 base::Bind(&HttpCache::OnProcessPendingQueue, AsWeakPtr(), entry));
981 void HttpCache::OnProcessPendingQueue(ActiveEntry* entry) {
1005 void HttpCache::OnIOComplete(int result, PendingOp* pending_op) {
1095 void HttpCache::OnPendingOpComplete(const base::WeakPtr<HttpCache>& cache,
1107 void HttpCache::OnBackendCreated(int result, PendingOp* pending_op) {
1136 &HttpCache::OnBackendCreated, AsWeakPtr(), result, pending_op));