OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_UITEST_UTIL_H_ | |
6 #define CHROME_BROWSER_AUTOFILL_AUTOFILL_UITEST_UTIL_H_ | |
7 | |
8 #include "chrome/browser/infobars/infobar_service.h" | |
9 #include "components/autofill/core/browser/personal_data_manager_observer.h" | |
10 #include "components/infobars/core/confirm_infobar_delegate.h" | |
11 #include "components/infobars/core/infobar.h" | |
12 | |
13 class Browser; | |
14 | |
15 namespace autofill { | |
16 | |
17 class PersonalDataManager; | |
18 | |
19 class WindowedPersonalDataManagerObserver | |
Evan Stade
2015/01/29 22:20:11
I don't understand what "Windowed" means in this c
bondd
2015/01/30 04:10:35
Done. Moved it to cc file and added class-level co
| |
20 : public PersonalDataManagerObserver, | |
21 public infobars::InfoBarManager::Observer { | |
22 public: | |
23 explicit WindowedPersonalDataManagerObserver(Browser* browser); | |
24 ~WindowedPersonalDataManagerObserver() override; | |
25 | |
26 // PersonalDataManagerObserver: | |
27 void OnPersonalDataChanged() override; | |
28 void OnInsufficientFormData() override; | |
29 | |
30 void Wait(); | |
31 | |
32 private: | |
33 // infobars::InfoBarManager::Observer: | |
34 void OnInfoBarAdded(infobars::InfoBar* infobar) override; | |
35 | |
36 bool alerted_; | |
37 bool has_run_message_loop_; | |
38 Browser* browser_; | |
39 InfoBarService* infobar_service_; | |
Evan Stade
2015/01/29 22:20:11
forward declare this instead of including
bondd
2015/01/30 04:10:35
Acknowledged. No longer necessary after moving cla
| |
40 | |
41 DISALLOW_COPY_AND_ASSIGN(WindowedPersonalDataManagerObserver); | |
42 }; | |
43 | |
44 PersonalDataManager* GetPersonalDataManager(Browser* browser); | |
45 void CreateTestProfile(Browser* browser); | |
46 | |
47 } // namespace autofill | |
48 | |
49 #endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_UITEST_UTIL_H_ | |
OLD | NEW |