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