Chromium Code Reviews| Index: chrome/browser/managed_mode/permission_request_creator.h |
| diff --git a/chrome/browser/managed_mode/permission_request_creator.h b/chrome/browser/managed_mode/permission_request_creator.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..d0e231bf174012e36b03cf53b6b1488e4d67ee51 |
| --- /dev/null |
| +++ b/chrome/browser/managed_mode/permission_request_creator.h |
| @@ -0,0 +1,52 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_MANAGED_MODE_PERMISSION_REQUEST_CREATOR_H_ |
| +#define CHROME_BROWSER_MANAGED_MODE_PERMISSION_REQUEST_CREATOR_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/callback_forward.h" |
| +#include "base/compiler_specific.h" |
| +#include "base/memory/scoped_ptr.h" |
| +#include "base/strings/string16.h" |
| + |
| +class GoogleServiceAuthError; |
| +class ManagedUserSettingsService; |
| +class ManagedUserSharedSettingsService; |
| +class ManagedUserSigninManagerWrapper; |
| +class OAuth2TokenService; |
| +class Profile; |
| + |
| +namespace net { |
| +class URLRequestContextGetter; |
| +} |
| + |
| +class PermissionRequestCreator { |
| + public: |
| + typedef base::Callback<void(const GoogleServiceAuthError& /* error */)> |
| + PermissionRequestCallback; |
| + |
| + static scoped_ptr<PermissionRequestCreator> Create( |
| + OAuth2TokenService* oauth2_token_service, |
| + scoped_ptr<ManagedUserSigninManagerWrapper>, |
| + net::URLRequestContextGetter* context); |
| + |
| + static scoped_ptr<PermissionRequestCreator> CreateWithProfile( |
|
Bernhard Bauer
2014/05/16 15:22:50
Let's move these to the corresponding implementati
Adrian Kuegel
2014/05/19 11:00:53
Done.
|
| + Profile* profile); |
| + |
| + static scoped_ptr<PermissionRequestCreator> CreateWithSettingsService( |
| + ManagedUserSettingsService* settings_service, |
| + ManagedUserSharedSettingsService* shared_settings_service, |
| + const std::string& name, |
| + const std::string& managed_user_id); |
| + |
| + virtual ~PermissionRequestCreator() {} |
| + |
| + virtual void CreatePermissionRequest( |
| + const std::string& url_requested, |
| + const PermissionRequestCallback& callback) = 0; |
| +}; |
| + |
| +#endif // CHROME_BROWSER_MANAGED_MODE_PERMISSION_REQUEST_CREATOR_H_ |