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

Side by Side Diff: components/autofill/core/browser/webdata/autofill_webdata_service.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 COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 protected: 123 protected:
124 ~AutofillWebDataService() override; 124 ~AutofillWebDataService() override;
125 125
126 virtual void NotifyAutofillMultipleChangedOnUIThread(); 126 virtual void NotifyAutofillMultipleChangedOnUIThread();
127 127
128 base::WeakPtr<AutofillWebDataService> AsWeakPtr() { 128 base::WeakPtr<AutofillWebDataService> AsWeakPtr() {
129 return weak_ptr_factory_.GetWeakPtr(); 129 return weak_ptr_factory_.GetWeakPtr();
130 } 130 }
131 131
132 private: 132 private:
133 ObserverList<AutofillWebDataServiceObserverOnUIThread> ui_observer_list_; 133 base::ObserverList<AutofillWebDataServiceObserverOnUIThread>
134 ui_observer_list_;
134 135
135 // The task runner that this class uses as its UI thread. 136 // The task runner that this class uses as its UI thread.
136 scoped_refptr<base::SingleThreadTaskRunner> ui_thread_; 137 scoped_refptr<base::SingleThreadTaskRunner> ui_thread_;
137 138
138 // The task runner that this class uses as its DB thread. 139 // The task runner that this class uses as its DB thread.
139 scoped_refptr<base::SingleThreadTaskRunner> db_thread_; 140 scoped_refptr<base::SingleThreadTaskRunner> db_thread_;
140 141
141 scoped_refptr<AutofillWebDataBackendImpl> autofill_backend_; 142 scoped_refptr<AutofillWebDataBackendImpl> autofill_backend_;
142 143
143 // This factory is used on the UI thread. All vended weak pointers are 144 // This factory is used on the UI thread. All vended weak pointers are
144 // invalidated in ShutdownOnUIThread(). 145 // invalidated in ShutdownOnUIThread().
145 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_; 146 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_;
146 147
147 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService); 148 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService);
148 }; 149 };
149 150
150 } // namespace autofill 151 } // namespace autofill
151 152
152 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ 153 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698