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

Side by Side Diff: storage/browser/quota/special_storage_policy.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 STORAGE_BROWSER_QUOTA_SPECIAL_STORAGE_POLICY_H_ 5 #ifndef STORAGE_BROWSER_QUOTA_SPECIAL_STORAGE_POLICY_H_
6 #define STORAGE_BROWSER_QUOTA_SPECIAL_STORAGE_POLICY_H_ 6 #define STORAGE_BROWSER_QUOTA_SPECIAL_STORAGE_POLICY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 void AddObserver(Observer* observer); 67 void AddObserver(Observer* observer);
68 void RemoveObserver(Observer* observer); 68 void RemoveObserver(Observer* observer);
69 69
70 protected: 70 protected:
71 friend class base::RefCountedThreadSafe<SpecialStoragePolicy>; 71 friend class base::RefCountedThreadSafe<SpecialStoragePolicy>;
72 virtual ~SpecialStoragePolicy(); 72 virtual ~SpecialStoragePolicy();
73 void NotifyGranted(const GURL& origin, int change_flags); 73 void NotifyGranted(const GURL& origin, int change_flags);
74 void NotifyRevoked(const GURL& origin, int change_flags); 74 void NotifyRevoked(const GURL& origin, int change_flags);
75 void NotifyCleared(); 75 void NotifyCleared();
76 76
77 ObserverList<Observer> observers_; 77 base::ObserverList<Observer> observers_;
78 }; 78 };
79 79
80 } // namespace storage 80 } // namespace storage
81 81
82 #endif // STORAGE_BROWSER_QUOTA_SPECIAL_STORAGE_POLICY_H_ 82 #endif // STORAGE_BROWSER_QUOTA_SPECIAL_STORAGE_POLICY_H_
OLDNEW
« no previous file with comments | « storage/browser/database/database_tracker.h ('k') | sync/engine/directory_commit_contribution_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698