OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UI_LOGIN_LOGIN_HANDLER_TEST_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_TEST_UTILS_H_ |
6 #define CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_TEST_UTILS_H_ | 6 #define CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_TEST_UTILS_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 void Observe(int type, | 25 void Observe(int type, |
26 const content::NotificationSource& source, | 26 const content::NotificationSource& source, |
27 const content::NotificationDetails& details) override; | 27 const content::NotificationDetails& details) override; |
28 | 28 |
29 void AddHandler(LoginHandler* handler); | 29 void AddHandler(LoginHandler* handler); |
30 | 30 |
31 void RemoveHandler(LoginHandler* handler); | 31 void RemoveHandler(LoginHandler* handler); |
32 | 32 |
33 void Register(const content::NotificationSource& source); | 33 void Register(const content::NotificationSource& source); |
| 34 void UnregisterAll(); |
34 | 35 |
35 const std::list<LoginHandler*>& handlers() const { return handlers_; } | 36 const std::list<LoginHandler*>& handlers() const { return handlers_; } |
36 | 37 |
37 int auth_needed_count() const { return auth_needed_count_; } | 38 int auth_needed_count() const { return auth_needed_count_; } |
38 int auth_supplied_count() const { return auth_supplied_count_; } | 39 int auth_supplied_count() const { return auth_supplied_count_; } |
39 int auth_cancelled_count() const { return auth_cancelled_count_; } | 40 int auth_cancelled_count() const { return auth_cancelled_count_; } |
40 | 41 |
41 private: | 42 private: |
42 std::list<LoginHandler*> handlers_; | 43 std::list<LoginHandler*> handlers_; |
43 | 44 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 const content::NotificationSource& source, | 96 const content::NotificationSource& source, |
96 const content::NotificationDetails& details) override; | 97 const content::NotificationDetails& details) override; |
97 | 98 |
98 private: | 99 private: |
99 int remaining_notification_count_; // Number of notifications remaining. | 100 int remaining_notification_count_; // Number of notifications remaining. |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(WindowedLoadStopObserver); | 102 DISALLOW_COPY_AND_ASSIGN(WindowedLoadStopObserver); |
102 }; | 103 }; |
103 | 104 |
104 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_TEST_UTILS_H_ | 105 #endif // CHROME_BROWSER_UI_LOGIN_LOGIN_HANDLER_TEST_UTILS_H_ |
OLD | NEW |