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 REMOTING_IOS_AUTHORIZE_H_
6 #define REMOTING_IOS_AUTHORIZE_H_
8 #import <UIKit/UIKit.h>
10 // TODO (aboone) This include is for The Google Toolbox for Mac OAuth 2
11 // https://code.google.com/p/gtm-oauth2/ This may need to be added as a
12 // third-party or locate the proper project in Chromium.
13 #import "GTMOAuth2Authentication.h"
15 @interface Authorize
: NSObject
17 + (GTMOAuth2Authentication
*)getAnyExistingAuthorization
;
19 + (void)beginRequest
:(GTMOAuth2Authentication
*)authorization
21 didFinishSelector
:(SEL
)sel
;
23 + (void)appendCredentials
:(NSMutableURLRequest
*)request
;
25 + (UINavigationController
*)createLoginController
:(id
)delegate
26 finishedSelector
:(SEL
)finishedSelector
;
30 #endif // REMOTING_IOS_AUTHORIZE_H_