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

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

Issue 8662047: base::Bind: Implement a 1-arity CancelableCallback and use this to implement (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comment fixes. Created 9 years 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/base/completion_callback.h ('k') | webkit/appcache/appcache_service.h » ('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_GROUP_H_ 5 #ifndef WEBKIT_APPCACHE_APPCACHE_GROUP_H_
6 #define WEBKIT_APPCACHE_APPCACHE_GROUP_H_ 6 #define WEBKIT_APPCACHE_APPCACHE_GROUP_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 140
141 // Central service object. 141 // Central service object.
142 AppCacheService* service_; 142 AppCacheService* service_;
143 143
144 // List of objects observing this group. 144 // List of objects observing this group.
145 ObserverList<UpdateObserver> observers_; 145 ObserverList<UpdateObserver> observers_;
146 146
147 // Updates that have been queued for the next run. 147 // Updates that have been queued for the next run.
148 QueuedUpdates queued_updates_; 148 QueuedUpdates queued_updates_;
149 ObserverList<UpdateObserver> queued_observers_; 149 ObserverList<UpdateObserver> queued_observers_;
150 base::CancelableCallback restart_update_task_; 150 base::CancelableClosure restart_update_task_;
151 scoped_ptr<HostObserver> host_observer_; 151 scoped_ptr<HostObserver> host_observer_;
152 152
153 // True if we're in our destructor. 153 // True if we're in our destructor.
154 bool is_in_dtor_; 154 bool is_in_dtor_;
155 155
156 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, StartUpdate); 156 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, StartUpdate);
157 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, CancelUpdate); 157 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, CancelUpdate);
158 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate); 158 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate);
159 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyChecking); 159 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyChecking);
160 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyDownloading); 160 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyDownloading);
161 161
162 DISALLOW_COPY_AND_ASSIGN(AppCacheGroup); 162 DISALLOW_COPY_AND_ASSIGN(AppCacheGroup);
163 }; 163 };
164 164
165 } // namespace appcache 165 } // namespace appcache
166 166
167 #endif // WEBKIT_APPCACHE_APPCACHE_GROUP_H_ 167 #endif // WEBKIT_APPCACHE_APPCACHE_GROUP_H_
OLDNEW
« no previous file with comments | « net/base/completion_callback.h ('k') | webkit/appcache/appcache_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698