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

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

Issue 7326023: about://appcache-internals enhancements (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
« no previous file with comments | « net/url_request/view_cache_helper.cc ('k') | webkit/appcache/appcache.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) 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_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_H_
6 #define WEBKIT_APPCACHE_APPCACHE_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 const AppCacheGroup* group, 99 const AppCacheGroup* group,
100 AppCacheDatabase::CacheRecord* cache_record, 100 AppCacheDatabase::CacheRecord* cache_record,
101 std::vector<AppCacheDatabase::EntryRecord>* entries, 101 std::vector<AppCacheDatabase::EntryRecord>* entries,
102 std::vector<AppCacheDatabase::FallbackNameSpaceRecord>* fallbacks, 102 std::vector<AppCacheDatabase::FallbackNameSpaceRecord>* fallbacks,
103 std::vector<AppCacheDatabase::OnlineWhiteListRecord>* whitelists); 103 std::vector<AppCacheDatabase::OnlineWhiteListRecord>* whitelists);
104 104
105 bool FindResponseForRequest(const GURL& url, 105 bool FindResponseForRequest(const GURL& url,
106 AppCacheEntry* found_entry, AppCacheEntry* found_fallback_entry, 106 AppCacheEntry* found_entry, AppCacheEntry* found_fallback_entry,
107 GURL* found_fallback_namespace, bool* found_network_namespace); 107 GURL* found_fallback_namespace, bool* found_network_namespace);
108 108
109 // Populates the 'infos' vector with an element per entry in the appcache.
110 void ToResourceInfoVector(AppCacheResourceInfoVector* infos) const;
111
109 static bool IsInNetworkNamespace( 112 static bool IsInNetworkNamespace(
110 const GURL& url, 113 const GURL& url,
111 const std::vector<GURL> &namespaces); 114 const std::vector<GURL> &namespaces);
112 115
113 private: 116 private:
114 friend class AppCacheGroup; 117 friend class AppCacheGroup;
115 friend class AppCacheHost; 118 friend class AppCacheHost;
116 friend class AppCacheStorageImplTest; 119 friend class AppCacheStorageImplTest;
117 friend class AppCacheUpdateJobTest; 120 friend class AppCacheUpdateJobTest;
118 friend class base::RefCounted<AppCache>; 121 friend class base::RefCounted<AppCache>;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 AppCacheService* service_; 155 AppCacheService* service_;
153 156
154 FRIEND_TEST_ALL_PREFIXES(AppCacheTest, InitializeWithManifest); 157 FRIEND_TEST_ALL_PREFIXES(AppCacheTest, InitializeWithManifest);
155 158
156 DISALLOW_COPY_AND_ASSIGN(AppCache); 159 DISALLOW_COPY_AND_ASSIGN(AppCache);
157 }; 160 };
158 161
159 } // namespace appcache 162 } // namespace appcache
160 163
161 #endif // WEBKIT_APPCACHE_APPCACHE_H_ 164 #endif // WEBKIT_APPCACHE_APPCACHE_H_
OLDNEW
« no previous file with comments | « net/url_request/view_cache_helper.cc ('k') | webkit/appcache/appcache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698