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

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

Issue 7720022: Third-party appcache blocking. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Keeping up to date with trunk. Created 9 years, 3 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Purges any memory not needed. 62 // Purges any memory not needed.
63 void PurgeMemory() { 63 void PurgeMemory() {
64 if (storage_.get()) 64 if (storage_.get())
65 storage_->PurgeMemory(); 65 storage_->PurgeMemory();
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 const GURL& first_party,
71 net::CompletionCallback* callback); 72 net::CompletionCallback* callback);
72 73
73 // Populates 'collection' with info about all of the appcaches stored 74 // Populates 'collection' with info about all of the appcaches stored
74 // within the service, 'callback' is invoked upon completion. The service 75 // within the service, 'callback' is invoked upon completion. The service
75 // acquires a reference to the 'collection' until until completion. 76 // acquires a reference to the 'collection' until until completion.
76 // This method always completes asynchronously. 77 // This method always completes asynchronously.
77 void GetAllAppCacheInfo(AppCacheInfoCollection* collection, 78 void GetAllAppCacheInfo(AppCacheInfoCollection* collection,
78 net::CompletionCallback* callback); 79 net::CompletionCallback* callback);
79 80
80 // Deletes the group identified by 'manifest_url', 'callback' is 81 // Deletes the group identified by 'manifest_url', 'callback' is
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // Context for use during cache updates. 166 // Context for use during cache updates.
166 net::URLRequestContext* request_context_; 167 net::URLRequestContext* request_context_;
167 bool clear_local_state_on_exit_; 168 bool clear_local_state_on_exit_;
168 169
169 DISALLOW_COPY_AND_ASSIGN(AppCacheService); 170 DISALLOW_COPY_AND_ASSIGN(AppCacheService);
170 }; 171 };
171 172
172 } // namespace appcache 173 } // namespace appcache
173 174
174 #endif // WEBKIT_APPCACHE_APPCACHE_SERVICE_H_ 175 #endif // WEBKIT_APPCACHE_APPCACHE_SERVICE_H_
OLDNEW
« no previous file with comments | « webkit/appcache/appcache_request_handler_unittest.cc ('k') | webkit/appcache/appcache_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698