OLD | NEW |
---|---|
(Empty) | |
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. | |
4 | |
5 #ifndef CHROME_BROWSER_MANAGED_MODE_PERMISSION_REQUEST_CREATOR_H_ | |
6 #define CHROME_BROWSER_MANAGED_MODE_PERMISSION_REQUEST_CREATOR_H_ | |
7 | |
8 #include <string> | |
9 | |
10 #include "base/callback_forward.h" | |
11 #include "base/compiler_specific.h" | |
12 #include "base/memory/scoped_ptr.h" | |
13 #include "base/strings/string16.h" | |
14 | |
15 class GoogleServiceAuthError; | |
16 class OAuth2TokenService; | |
17 | |
18 namespace net { | |
19 class URLRequestContextGetter; | |
20 } | |
21 | |
22 class PermissionRequestCreator { | |
23 public: | |
24 typedef base::Callback<void(const GoogleServiceAuthError& /* error */)> | |
25 PermissionRequestCallback; | |
26 | |
27 static scoped_ptr<PermissionRequestCreator> Create( | |
28 OAuth2TokenService* oauth2_token_service, | |
29 const std::string& account_id, | |
30 net::URLRequestContextGetter* context); | |
31 | |
32 virtual ~PermissionRequestCreator(); | |
33 | |
34 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.
| |
35 const std::string& url_requested, | |
36 const PermissionRequestCallback& callback) = 0; | |
37 }; | |
38 | |
39 #endif // CHROME_BROWSER_MANAGED_MODE_PERMISSION_REQUEST_CREATOR_H_ | |
OLD | NEW |