Adding instrumentation to locate the source of jankiness
[chromium-blink-merge.git] / chrome / browser / supervised_user / permission_request_creator_sync.h
blobf269bc6c4a70f3acd56755343ee0b9b171e70f10
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_SUPERVISED_USER_PERMISSION_REQUEST_CREATOR_SYNC_H_
6 #define CHROME_BROWSER_SUPERVISED_USER_PERMISSION_REQUEST_CREATOR_SYNC_H_
8 #include <string>
10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/supervised_user/permission_request_creator.h"
13 class ProfileSyncService;
14 class SupervisedUserSettingsService;
15 class SupervisedUserSharedSettingsService;
17 class PermissionRequestCreatorSync : public PermissionRequestCreator {
18 public:
19 PermissionRequestCreatorSync(
20 SupervisedUserSettingsService* settings_service,
21 SupervisedUserSharedSettingsService* shared_settings_service,
22 ProfileSyncService* sync_service,
23 const std::string& name,
24 const std::string& supervised_user_id);
25 virtual ~PermissionRequestCreatorSync();
27 // PermissionRequestCreator implementation:
28 virtual bool IsEnabled() const override;
29 virtual void CreatePermissionRequest(
30 const GURL& url_requested,
31 const SuccessCallback& callback) override;
33 private:
34 SupervisedUserSettingsService* settings_service_;
35 SupervisedUserSharedSettingsService* shared_settings_service_;
36 ProfileSyncService* sync_service_;
37 std::string name_;
38 std::string supervised_user_id_;
41 #endif // CHROME_BROWSER_SUPERVISED_USER_PERMISSION_REQUEST_CREATOR_SYNC_H_