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

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

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 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
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_HOST_H_ 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_HOST_H_
6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_HOST_H_ 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_HOST_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 310
311 // True if requests for this host were blocked by a policy. 311 // True if requests for this host were blocked by a policy.
312 bool main_resource_blocked_; 312 bool main_resource_blocked_;
313 GURL blocked_manifest_url_; 313 GURL blocked_manifest_url_;
314 314
315 // Tells if info about associated cache is pending. Info is pending 315 // Tells if info about associated cache is pending. Info is pending
316 // when update job has not returned success yet. 316 // when update job has not returned success yet.
317 bool associated_cache_info_pending_; 317 bool associated_cache_info_pending_;
318 318
319 // List of objects observing us. 319 // List of objects observing us.
320 ObserverList<Observer> observers_; 320 base::ObserverList<Observer> observers_;
321 321
322 // Used to inform the QuotaManager of what origins are currently in use. 322 // Used to inform the QuotaManager of what origins are currently in use.
323 GURL origin_in_use_; 323 GURL origin_in_use_;
324 324
325 // First party url to be used in policy checks. 325 // First party url to be used in policy checks.
326 GURL first_party_url_; 326 GURL first_party_url_;
327 327
328 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, CleanupUnusedGroup); 328 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, CleanupUnusedGroup);
329 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate); 329 FRIEND_TEST_ALL_PREFIXES(content::AppCacheGroupTest, QueueUpdate);
330 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, Basic); 330 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, Basic);
331 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SelectNoCache); 331 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SelectNoCache);
332 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, ForeignEntry); 332 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, ForeignEntry);
333 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, FailedCacheLoad); 333 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, FailedCacheLoad);
334 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, FailedGroupLoad); 334 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, FailedGroupLoad);
335 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SetSwappableCache); 335 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SetSwappableCache);
336 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, ForDedicatedWorker); 336 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, ForDedicatedWorker);
337 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SelectCacheAllowed); 337 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SelectCacheAllowed);
338 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SelectCacheBlocked); 338 FRIEND_TEST_ALL_PREFIXES(content::AppCacheHostTest, SelectCacheBlocked);
339 FRIEND_TEST_ALL_PREFIXES(content::AppCacheTest, CleanupUnusedCache); 339 FRIEND_TEST_ALL_PREFIXES(content::AppCacheTest, CleanupUnusedCache);
340 340
341 DISALLOW_COPY_AND_ASSIGN(AppCacheHost); 341 DISALLOW_COPY_AND_ASSIGN(AppCacheHost);
342 }; 342 };
343 343
344 } // namespace content 344 } // namespace content
345 345
346 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_HOST_H_ 346 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/appcache/appcache_group.cc ('k') | content/browser/appcache/appcache_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698