Index: chrome/browser/supervised_user/supervised_user_service.h |
diff --git a/chrome/browser/supervised_user/supervised_user_service.h b/chrome/browser/supervised_user/supervised_user_service.h |
index 7c625867d67568a8719941efa7076b361da31621..e9ae6b17dbceba28f172ab32545dae8945d4a0eb 100644 |
--- a/chrome/browser/supervised_user/supervised_user_service.h |
+++ b/chrome/browser/supervised_user/supervised_user_service.h |
@@ -20,6 +20,7 @@ |
#include "base/scoped_observer.h" |
#include "base/strings/string16.h" |
#include "build/build_config.h" |
+#include "chrome/browser/supervised_user/experimental/safe_search_url_reporter.h" |
#include "chrome/browser/supervised_user/experimental/supervised_user_blacklist.h" |
#include "chrome/browser/supervised_user/supervised_user_url_filter.h" |
#include "chrome/browser/supervised_user/supervised_users.h" |
@@ -120,6 +121,9 @@ class SupervisedUserService : public KeyedService, |
// Adds an access request for the given URL. |
void AddURLAccessRequest(const GURL& url, const SuccessCallback& callback); |
+ // Reports url to the SafeSearch API. |
Marc Treib
2016/03/21 12:32:21
|url| (pipes around the variable name)
I'd also a
atanasova
2016/03/22 15:45:41
Done.
|
+ void ReportUrl(const GURL& url, const SuccessCallback& callback); |
Marc Treib
2016/03/21 12:32:21
nit: ReportURL (capitalized), to be consistent wit
atanasova
2016/03/22 15:45:41
Done.
|
+ |
// Adds an update request for the given WebStore item (App/Extension). |
void AddExtensionUpdateRequest(const std::string& extension_id, |
const base::Version& version, |
@@ -180,6 +184,8 @@ class SupervisedUserService : public KeyedService, |
void AddPermissionRequestCreator( |
scoped_ptr<PermissionRequestCreator> creator); |
+ void SetSafeSearchUrlReporter(scoped_ptr<SafeSearchUrlReporter> creator); |
Marc Treib
2016/03/21 12:32:21
s/creator/reporter/
atanasova
2016/03/22 15:45:41
Done.
|
+ |
// ProfileKeyedService override: |
void Shutdown() override; |
@@ -398,6 +404,9 @@ class SupervisedUserService : public KeyedService, |
// Used to create permission requests. |
ScopedVector<PermissionRequestCreator> permissions_creators_; |
+ // Used to create report url requests. |
Marc Treib
2016/03/21 12:32:21
"Used to report inappropriate URLs to the SafeSear
atanasova
2016/03/22 15:45:41
Done.
|
+ scoped_ptr<SafeSearchUrlReporter> url_reporter_; |
+ |
base::ObserverList<SupervisedUserServiceObserver> observer_list_; |
base::WeakPtrFactory<SupervisedUserService> weak_ptr_factory_; |