OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #include "ios/net/cookies/cookie_store_ios.h" | 5 #include "ios/net/cookies/cookie_store_ios.h" |
6 | 6 |
7 #import <Foundation/Foundation.h> | 7 #import <Foundation/Foundation.h> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 void RemoveObserver(CookieNotificationObserver* obs); | 53 void RemoveObserver(CookieNotificationObserver* obs); |
54 | 54 |
55 // Notify the observers. | 55 // Notify the observers. |
56 void NotifyCookiesChanged(); | 56 void NotifyCookiesChanged(); |
57 void NotifyCookiePolicyChanged(); | 57 void NotifyCookiePolicyChanged(); |
58 | 58 |
59 private: | 59 private: |
60 NotificationTrampoline(); | 60 NotificationTrampoline(); |
61 ~NotificationTrampoline(); | 61 ~NotificationTrampoline(); |
62 | 62 |
63 ObserverList<CookieNotificationObserver> observer_list_; | 63 base::ObserverList<CookieNotificationObserver> observer_list_; |
64 | 64 |
65 DISALLOW_COPY_AND_ASSIGN(NotificationTrampoline); | 65 DISALLOW_COPY_AND_ASSIGN(NotificationTrampoline); |
66 | 66 |
67 static NotificationTrampoline* g_notification_trampoline; | 67 static NotificationTrampoline* g_notification_trampoline; |
68 }; | 68 }; |
69 | 69 |
70 #pragma mark NotificationTrampoline implementation | 70 #pragma mark NotificationTrampoline implementation |
71 | 71 |
72 NotificationTrampoline* NotificationTrampoline::GetInstance() { | 72 NotificationTrampoline* NotificationTrampoline::GetInstance() { |
73 if (!g_notification_trampoline) | 73 if (!g_notification_trampoline) |
(...skipping 878 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
952 DCHECK(thread_checker_.CalledOnValidThread()); | 952 DCHECK(thread_checker_.CalledOnValidThread()); |
953 return base::Bind(&CookieStoreIOS::UpdateCachesAfterDelete, this, callback); | 953 return base::Bind(&CookieStoreIOS::UpdateCachesAfterDelete, this, callback); |
954 } | 954 } |
955 | 955 |
956 base::Closure CookieStoreIOS::WrapClosure(const base::Closure& callback) { | 956 base::Closure CookieStoreIOS::WrapClosure(const base::Closure& callback) { |
957 DCHECK(thread_checker_.CalledOnValidThread()); | 957 DCHECK(thread_checker_.CalledOnValidThread()); |
958 return base::Bind(&CookieStoreIOS::UpdateCachesAfterClosure, this, callback); | 958 return base::Bind(&CookieStoreIOS::UpdateCachesAfterClosure, this, callback); |
959 } | 959 } |
960 | 960 |
961 } // namespace net | 961 } // namespace net |
OLD | NEW |