OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |