diff options
author | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-18 20:21:31 +0000 |
---|---|---|
committer | erg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-18 20:21:31 +0000 |
commit | b104b50ddb1d70d95ff9ace7a6fb30ec3b1aeb17 (patch) | |
tree | 0d35c3f624aec7c6de8824fab2b9521bfff1dbff /net/http/http_cache.cc | |
parent | d13509f32546e26332733ac6153d359fbd566eaa (diff) | |
download | chromium_src-b104b50ddb1d70d95ff9ace7a6fb30ec3b1aeb17.zip chromium_src-b104b50ddb1d70d95ff9ace7a6fb30ec3b1aeb17.tar.gz chromium_src-b104b50ddb1d70d95ff9ace7a6fb30ec3b1aeb17.tar.bz2 |
FBTF: Monster ctor patch after changing heuristics in clang plugin.
(Only 916k this time off Debug Linux .a files)
BUG=none
TEST=compiles
Review URL: http://codereview.chromium.org/3814013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@62967 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache.cc')
-rw-r--r-- | net/http/http_cache.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc index 867d003..a62c84e 100644 --- a/net/http/http_cache.cc +++ b/net/http/http_cache.cc @@ -36,6 +36,23 @@ namespace net { +HttpCache::DefaultBackend::DefaultBackend(CacheType type, + const FilePath& path, + int max_bytes, + base::MessageLoopProxy* thread) + : type_(type), + path_(path), + max_bytes_(max_bytes), + thread_(thread) { +} + +HttpCache::DefaultBackend::~DefaultBackend() {} + +// static +HttpCache::BackendFactory* HttpCache::DefaultBackend::InMemory(int max_bytes) { + return new DefaultBackend(MEMORY_CACHE, FilePath(), max_bytes, NULL); +} + int HttpCache::DefaultBackend::CreateBackend(disk_cache::Backend** backend, CompletionCallback* callback) { DCHECK_GE(max_bytes_, 0); |