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

Side by Side Diff: chrome/browser/ui/webui/supervised_user_internals_message_handler.h

Issue 1300643002: Added user settings to chrome://supervised-user-internals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 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/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/supervised_user/supervised_user_service_observer.h" 10 #include "chrome/browser/supervised_user/supervised_user_service_observer.h"
(...skipping 23 matching lines...) Expand all
34 // SupervisedUserServiceObserver: 34 // SupervisedUserServiceObserver:
35 void OnURLFilterChanged() override; 35 void OnURLFilterChanged() override;
36 36
37 SupervisedUserService* GetSupervisedUserService(); 37 SupervisedUserService* GetSupervisedUserService();
38 38
39 void HandleRegisterForEvents(const base::ListValue* args); 39 void HandleRegisterForEvents(const base::ListValue* args);
40 void HandleGetBasicInfo(const base::ListValue* args); 40 void HandleGetBasicInfo(const base::ListValue* args);
41 void HandleTryURL(const base::ListValue* args); 41 void HandleTryURL(const base::ListValue* args);
42 42
43 void SendBasicInfo(); 43 void SendBasicInfo();
44 void SendSupervisedUserSettings(const base::DictionaryValue* settings);
44 45
45 void OnTryURLResult( 46 void OnTryURLResult(
46 SupervisedUserURLFilter::FilteringBehavior behavior, 47 SupervisedUserURLFilter::FilteringBehavior behavior,
47 SupervisedUserURLFilter::FilteringBehaviorReason reason, 48 SupervisedUserURLFilter::FilteringBehaviorReason reason,
48 bool uncertain); 49 bool uncertain);
49 50
50 void OnURLChecked(const GURL& url, 51 void OnURLChecked(const GURL& url,
51 SupervisedUserURLFilter::FilteringBehavior behavior, 52 SupervisedUserURLFilter::FilteringBehavior behavior,
52 SupervisedUserURLFilter::FilteringBehaviorReason reason, 53 SupervisedUserURLFilter::FilteringBehaviorReason reason,
53 bool uncertain); 54 bool uncertain);
54 55
55 scoped_refptr<IOThreadHelper> io_thread_helper_; 56 scoped_refptr<IOThreadHelper> io_thread_helper_;
56 57
57 base::WeakPtrFactory<SupervisedUserInternalsMessageHandler> weak_factory_; 58 base::WeakPtrFactory<SupervisedUserInternalsMessageHandler> weak_factory_;
58 59
59 DISALLOW_COPY_AND_ASSIGN(SupervisedUserInternalsMessageHandler); 60 DISALLOW_COPY_AND_ASSIGN(SupervisedUserInternalsMessageHandler);
60 }; 61 };
61 62
62 #endif // CHROME_BROWSER_UI_WEBUI_SUPERVISED_USER_INTERNALS_MESSAGE_HANDLER_H_ 63 #endif // CHROME_BROWSER_UI_WEBUI_SUPERVISED_USER_INTERNALS_MESSAGE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698