| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_WEBUI_SUPERVISED_USER_INTERNALS_MESSAGE_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SUPERVISED_USER_INTERNALS_MESSAGE_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_SUPERVISED_USER_INTERNALS_MESSAGE_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SUPERVISED_USER_INTERNALS_MESSAGE_HANDLER_H_ |
| 7 | 7 |
| 8 #include "base/callback_list.h" | 8 #include "base/callback_list.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 const std::map<std::string, base::string16>& whitelists, | 49 const std::map<std::string, base::string16>& whitelists, |
| 50 SupervisedUserURLFilter::FilteringBehavior behavior, | 50 SupervisedUserURLFilter::FilteringBehavior behavior, |
| 51 supervised_user_error_page::FilteringBehaviorReason reason, | 51 supervised_user_error_page::FilteringBehaviorReason reason, |
| 52 bool uncertain); | 52 bool uncertain); |
| 53 | 53 |
| 54 void OnURLChecked(const GURL& url, | 54 void OnURLChecked(const GURL& url, |
| 55 SupervisedUserURLFilter::FilteringBehavior behavior, | 55 SupervisedUserURLFilter::FilteringBehavior behavior, |
| 56 supervised_user_error_page::FilteringBehaviorReason reason, | 56 supervised_user_error_page::FilteringBehaviorReason reason, |
| 57 bool uncertain); | 57 bool uncertain); |
| 58 | 58 |
| 59 scoped_ptr<base::CallbackList<void( | 59 std::unique_ptr< |
| 60 const base::DictionaryValue*)>::Subscription> user_settings_subscription_; | 60 base::CallbackList<void(const base::DictionaryValue*)>::Subscription> |
| 61 user_settings_subscription_; |
| 61 | 62 |
| 62 scoped_refptr<IOThreadHelper> io_thread_helper_; | 63 scoped_refptr<IOThreadHelper> io_thread_helper_; |
| 63 | 64 |
| 64 base::WeakPtrFactory<SupervisedUserInternalsMessageHandler> weak_factory_; | 65 base::WeakPtrFactory<SupervisedUserInternalsMessageHandler> weak_factory_; |
| 65 | 66 |
| 66 DISALLOW_COPY_AND_ASSIGN(SupervisedUserInternalsMessageHandler); | 67 DISALLOW_COPY_AND_ASSIGN(SupervisedUserInternalsMessageHandler); |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 #endif // CHROME_BROWSER_UI_WEBUI_SUPERVISED_USER_INTERNALS_MESSAGE_HANDLER_H_ | 70 #endif // CHROME_BROWSER_UI_WEBUI_SUPERVISED_USER_INTERNALS_MESSAGE_HANDLER_H_ |
| OLD | NEW |