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

Side by Side Diff: webkit/appcache/appcache_service.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « webkit/appcache/appcache_interfaces.cc ('k') | webkit/appcache/appcache_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_APPCACHE_APPCACHE_SERVICE_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_SERVICE_H_
6 #define WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 10
11 #include "base/gtest_prod_util.h" 11 #include "base/gtest_prod_util.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "net/base/completion_callback.h" 14 #include "net/base/completion_callback.h"
15 #include "net/base/net_errors.h" 15 #include "net/base/net_errors.h"
16 #include "webkit/appcache/appcache_interfaces.h" 16 #include "webkit/appcache/appcache_interfaces.h"
17 #include "webkit/appcache/appcache_storage.h" 17 #include "webkit/appcache/appcache_storage.h"
18 #include "webkit/storage/webkit_storage_export.h" 18 #include "webkit/storage/webkit_storage_export.h"
19 19
20 class FilePath;
21
22 namespace net { 20 namespace net {
23 class URLRequestContext; 21 class URLRequestContext;
24 } // namespace net 22 } // namespace net
25 23
26 namespace base { 24 namespace base {
25 class FilePath;
27 class MessageLoopProxy; 26 class MessageLoopProxy;
28 } 27 }
29 28
30 namespace quota { 29 namespace quota {
31 class QuotaManagerProxy; 30 class QuotaManagerProxy;
32 class SpecialStoragePolicy; 31 class SpecialStoragePolicy;
33 } 32 }
34 33
35 namespace appcache { 34 namespace appcache {
36 35
(...skipping 15 matching lines...) Expand all
52 51
53 // Class that manages the application cache service. Sends notifications 52 // Class that manages the application cache service. Sends notifications
54 // to many frontends. One instance per user-profile. Each instance has 53 // to many frontends. One instance per user-profile. Each instance has
55 // exclusive access to its cache_directory on disk. 54 // exclusive access to its cache_directory on disk.
56 class WEBKIT_STORAGE_EXPORT AppCacheService { 55 class WEBKIT_STORAGE_EXPORT AppCacheService {
57 public: 56 public:
58 // If not using quota management, the proxy may be NULL. 57 // If not using quota management, the proxy may be NULL.
59 explicit AppCacheService(quota::QuotaManagerProxy* quota_manager_proxy); 58 explicit AppCacheService(quota::QuotaManagerProxy* quota_manager_proxy);
60 virtual ~AppCacheService(); 59 virtual ~AppCacheService();
61 60
62 void Initialize(const FilePath& cache_directory, 61 void Initialize(const base::FilePath& cache_directory,
63 base::MessageLoopProxy* db_thread, 62 base::MessageLoopProxy* db_thread,
64 base::MessageLoopProxy* cache_thread); 63 base::MessageLoopProxy* cache_thread);
65 64
66 // Purges any memory not needed. 65 // Purges any memory not needed.
67 void PurgeMemory() { 66 void PurgeMemory() {
68 if (storage_.get()) 67 if (storage_.get())
69 storage_->PurgeMemory(); 68 storage_->PurgeMemory();
70 } 69 }
71 70
72 // Determines if a request for 'url' can be satisfied while offline. 71 // Determines if a request for 'url' can be satisfied while offline.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 net::URLRequestContext* request_context_; 170 net::URLRequestContext* request_context_;
172 // If true, nothing (not even session-only data) should be deleted on exit. 171 // If true, nothing (not even session-only data) should be deleted on exit.
173 bool force_keep_session_state_; 172 bool force_keep_session_state_;
174 173
175 DISALLOW_COPY_AND_ASSIGN(AppCacheService); 174 DISALLOW_COPY_AND_ASSIGN(AppCacheService);
176 }; 175 };
177 176
178 } // namespace appcache 177 } // namespace appcache
179 178
180 #endif // WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ 179 #endif // WEBKIT_APPCACHE_APPCACHE_SERVICE_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_interfaces.cc ('k') | webkit/appcache/appcache_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698