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 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 | 111 |
112 private: | 112 private: |
113 ObserverList<AutofillWebDataServiceObserverOnUIThread> ui_observer_list_; | 113 ObserverList<AutofillWebDataServiceObserverOnUIThread> ui_observer_list_; |
114 | 114 |
115 // The MessageLoopProxy that this class uses as its UI thread. | 115 // The MessageLoopProxy that this class uses as its UI thread. |
116 scoped_refptr<base::MessageLoopProxy> ui_thread_; | 116 scoped_refptr<base::MessageLoopProxy> ui_thread_; |
117 | 117 |
118 // The MessageLoopProxy that this class uses as its DB thread. | 118 // The MessageLoopProxy that this class uses as its DB thread. |
119 scoped_refptr<base::MessageLoopProxy> db_thread_; | 119 scoped_refptr<base::MessageLoopProxy> db_thread_; |
120 | 120 |
| 121 scoped_refptr<AutofillWebDataBackendImpl> autofill_backend_; |
| 122 |
121 // This factory is used on the UI thread. All vended weak pointers are | 123 // This factory is used on the UI thread. All vended weak pointers are |
122 // invalidated in ShutdownOnUIThread(). | 124 // invalidated in ShutdownOnUIThread(). |
123 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_; | 125 base::WeakPtrFactory<AutofillWebDataService> weak_ptr_factory_; |
124 | 126 |
125 scoped_refptr<AutofillWebDataBackendImpl> autofill_backend_; | |
126 | |
127 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService); | 127 DISALLOW_COPY_AND_ASSIGN(AutofillWebDataService); |
128 }; | 128 }; |
129 | 129 |
130 } // namespace autofill | 130 } // namespace autofill |
131 | 131 |
132 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ | 132 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_WEBDATA_AUTOFILL_WEBDATA_SERVICE_H_ |
OLD | NEW |