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

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

Issue 7210006: AppCaches which belong to hosted apps are not protected from deletion (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Small changes cont. Created 9 years, 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 } 66 }
67 67
68 // Determines if a request for 'url' can be satisfied while offline. 68 // Determines if a request for 'url' can be satisfied while offline.
69 // This method always completes asynchronously. 69 // This method always completes asynchronously.
70 void CanHandleMainResourceOffline(const GURL& url, 70 void CanHandleMainResourceOffline(const GURL& url,
71 net::CompletionCallback* callback); 71 net::CompletionCallback* callback);
72 72
73 // Populates 'collection' with info about all of the appcaches stored 73 // Populates 'collection' with info about all of the appcaches stored
74 // within the service, 'callback' is invoked upon completion. The service 74 // within the service, 'callback' is invoked upon completion. The service
75 // acquires a reference to the 'collection' until until completion. 75 // acquires a reference to the 'collection' until until completion.
76 // This method always completes asynchronously. 76 // This method always completes asynchronously. (virtual for unittesting)
77 void GetAllAppCacheInfo(AppCacheInfoCollection* collection, 77 virtual void GetAllAppCacheInfo(AppCacheInfoCollection* collection,
78 net::CompletionCallback* callback); 78 net::CompletionCallback* callback);
79 79
80 // Deletes the group identified by 'manifest_url', 'callback' is 80 // Deletes the group identified by 'manifest_url', 'callback' is
81 // invoked upon completion. Upon completion, the cache group and 81 // invoked upon completion. Upon completion, the cache group and
82 // any resources within the group are no longer loadable and all 82 // any resources within the group are no longer loadable and all
83 // subresource loads for pages associated with a deleted group 83 // subresource loads for pages associated with a deleted group
84 // will fail. This method always completes asynchronously. 84 // will fail. This method always completes asynchronously.
85 void DeleteAppCacheGroup(const GURL& manifest_url, 85 void DeleteAppCacheGroup(const GURL& manifest_url,
86 net::CompletionCallback* callback); 86 net::CompletionCallback* callback);
87 87
88 // Deletes all appcaches for the origin, 'callback' is invoked upon 88 // Deletes all appcaches for the origin, 'callback' is invoked upon
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 BackendMap backends_; // One 'backend' per child process. 154 BackendMap backends_; // One 'backend' per child process.
155 // Context for use during cache updates. 155 // Context for use during cache updates.
156 net::URLRequestContext* request_context_; 156 net::URLRequestContext* request_context_;
157 157
158 DISALLOW_COPY_AND_ASSIGN(AppCacheService); 158 DISALLOW_COPY_AND_ASSIGN(AppCacheService);
159 }; 159 };
160 160
161 } // namespace appcache 161 } // namespace appcache
162 162
163 #endif // WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ 163 #endif // WEBKIT_APPCACHE_APPCACHE_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698