Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Side by Side Diff: chrome/browser/supervised_user/supervised_user_interstitial.h

Issue 1552333002: Resubmit Supervised user web restrictions content provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Manual rebase to fix merge problem Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 18 matching lines...) Expand all
29 public SupervisedUserServiceObserver { 29 public SupervisedUserServiceObserver {
30 public: 30 public:
31 // Interstitial type, used for testing. 31 // Interstitial type, used for testing.
32 static content::InterstitialPageDelegate::TypeID kTypeForTesting; 32 static content::InterstitialPageDelegate::TypeID kTypeForTesting;
33 33
34 static void Show(content::WebContents* web_contents, 34 static void Show(content::WebContents* web_contents,
35 const GURL& url, 35 const GURL& url,
36 SupervisedUserURLFilter::FilteringBehaviorReason reason, 36 SupervisedUserURLFilter::FilteringBehaviorReason reason,
37 const base::Callback<void(bool)>& callback); 37 const base::Callback<void(bool)>& callback);
38 38
39 static std::string GetHTMLContents(
40 Profile* profile,
41 SupervisedUserURLFilter::FilteringBehaviorReason reason);
42
39 private: 43 private:
40 SupervisedUserInterstitial( 44 SupervisedUserInterstitial(
41 content::WebContents* web_contents, 45 content::WebContents* web_contents,
42 const GURL& url, 46 const GURL& url,
43 SupervisedUserURLFilter::FilteringBehaviorReason reason, 47 SupervisedUserURLFilter::FilteringBehaviorReason reason,
44 const base::Callback<void(bool)>& callback); 48 const base::Callback<void(bool)>& callback);
45 ~SupervisedUserInterstitial() override; 49 ~SupervisedUserInterstitial() override;
46 50
47 bool Init(); 51 bool Init();
48 52
(...skipping 30 matching lines...) Expand all
79 SupervisedUserURLFilter::FilteringBehaviorReason reason_; 83 SupervisedUserURLFilter::FilteringBehaviorReason reason_;
80 84
81 base::Callback<void(bool)> callback_; 85 base::Callback<void(bool)> callback_;
82 86
83 base::WeakPtrFactory<SupervisedUserInterstitial> weak_ptr_factory_; 87 base::WeakPtrFactory<SupervisedUserInterstitial> weak_ptr_factory_;
84 88
85 DISALLOW_COPY_AND_ASSIGN(SupervisedUserInterstitial); 89 DISALLOW_COPY_AND_ASSIGN(SupervisedUserInterstitial);
86 }; 90 };
87 91
88 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_INTERSTITIAL_H_ 92 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_INTERSTITIAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698