Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1688)

Side by Side Diff: net/http/http_transaction.h

Issue 7461106: Inform disk cache of WebKit memory cache hits. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_HTTP_HTTP_TRANSACTION_H_ 5 #ifndef NET_HTTP_HTTP_TRANSACTION_H_
6 #define NET_HTTP_HTTP_TRANSACTION_H_ 6 #define NET_HTTP_HTTP_TRANSACTION_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/string16.h" 9 #include "base/string16.h"
10 #include "net/base/completion_callback.h" 10 #include "net/base/completion_callback.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 virtual LoadState GetLoadState() const = 0; 104 virtual LoadState GetLoadState() const = 0;
105 105
106 // Returns the upload progress in bytes. If there is no upload data, 106 // Returns the upload progress in bytes. If there is no upload data,
107 // zero will be returned. This does not include the request headers. 107 // zero will be returned. This does not include the request headers.
108 virtual uint64 GetUploadProgress() const = 0; 108 virtual uint64 GetUploadProgress() const = 0;
109 109
110 // SetSSLHostInfo sets a object which reads and writes public information 110 // SetSSLHostInfo sets a object which reads and writes public information
111 // about an SSL server. It's used to implement Snap Start. 111 // about an SSL server. It's used to implement Snap Start.
112 // TODO(agl): remove this. 112 // TODO(agl): remove this.
113 virtual void SetSSLHostInfo(SSLHostInfo*) { }; 113 virtual void SetSSLHostInfo(SSLHostInfo*) { };
114
115 // For cache transactions, improves the rank of this entry in the LRU cache
116 // as if it had been used directly. This allows feedback from the renderer's
117 // memory cache to improve the selection of resources in the disk cache.
118 virtual void UpdateRankForExternalCacheHit() = 0;
114 }; 119 };
115 120
116 } // namespace net 121 } // namespace net
117 122
118 #endif // NET_HTTP_HTTP_TRANSACTION_H_ 123 #endif // NET_HTTP_HTTP_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698