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_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ |
6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ | 6 #define CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 25 matching lines...) Expand all Loading... |
36 class SupervisedUserBlacklistDownloader; | 36 class SupervisedUserBlacklistDownloader; |
37 class SupervisedUserRegistrationUtility; | 37 class SupervisedUserRegistrationUtility; |
38 class SupervisedUserServiceObserver; | 38 class SupervisedUserServiceObserver; |
39 class SupervisedUserSettingsService; | 39 class SupervisedUserSettingsService; |
40 class SupervisedUserSiteList; | 40 class SupervisedUserSiteList; |
41 class SupervisedUserURLFilter; | 41 class SupervisedUserURLFilter; |
42 class SupervisedUserWhitelistService; | 42 class SupervisedUserWhitelistService; |
43 | 43 |
44 namespace base { | 44 namespace base { |
45 class FilePath; | 45 class FilePath; |
| 46 class Version; |
46 } | 47 } |
47 | 48 |
48 namespace content { | 49 namespace content { |
49 class WebContents; | 50 class WebContents; |
50 } | 51 } |
51 | 52 |
52 namespace extensions { | 53 namespace extensions { |
53 class ExtensionRegistry; | 54 class ExtensionRegistry; |
54 } | 55 } |
55 | 56 |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 | 114 |
114 // Whether the user can request to get access to blocked URLs or to new | 115 // Whether the user can request to get access to blocked URLs or to new |
115 // extensions. | 116 // extensions. |
116 bool AccessRequestsEnabled(); | 117 bool AccessRequestsEnabled(); |
117 | 118 |
118 // Adds an access request for the given URL. | 119 // Adds an access request for the given URL. |
119 void AddURLAccessRequest(const GURL& url, const SuccessCallback& callback); | 120 void AddURLAccessRequest(const GURL& url, const SuccessCallback& callback); |
120 | 121 |
121 // Adds an update request for the given WebStore item (App/Extension). | 122 // Adds an update request for the given WebStore item (App/Extension). |
122 void AddExtensionUpdateRequest(const std::string& extension_id, | 123 void AddExtensionUpdateRequest(const std::string& extension_id, |
| 124 const base::Version& version, |
123 const SuccessCallback& callback); | 125 const SuccessCallback& callback); |
124 | 126 |
125 // Returns the email address of the custodian. | 127 // Returns the email address of the custodian. |
126 std::string GetCustodianEmailAddress() const; | 128 std::string GetCustodianEmailAddress() const; |
127 | 129 |
128 // Returns the name of the custodian, or the email address if the name is | 130 // Returns the name of the custodian, or the email address if the name is |
129 // empty. | 131 // empty. |
130 std::string GetCustodianName() const; | 132 std::string GetCustodianName() const; |
131 | 133 |
132 // Returns the email address of the second custodian, or the empty string | 134 // Returns the email address of the second custodian, or the empty string |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
354 | 356 |
355 // Used to create permission requests. | 357 // Used to create permission requests. |
356 ScopedVector<PermissionRequestCreator> permissions_creators_; | 358 ScopedVector<PermissionRequestCreator> permissions_creators_; |
357 | 359 |
358 ObserverList<SupervisedUserServiceObserver> observer_list_; | 360 ObserverList<SupervisedUserServiceObserver> observer_list_; |
359 | 361 |
360 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; | 362 base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; |
361 }; | 363 }; |
362 | 364 |
363 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ | 365 #endif // CHROME_BROWSER_SUPERVISED_USER_SUPERVISED_USER_SERVICE_H_ |
OLD | NEW |