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

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

Issue 1452603002: Supervised user web restrictions content provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to more comments Created 5 years 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 17 matching lines...) Expand all
28 public SupervisedUserServiceObserver { 28 public SupervisedUserServiceObserver {
29 public: 29 public:
30 // Interstitial type, used for testing. 30 // Interstitial type, used for testing.
31 static content::InterstitialPageDelegate::TypeID kTypeForTesting; 31 static content::InterstitialPageDelegate::TypeID kTypeForTesting;
32 32
33 static void Show(content::WebContents* web_contents, 33 static void Show(content::WebContents* web_contents,
34 const GURL& url, 34 const GURL& url,
35 SupervisedUserURLFilter::FilteringBehaviorReason reason, 35 SupervisedUserURLFilter::FilteringBehaviorReason reason,
36 const base::Callback<void(bool)>& callback); 36 const base::Callback<void(bool)>& callback);
37 37
38 static std::string GetHTMLContents(
39 Profile* profile,
40 SupervisedUserURLFilter::FilteringBehaviorReason reason);
41
38 private: 42 private:
39 SupervisedUserInterstitial( 43 SupervisedUserInterstitial(
40 content::WebContents* web_contents, 44 content::WebContents* web_contents,
41 const GURL& url, 45 const GURL& url,
42 SupervisedUserURLFilter::FilteringBehaviorReason reason, 46 SupervisedUserURLFilter::FilteringBehaviorReason reason,
43 const base::Callback<void(bool)>& callback); 47 const base::Callback<void(bool)>& callback);
44 ~SupervisedUserInterstitial() override; 48 ~SupervisedUserInterstitial() override;
45 49
46 bool Init(); 50 bool Init();
47 51
(...skipping 30 matching lines...) Expand all
78 SupervisedUserURLFilter::FilteringBehaviorReason reason_; 82 SupervisedUserURLFilter::FilteringBehaviorReason reason_;
79 83
80 base::Callback<void(bool)> callback_; 84 base::Callback<void(bool)> callback_;
81 85
82 base::WeakPtrFactory<SupervisedUserInterstitial> weak_ptr_factory_; 86 base::WeakPtrFactory<SupervisedUserInterstitial> weak_ptr_factory_;
83 87
84 DISALLOW_COPY_AND_ASSIGN(SupervisedUserInterstitial); 88 DISALLOW_COPY_AND_ASSIGN(SupervisedUserInterstitial);
85 }; 89 };
86 90
87 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_INTERSTITIAL_H_ 91 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_INTERSTITIAL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698