| OLD | NEW | 
|    1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2012 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 WEBKIT_BROWSER_APPCACHE_APPCACHE_DISK_CACHE_H_ |    5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_DISK_CACHE_H_ | 
|    6 #define WEBKIT_BROWSER_APPCACHE_APPCACHE_DISK_CACHE_H_ |    6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_DISK_CACHE_H_ | 
|    7  |    7  | 
|    8 #include <set> |    8 #include <set> | 
|    9 #include <vector> |    9 #include <vector> | 
|   10  |   10  | 
|   11 #include "base/memory/scoped_ptr.h" |   11 #include "base/memory/scoped_ptr.h" | 
 |   12 #include "content/browser/appcache/appcache_response.h" | 
 |   13 #include "content/common/content_export.h" | 
|   12 #include "net/disk_cache/disk_cache.h" |   14 #include "net/disk_cache/disk_cache.h" | 
|   13 #include "webkit/browser/appcache/appcache_response.h" |  | 
|   14 #include "webkit/browser/webkit_storage_browser_export.h" |  | 
|   15  |   15  | 
|   16 namespace appcache { |   16 namespace content { | 
|   17  |   17  | 
|   18 // An implementation of AppCacheDiskCacheInterface that |   18 // An implementation of AppCacheDiskCacheInterface that | 
|   19 // uses net::DiskCache as the backing store. |   19 // uses net::DiskCache as the backing store. | 
|   20 class WEBKIT_STORAGE_BROWSER_EXPORT AppCacheDiskCache |   20 class CONTENT_EXPORT AppCacheDiskCache | 
|   21     : public AppCacheDiskCacheInterface { |   21     : public AppCacheDiskCacheInterface { | 
|   22  public: |   22  public: | 
|   23   AppCacheDiskCache(); |   23   AppCacheDiskCache(); | 
|   24   virtual ~AppCacheDiskCache(); |   24   virtual ~AppCacheDiskCache(); | 
|   25  |   25  | 
|   26   // Initializes the object to use disk backed storage. |   26   // Initializes the object to use disk backed storage. | 
|   27   int InitWithDiskBackend(const base::FilePath& disk_cache_directory, |   27   int InitWithDiskBackend(const base::FilePath& disk_cache_directory, | 
|   28                           int disk_cache_size, bool force, |   28                           int disk_cache_size, bool force, | 
|   29                           base::MessageLoopProxy* cache_thread, |   29                           base::MessageLoopProxy* cache_thread, | 
|   30                           const net::CompletionCallback& callback); |   30                           const net::CompletionCallback& callback); | 
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   92  |   92  | 
|   93   bool is_disabled_; |   93   bool is_disabled_; | 
|   94   net::CompletionCallback init_callback_; |   94   net::CompletionCallback init_callback_; | 
|   95   scoped_refptr<CreateBackendCallbackShim> create_backend_callback_; |   95   scoped_refptr<CreateBackendCallbackShim> create_backend_callback_; | 
|   96   PendingCalls pending_calls_; |   96   PendingCalls pending_calls_; | 
|   97   ActiveCalls active_calls_; |   97   ActiveCalls active_calls_; | 
|   98   OpenEntries open_entries_; |   98   OpenEntries open_entries_; | 
|   99   scoped_ptr<disk_cache::Backend> disk_cache_; |   99   scoped_ptr<disk_cache::Backend> disk_cache_; | 
|  100 }; |  100 }; | 
|  101  |  101  | 
|  102 }  // namespace appcache |  102 }  // namespace content | 
|  103  |  103  | 
|  104 #endif  // WEBKIT_BROWSER_APPCACHE_APPCACHE_DISK_CACHE_H_ |  104 #endif  // CONTENT_BROWSER_APPCACHE_APPCACHE_DISK_CACHE_H_ | 
| OLD | NEW |