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

Side by Side Diff: net/disk_cache/disk_cache.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, 5 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 // Defines the public interface of the disk cache. For more details see 5 // Defines the public interface of the disk cache. For more details see
6 // http://dev.chromium.org/developers/design-documents/network-stack/disk-cache 6 // http://dev.chromium.org/developers/design-documents/network-stack/disk-cache
7 7
8 #ifndef NET_DISK_CACHE_DISK_CACHE_H_ 8 #ifndef NET_DISK_CACHE_DISK_CACHE_H_
9 #define NET_DISK_CACHE_DISK_CACHE_H_ 9 #define NET_DISK_CACHE_DISK_CACHE_H_
10 #pragma once 10 #pragma once
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 // is a pending operation that has not been cancelled, this method will return 284 // is a pending operation that has not been cancelled, this method will return
285 // OK although another IO operation cannot be issued at this time; in this 285 // OK although another IO operation cannot be issued at this time; in this
286 // case the caller should just wait for the regular callback to be invoked 286 // case the caller should just wait for the regular callback to be invoked
287 // instead of using this method to provide another callback. 287 // instead of using this method to provide another callback.
288 // 288 //
289 // Note that CancelSparseIO may have been called on another instance of this 289 // Note that CancelSparseIO may have been called on another instance of this
290 // object that refers to the same physical disk entry. 290 // object that refers to the same physical disk entry.
291 // Note: This method is deprecated. 291 // Note: This method is deprecated.
292 virtual int ReadyForSparseIO(CompletionCallback* completion_callback) = 0; 292 virtual int ReadyForSparseIO(CompletionCallback* completion_callback) = 0;
293 293
294 // Improves the rank of this entry in the LRU cache as if it had been used
295 // directly. This allows feedback from the renderer's memory cache to improve
rvargas (doing something else) 2011/07/27 23:26:17 net is not aware of what a renderer is. I think th
296 // the selection of resources in the disk cache.
297 virtual void UpdateRankForExternalCacheHit() = 0;
298
294 protected: 299 protected:
295 virtual ~Entry() {} 300 virtual ~Entry() {}
296 }; 301 };
297 302
298 } // namespace disk_cache 303 } // namespace disk_cache
299 304
300 #endif // NET_DISK_CACHE_DISK_CACHE_H_ 305 #endif // NET_DISK_CACHE_DISK_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698