OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_SUPERVISED_USER_ERROR_PAGE_SUPERVISED_USER_ERROR_PAGE_H_ | 5 #ifndef COMPONENTS_SUPERVISED_USER_ERROR_PAGE_SUPERVISED_USER_ERROR_PAGE_H_ |
6 #define COMPONENTS_SUPERVISED_USER_ERROR_PAGE_SUPERVISED_USER_ERROR_PAGE_H_ | 6 #define COMPONENTS_SUPERVISED_USER_ERROR_PAGE_SUPERVISED_USER_ERROR_PAGE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 namespace supervised_user_error_page { | 10 namespace supervised_user_error_page { |
11 | 11 |
| 12 // A Java counterpart will be generated for this enum. |
| 13 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.components.supervisedusererrorpage |
12 enum FilteringBehaviorReason { | 14 enum FilteringBehaviorReason { |
13 DEFAULT, | 15 DEFAULT = 0, |
14 ASYNC_CHECKER, | 16 ASYNC_CHECKER = 1, |
15 BLACKLIST, | 17 BLACKLIST = 2, |
16 MANUAL, | 18 MANUAL = 3, |
17 WHITELIST | 19 WHITELIST = 4, |
| 20 NOT_SIGNED_IN = 5, |
18 }; | 21 }; |
19 | 22 |
20 int GetBlockMessageID( | 23 int GetBlockMessageID( |
21 supervised_user_error_page::FilteringBehaviorReason reason, | 24 supervised_user_error_page::FilteringBehaviorReason reason, |
22 bool is_child_account, | 25 bool is_child_account, |
23 bool single_parent); | 26 bool single_parent); |
24 | 27 |
25 std::string BuildHtml(bool allow_access_requests, | 28 std::string BuildHtml(bool allow_access_requests, |
26 const std::string& profile_image_url, | 29 const std::string& profile_image_url, |
27 const std::string& profile_image_url2, | 30 const std::string& profile_image_url2, |
28 const std::string& custodian, | 31 const std::string& custodian, |
29 const std::string& custodian_email, | 32 const std::string& custodian_email, |
30 const std::string& second_custodian, | 33 const std::string& second_custodian, |
31 const std::string& second_custodian_email, | 34 const std::string& second_custodian_email, |
32 bool is_child_account, | 35 bool is_child_account, |
33 FilteringBehaviorReason reason, | 36 FilteringBehaviorReason reason, |
34 const std::string& app_locale); | 37 const std::string& app_locale); |
35 | 38 |
36 } // namespace supervised_user_error_page | 39 } // namespace supervised_user_error_page |
37 | 40 |
38 #endif // COMPONENTS_SUPERVISED_USER_ERROR_PAGE_SUPERVISED_USER_ERROR_PAGE_H_ | 41 #endif // COMPONENTS_SUPERVISED_USER_ERROR_PAGE_SUPERVISED_USER_ERROR_PAGE_H_ |
OLD | NEW |