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..44260b3046a9a328f5dc8180918f313bb4573c12 |
| --- /dev/null |
| +++ b/chrome/browser/managed_mode/permission_request_creator.h |
| @@ -0,0 +1,39 @@ |
| +// 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 OAuth2TokenService; |
| + |
| +namespace net { |
| +class URLRequestContextGetter; |
| +} |
| + |
| +class PermissionRequestCreator { |
| + public: |
| + typedef base::Callback<void(const GoogleServiceAuthError& /* error */)> |
| + PermissionRequestCallback; |
| + |
| + static scoped_ptr<PermissionRequestCreator> Create( |
| + OAuth2TokenService* oauth2_token_service, |
| + const std::string& account_id, |
| + net::URLRequestContextGetter* context); |
| + |
| + virtual ~PermissionRequestCreator(); |
| + |
| + virtual void CreatePermissionRequest( |
|
Bernhard Bauer
2014/05/15 13:56:40
Are you planning on adding a mock implementation f
Adrian Kuegel
2014/05/15 14:35:32
I assume we will need a mock implementation for te
Bernhard Bauer
2014/05/15 15:58:18
OK. Another thing that we could do actually is to
Adrian Kuegel
2014/05/16 13:21:57
Would the implementation for that then be in a sep
Bernhard Bauer
2014/05/16 13:52:36
No, I think it should be a separate file, because
Adrian Kuegel
2014/05/16 14:57:19
Done.
Bernhard Bauer
2014/05/16 15:22:50
^^^ Note this part.
Sorry if I was not being clea
Adrian Kuegel
2014/05/19 11:00:53
Done.
|
| + const std::string& url_requested, |
| + const PermissionRequestCallback& callback) = 0; |
| +}; |
| + |
| +#endif // CHROME_BROWSER_MANAGED_MODE_PERMISSION_REQUEST_CREATOR_H_ |