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

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

Issue 16155009: Update webkit/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 | « no previous file | 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) 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_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 18 matching lines...) Expand all
29 // cache is being created during an appcache upate. 29 // cache is being created during an appcache upate.
30 class WEBKIT_STORAGE_EXPORT AppCache : public base::RefCounted<AppCache> { 30 class WEBKIT_STORAGE_EXPORT AppCache : public base::RefCounted<AppCache> {
31 public: 31 public:
32 typedef std::map<GURL, AppCacheEntry> EntryMap; 32 typedef std::map<GURL, AppCacheEntry> EntryMap;
33 typedef std::set<AppCacheHost*> AppCacheHosts; 33 typedef std::set<AppCacheHost*> AppCacheHosts;
34 34
35 AppCache(AppCacheStorage* storage, int64 cache_id); 35 AppCache(AppCacheStorage* storage, int64 cache_id);
36 36
37 int64 cache_id() const { return cache_id_; } 37 int64 cache_id() const { return cache_id_; }
38 38
39 AppCacheGroup* owning_group() const { return owning_group_; } 39 AppCacheGroup* owning_group() const { return owning_group_.get(); }
40 40
41 bool is_complete() const { return is_complete_; } 41 bool is_complete() const { return is_complete_; }
42 void set_complete(bool value) { is_complete_ = value; } 42 void set_complete(bool value) { is_complete_ = value; }
43 43
44 // Adds a new entry. Entry must not already be in cache. 44 // Adds a new entry. Entry must not already be in cache.
45 void AddEntry(const GURL& url, const AppCacheEntry& entry); 45 void AddEntry(const GURL& url, const AppCacheEntry& entry);
46 46
47 // Adds a new entry or modifies an existing entry by merging the types 47 // Adds a new entry or modifies an existing entry by merging the types
48 // of the new entry with the existing entry. Returns true if a new entry 48 // of the new entry with the existing entry. Returns true if a new entry
49 // is added, false if the flags are merged into an existing entry. 49 // is added, false if the flags are merged into an existing entry.
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 AppCacheStorage* storage_; 175 AppCacheStorage* storage_;
176 176
177 FRIEND_TEST_ALL_PREFIXES(AppCacheTest, InitializeWithManifest); 177 FRIEND_TEST_ALL_PREFIXES(AppCacheTest, InitializeWithManifest);
178 FRIEND_TEST_ALL_PREFIXES(AppCacheTest, ToFromDatabaseRecords); 178 FRIEND_TEST_ALL_PREFIXES(AppCacheTest, ToFromDatabaseRecords);
179 DISALLOW_COPY_AND_ASSIGN(AppCache); 179 DISALLOW_COPY_AND_ASSIGN(AppCache);
180 }; 180 };
181 181
182 } // namespace appcache 182 } // namespace appcache
183 183
184 #endif // WEBKIT_APPCACHE_APPCACHE_H_ 184 #endif // WEBKIT_APPCACHE_APPCACHE_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/appcache/appcache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698