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

Side by Side Diff: content/browser/appcache/appcache_group.h

Issue 697953002: ObserverList::HasObserver now takes a const pointer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile errors (ChromeOS unit tests). Created 6 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
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 CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 AppCacheUpdateJob* update_job() { return update_job_; } 115 AppCacheUpdateJob* update_job() { return update_job_; }
116 void SetUpdateAppCacheStatus(UpdateAppCacheStatus status); 116 void SetUpdateAppCacheStatus(UpdateAppCacheStatus status);
117 117
118 void NotifyContentBlocked(); 118 void NotifyContentBlocked();
119 119
120 const Caches& old_caches() const { return old_caches_; } 120 const Caches& old_caches() const { return old_caches_; }
121 121
122 // Update cannot be processed at this time. Queue it for a later run. 122 // Update cannot be processed at this time. Queue it for a later run.
123 void QueueUpdate(AppCacheHost* host, const GURL& new_master_resource); 123 void QueueUpdate(AppCacheHost* host, const GURL& new_master_resource);
124 void RunQueuedUpdates(); 124 void RunQueuedUpdates();
125 bool FindObserver(UpdateObserver* find_me, 125 static bool FindObserver(const UpdateObserver* find_me,
126 const ObserverList<UpdateObserver>& observer_list); 126 const ObserverList<UpdateObserver>& observer_list);
127 void ScheduleUpdateRestart(int delay_ms); 127 void ScheduleUpdateRestart(int delay_ms);
128 void HostDestructionImminent(AppCacheHost* host); 128 void HostDestructionImminent(AppCacheHost* host);
129 129
130 const int64 group_id_; 130 const int64 group_id_;
131 const GURL manifest_url_; 131 const GURL manifest_url_;
132 base::Time creation_time_; 132 base::Time creation_time_;
133 UpdateAppCacheStatus update_status_; 133 UpdateAppCacheStatus update_status_;
134 bool is_obsolete_; 134 bool is_obsolete_;
135 bool is_being_deleted_; 135 bool is_being_deleted_;
136 std::vector<int64> newly_deletable_response_ids_; 136 std::vector<int64> newly_deletable_response_ids_;
(...skipping 27 matching lines...) Expand all
164 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate); 164 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate);
165 FRIEND_TEST_ALL_PREFIXES(content::AppCacheUpdateJobTest, AlreadyChecking); 165 FRIEND_TEST_ALL_PREFIXES(content::AppCacheUpdateJobTest, AlreadyChecking);
166 FRIEND_TEST_ALL_PREFIXES(content::AppCacheUpdateJobTest, AlreadyDownloading); 166 FRIEND_TEST_ALL_PREFIXES(content::AppCacheUpdateJobTest, AlreadyDownloading);
167 167
168 DISALLOW_COPY_AND_ASSIGN(AppCacheGroup); 168 DISALLOW_COPY_AND_ASSIGN(AppCacheGroup);
169 }; 169 };
170 170
171 } // namespace content 171 } // namespace content
172 172
173 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_ 173 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_GROUP_H_
OLDNEW
« no previous file with comments | « components/invalidation/invalidator_registrar.cc ('k') | content/browser/appcache/appcache_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698