| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SUPERVISED_USER_SUPERVISED_USER_INTERSTITIAL_H_ | 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_INTERSTITIAL_H_ |
| 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_INTERSTITIAL_H_ | 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_INTERSTITIAL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 SupervisedUserInterstitial( | 46 SupervisedUserInterstitial( |
| 47 content::WebContents* web_contents, | 47 content::WebContents* web_contents, |
| 48 const GURL& url, | 48 const GURL& url, |
| 49 supervised_user_error_page::FilteringBehaviorReason reason, | 49 supervised_user_error_page::FilteringBehaviorReason reason, |
| 50 bool initial_page_load, | 50 bool initial_page_load, |
| 51 const base::Callback<void(bool)>& callback); | 51 const base::Callback<void(bool)>& callback); |
| 52 ~SupervisedUserInterstitial() override; | 52 ~SupervisedUserInterstitial() override; |
| 53 | 53 |
| 54 bool Init(); | 54 void Init(); |
| 55 | 55 |
| 56 // InterstitialPageDelegate implementation. | 56 // InterstitialPageDelegate implementation. |
| 57 std::string GetHTMLContents() override; | 57 std::string GetHTMLContents() override; |
| 58 void CommandReceived(const std::string& command) override; | 58 void CommandReceived(const std::string& command) override; |
| 59 void OnProceed() override; | 59 void OnProceed() override; |
| 60 void OnDontProceed() override; | 60 void OnDontProceed() override; |
| 61 content::InterstitialPageDelegate::TypeID GetTypeForTesting() const override; | 61 content::InterstitialPageDelegate::TypeID GetTypeForTesting() const override; |
| 62 | 62 |
| 63 // SupervisedUserServiceObserver implementation. | 63 // SupervisedUserServiceObserver implementation. |
| 64 void OnURLFilterChanged() override; | 64 void OnURLFilterChanged() override; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 95 bool initial_page_load_; | 95 bool initial_page_load_; |
| 96 | 96 |
| 97 base::Callback<void(bool)> callback_; | 97 base::Callback<void(bool)> callback_; |
| 98 | 98 |
| 99 base::WeakPtrFactory<SupervisedUserInterstitial> weak_ptr_factory_; | 99 base::WeakPtrFactory<SupervisedUserInterstitial> weak_ptr_factory_; |
| 100 | 100 |
| 101 DISALLOW_COPY_AND_ASSIGN(SupervisedUserInterstitial); | 101 DISALLOW_COPY_AND_ASSIGN(SupervisedUserInterstitial); |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_INTERSTITIAL_H_ | 104 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_INTERSTITIAL_H_ |
| OLD | NEW |