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

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

Issue 8673008: base::Bind: Implement CancelableCallback to replace CancelableTaske. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moar. Created 9 years, 1 month 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_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
11 #include "base/cancelable_callback.h"
11 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
12 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
13 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
14 #include "base/observer_list.h" 15 #include "base/observer_list.h"
15 #include "base/task.h" 16 #include "base/task.h"
16 #include "base/time.h" 17 #include "base/time.h"
17 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
18 #include "webkit/appcache/appcache_export.h" 19 #include "webkit/appcache/appcache_export.h"
19 20
20 namespace appcache { 21 namespace appcache {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 140
140 // Central service object. 141 // Central service object.
141 AppCacheService* service_; 142 AppCacheService* service_;
142 143
143 // List of objects observing this group. 144 // List of objects observing this group.
144 ObserverList<UpdateObserver> observers_; 145 ObserverList<UpdateObserver> observers_;
145 146
146 // Updates that have been queued for the next run. 147 // Updates that have been queued for the next run.
147 QueuedUpdates queued_updates_; 148 QueuedUpdates queued_updates_;
148 ObserverList<UpdateObserver> queued_observers_; 149 ObserverList<UpdateObserver> queued_observers_;
149 CancelableTask* restart_update_task_; 150 base::CancelableCallback restart_update_task_;
150 scoped_ptr<HostObserver> host_observer_; 151 scoped_ptr<HostObserver> host_observer_;
151 152
152 // True if we're in our destructor. 153 // True if we're in our destructor.
153 bool is_in_dtor_; 154 bool is_in_dtor_;
154 155
155 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, StartUpdate); 156 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, StartUpdate);
156 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, CancelUpdate); 157 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, CancelUpdate);
157 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate); 158 FRIEND_TEST_ALL_PREFIXES(AppCacheGroupTest, QueueUpdate);
158 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyChecking); 159 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyChecking);
159 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyDownloading); 160 FRIEND_TEST_ALL_PREFIXES(AppCacheUpdateJobTest, AlreadyDownloading);
160 161
161 DISALLOW_COPY_AND_ASSIGN(AppCacheGroup); 162 DISALLOW_COPY_AND_ASSIGN(AppCacheGroup);
162 }; 163 };
163 164
164 } // namespace appcache 165 } // namespace appcache
165 166
166 #endif // WEBKIT_APPCACHE_APPCACHE_GROUP_H_ 167 #endif // WEBKIT_APPCACHE_APPCACHE_GROUP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698