diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-04 22:15:27 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-04 22:15:27 +0000 |
commit | 9ee9cd8145136bfa422c1213eaeecb4882581698 (patch) | |
tree | ae38220e2f4416ef0af1faa01653d44b05214e7b /net/disk_cache/backend_impl.h | |
parent | 60a50ad4551779947cf53f80d33d3da27e51e04b (diff) | |
download | chromium_src-9ee9cd8145136bfa422c1213eaeecb4882581698.zip chromium_src-9ee9cd8145136bfa422c1213eaeecb4882581698.tar.gz chromium_src-9ee9cd8145136bfa422c1213eaeecb4882581698.tar.bz2 |
Disk cache: Remove the queue for backend operations and
change the queue of entry operations so that the operation
that is posted is kept on the list.
BUG=54338
TEST=net_unittests
Review URL: http://codereview.chromium.org/3744007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65118 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/backend_impl.h')
-rw-r--r-- | net/disk_cache/backend_impl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/disk_cache/backend_impl.h b/net/disk_cache/backend_impl.h index a8880d1..05e5016 100644 --- a/net/disk_cache/backend_impl.h +++ b/net/disk_cache/backend_impl.h @@ -249,6 +249,9 @@ class BackendImpl : public Backend { // deleted after it runs. int RunTaskForTest(Task* task, CompletionCallback* callback); + // Starts or stops throttling requests. + void ThrottleRequestsForTest(bool throttle); + // Peforms a simple self-check, and returns the number of dirty items // or an error code (negative value). int SelfCheck(); |