| 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 #include "base/strings/string16.h" | |
| 11 | |
| 12 namespace supervised_user_error_page { | 10 namespace supervised_user_error_page { |
| 13 | 11 |
| 14 enum FilteringBehaviorReason { | 12 enum FilteringBehaviorReason { |
| 15 DEFAULT, | 13 DEFAULT, |
| 16 ASYNC_CHECKER, | 14 ASYNC_CHECKER, |
| 17 BLACKLIST, | 15 BLACKLIST, |
| 18 MANUAL, | 16 MANUAL, |
| 19 WHITELIST | 17 WHITELIST |
| 20 }; | 18 }; |
| 21 | 19 |
| 22 int GetBlockMessageID( | 20 int GetBlockMessageID( |
| 23 supervised_user_error_page::FilteringBehaviorReason reason, | 21 supervised_user_error_page::FilteringBehaviorReason reason, |
| 24 bool is_child_account, | 22 bool is_child_account, |
| 25 bool single_parent); | 23 bool single_parent); |
| 26 | 24 |
| 27 std::string BuildHtml(bool allow_access_requests, | 25 std::string BuildHtml(bool allow_access_requests, |
| 28 const std::string& profile_image_url, | 26 const std::string& profile_image_url, |
| 29 const std::string& profile_image_url2, | 27 const std::string& profile_image_url2, |
| 30 const base::string16& custodian, | 28 const std::string& custodian, |
| 31 const base::string16& custodian_email, | 29 const std::string& custodian_email, |
| 32 const base::string16& second_custodian, | 30 const std::string& second_custodian, |
| 33 const base::string16& second_custodian_email, | 31 const std::string& second_custodian_email, |
| 34 bool is_child_account, | 32 bool is_child_account, |
| 35 FilteringBehaviorReason reason, | 33 FilteringBehaviorReason reason, |
| 36 const std::string& app_locale); | 34 const std::string& app_locale); |
| 37 | 35 |
| 38 } // namespace supervised_user_error_page | 36 } // namespace supervised_user_error_page |
| 39 | 37 |
| 40 #endif // COMPONENTS_SUPERVISED_USER_ERROR_PAGE_SUPERVISED_USER_ERROR_PAGE_H_ | 38 #endif // COMPONENTS_SUPERVISED_USER_ERROR_PAGE_SUPERVISED_USER_ERROR_PAGE_H_ |
| OLD | NEW |