diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-29 20:38:11 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-29 20:38:11 +0000 |
commit | d14c7ac0a14a2dc3984022aeadf830a3e30c99f3 (patch) | |
tree | 14b94d459b30e5156fa32daf318a217f79392d32 /net/disk_cache/disk_cache.h | |
parent | 5d25637a208dbed17b10d31eb91221e6332a5e62 (diff) | |
download | chromium_src-d14c7ac0a14a2dc3984022aeadf830a3e30c99f3.zip chromium_src-d14c7ac0a14a2dc3984022aeadf830a3e30c99f3.tar.gz chromium_src-d14c7ac0a14a2dc3984022aeadf830a3e30c99f3.tar.bz2 |
Remove code path that passes a file handle to the renderer
Since the code now does range request without any caching
the code path for passing file handle is not used any more.
Changes:
1. Remove response_data_file in webkit_glue::ResourceResponseHead
2. Remove response_data_file in net::ResourceInfo
3. Remove code that passes file handle using IPC
4. Remove code that passes file hadnle from network layer to ResourceDispatcherHost
5. Remove MediaResourceHandler
6. Remove code in disk_cache that expose the file handle
7. Remove ChromeURLRequestContext::CreateOffTheRecordForMedia() so no more OTR request context for media, in OTR mode simply memory cache is used
8. Reset cache size for media cache to default
BUG=12249
BUG=12256
Review URL: http://codereview.chromium.org/113931
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17227 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/disk_cache.h')
-rw-r--r-- | net/disk_cache/disk_cache.h | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/net/disk_cache/disk_cache.h b/net/disk_cache/disk_cache.h index 5eb6d2c..de40554 100644 --- a/net/disk_cache/disk_cache.h +++ b/net/disk_cache/disk_cache.h @@ -12,7 +12,6 @@ #include <vector> #include "base/basictypes.h" -#include "base/platform_file.h" #include "base/time.h" #include "net/base/cache_type.h" #include "net/base/completion_callback.h" @@ -155,28 +154,6 @@ class Entry { net::CompletionCallback* completion_callback, bool truncate) = 0; - // Prepares a target stream as an external file, returns a corresponding - // base::PlatformFile if successful, returns base::kInvalidPlatformFileValue - // if fails. If this call returns a valid base::PlatformFile value (i.e. - // not base::kInvalidPlatformFileValue), there is no guarantee that the file - // is truncated. Implementor can always return base::kInvalidPlatformFileValue - // if external file is not available in that particular implementation. - // The caller should close the file handle returned by this method or there - // will be a leak. - // With a stream prepared as an external file, the stream would always be - // kept in an external file since creation, even if the stream has 0 bytes. - // So we need to be cautious about using this option for preparing a stream or - // we will end up having a lot of empty cache files. Calling this method also - // means that all data written to the stream will always be written to file - // directly *without* buffering. - virtual base::PlatformFile UseExternalFile(int index) = 0; - - // Returns an asynchronous read file handle for the cache stream referenced by - // |index|. Values other than base::kInvalidPlatformFileValue are successful - // and the file handle should be managed by the caller, i.e. the caller should - // close the handle after use or there will be a leak. - virtual base::PlatformFile GetPlatformFile(int index) = 0; - protected: virtual ~Entry() {} }; |