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

Side by Side Diff: ios/net/cookies/cookie_store_ios.mm

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
« no previous file with comments | « gpu/command_buffer/service/valuebuffer_manager.h ('k') | ios/web/active_state_manager_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/valuebuffer_manager.h ('k') | ios/web/active_state_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698