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_WEB_RESOURCE_EULA_ACCEPTED_NOTIFIER_H_ | 5 #ifndef COMPONENTS_WEB_RESOURCE_EULA_ACCEPTED_NOTIFIER_H_ |
6 #define COMPONENTS_WEB_RESOURCE_EULA_ACCEPTED_NOTIFIER_H_ | 6 #define COMPONENTS_WEB_RESOURCE_EULA_ACCEPTED_NOTIFIER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/prefs/pref_change_registrar.h" | 9 #include "components/prefs/pref_change_registrar.h" |
10 | 10 |
11 class PrefService; | 11 class PrefService; |
12 | 12 |
13 namespace web_resource { | 13 namespace web_resource { |
14 | 14 |
15 // Helper class for querying the EULA accepted state and receiving a | 15 // Helper class for querying the EULA accepted state and receiving a |
16 // notification when the EULA is accepted. | 16 // notification when the EULA is accepted. |
17 class EulaAcceptedNotifier { | 17 class EulaAcceptedNotifier { |
18 public: | 18 public: |
19 // Observes EULA accepted state changes. | 19 // Observes EULA accepted state changes. |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 | 54 |
55 // Observer of the EULA accepted notification. | 55 // Observer of the EULA accepted notification. |
56 Observer* observer_; | 56 Observer* observer_; |
57 | 57 |
58 DISALLOW_COPY_AND_ASSIGN(EulaAcceptedNotifier); | 58 DISALLOW_COPY_AND_ASSIGN(EulaAcceptedNotifier); |
59 }; | 59 }; |
60 | 60 |
61 } // namespace web_resource | 61 } // namespace web_resource |
62 | 62 |
63 #endif // COMPONENTS_WEB_RESOURCE_EULA_ACCEPTED_NOTIFIER_H_ | 63 #endif // COMPONENTS_WEB_RESOURCE_EULA_ACCEPTED_NOTIFIER_H_ |
OLD | NEW |