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

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

Issue 638953002: Supervised user interstitial: Small style changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « chrome/browser/resources/supervised_user_block_interstitial.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 27 matching lines...) Expand all
38 bool Init(); 38 bool Init();
39 39
40 // InterstitialPageDelegate implementation. 40 // InterstitialPageDelegate implementation.
41 virtual std::string GetHTMLContents() override; 41 virtual std::string GetHTMLContents() override;
42 virtual void CommandReceived(const std::string& command) override; 42 virtual void CommandReceived(const std::string& command) override;
43 virtual void OnProceed() override; 43 virtual void OnProceed() override;
44 virtual void OnDontProceed() override; 44 virtual void OnDontProceed() override;
45 45
46 // SupervisedUserServiceObserver implementation. 46 // SupervisedUserServiceObserver implementation.
47 virtual void OnURLFilterChanged() override; 47 virtual void OnURLFilterChanged() override;
48 // TODO(treib): Also listen to OnCustodianInfoChanged and update as required.
48 49
49 // Returns whether the blocked URL is now allowed. Called initially before the 50 // Returns whether the blocked URL is now allowed. Called initially before the
50 // interstitial is shown (to catch race conditions), or when the URL filtering 51 // interstitial is shown (to catch race conditions), or when the URL filtering
51 // prefs change. 52 // prefs change.
52 bool ShouldProceed(); 53 bool ShouldProceed();
53 54
54 void DispatchContinueRequest(bool continue_request); 55 void DispatchContinueRequest(bool continue_request);
55 56
56 // Owns the interstitial, which owns us. 57 // Owns the interstitial, which owns us.
57 content::WebContents* web_contents_; 58 content::WebContents* web_contents_;
58 59
59 Profile* profile_; 60 Profile* profile_;
60 61
61 content::InterstitialPage* interstitial_page_; // Owns us. 62 content::InterstitialPage* interstitial_page_; // Owns us.
62 63
63 GURL url_; 64 GURL url_;
64 65
65 base::Callback<void(bool)> callback_; 66 base::Callback<void(bool)> callback_;
66 67
67 DISALLOW_COPY_AND_ASSIGN(SupervisedUserInterstitial); 68 DISALLOW_COPY_AND_ASSIGN(SupervisedUserInterstitial);
68 }; 69 };
69 70
70 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_INTERSTITIAL_H_ 71 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_INTERSTITIAL_H_
OLDNEW
« no previous file with comments | « chrome/browser/resources/supervised_user_block_interstitial.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698