| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_EVENT_RO
UTER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_EVENT_RO
UTER_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_EVENT_RO
UTER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_EVENT_RO
UTER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/autofill/core/browser/personal_data_manager_observer.h" | 9 #include "components/autofill/core/browser/personal_data_manager_observer.h" |
| 10 #include "components/keyed_service/core/keyed_service.h" | 10 #include "components/keyed_service/core/keyed_service.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // PersonalDataManagerObserver implementation. | 41 // PersonalDataManagerObserver implementation. |
| 42 void OnPersonalDataChanged() override; | 42 void OnPersonalDataChanged() override; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 content::BrowserContext* context_; | 45 content::BrowserContext* context_; |
| 46 | 46 |
| 47 EventRouter* event_router_; | 47 EventRouter* event_router_; |
| 48 | 48 |
| 49 autofill::PersonalDataManager* personal_data_; | 49 autofill::PersonalDataManager* personal_data_; |
| 50 | 50 |
| 51 // Whether this class is currently listening for changes to |personal_data_|. |
| 52 bool listening_; |
| 53 |
| 51 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateEventRouter); | 54 DISALLOW_COPY_AND_ASSIGN(AutofillPrivateEventRouter); |
| 52 }; | 55 }; |
| 53 | 56 |
| 54 } // namespace extensions | 57 } // namespace extensions |
| 55 | 58 |
| 56 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_EVENT
_ROUTER_H_ | 59 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOFILL_PRIVATE_AUTOFILL_PRIVATE_EVENT
_ROUTER_H_ |
| OLD | NEW |