Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_INSTALLER_MAC_APP_OMAHACOMMUNICATION_H_ | 5 #ifndef CHROME_INSTALLER_MAC_APP_OMAHACOMMUNICATION_H_ |
| 6 #define CHROME_INSTALLER_MAC_APP_OMAHACOMMUNICATION_H_ | 6 #define CHROME_INSTALLER_MAC_APP_OMAHACOMMUNICATION_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 @class OmahaCommunication; | |
| 10 @protocol OmahaCommunicationDelegate | 11 @protocol OmahaCommunicationDelegate |
| 11 - (void)onOmahaSuccessWithURLs:(NSArray*)URLs; | 12 - (void)omahaCommunication:(OmahaCommunication*)messenger |
| 12 - (void)onOmahaFailureWithError:(NSError*)error; | 13 onOmahaSuccessWithURLs:(NSArray*)URLs; |
| 14 - (void)omahaCommunication:(OmahaCommunication*)messenger | |
| 15 onOmahaFailureWithError:(NSError*)error; | |
|
Sidney San Martín
2016/08/13 12:37:18
Since you added `omahaCommunication:` to these nam
Anna Zeng
2016/08/16 23:07:39
Done.
| |
| 13 @end | 16 @end |
| 14 | 17 |
| 15 @interface OmahaCommunication : NSObject<NSURLSessionDataDelegate> | 18 @interface OmahaCommunication : NSObject<NSURLSessionDataDelegate> |
| 16 | 19 |
| 17 @property(nonatomic, copy) NSXMLDocument* requestXMLBody; | 20 @property(nonatomic, copy) NSXMLDocument* requestXMLBody; |
| 18 @property(nonatomic, assign) id<OmahaCommunicationDelegate> delegate; | 21 @property(nonatomic, assign) id<OmahaCommunicationDelegate> delegate; |
| 19 | 22 |
| 20 - (id)init; | 23 - (id)init; |
| 21 - (id)initWithBody:(NSXMLDocument*)xmlBody; | 24 - (id)initWithBody:(NSXMLDocument*)xmlBody; |
| 22 | 25 |
| 23 // Asks the Omaha servers for the most updated version of Chrome by sending a | 26 // Asks the Omaha servers for the most updated version of Chrome by sending a |
| 24 // request using this function. | 27 // request using this function. |
| 25 - (void)fetchDownloadURLs; | 28 - (void)fetchDownloadURLs; |
| 26 | 29 |
| 27 @end | 30 @end |
| 28 | 31 |
| 29 #endif // CHROME_INSTALLER_MAC_APP_OMAHACOMMUNICATION_H_ | 32 #endif // CHROME_INSTALLER_MAC_APP_OMAHACOMMUNICATION_H_ |
| OLD | NEW |