OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2016 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 #import <Foundation/Foundation.h> |
| 6 #import "downloader.h" |
| 7 #import "request.h" |
| 8 #import "systemInfo.h" |
| 9 |
| 10 int main(){ |
| 11 NSXMLDocument *requestBody = createXMLRequestBody([SystemInfo getOSVersion], |
| 12 [SystemInfo getArch]); |
| 13 NSURLRequest *request = createOmahaRequest(requestBody); |
| 14 NSData *result = sendRequestAndReceiveResponse(request); |
| 15 |
| 16 Downloader *download = [[Downloader alloc] init]; |
| 17 [download downloadChromeImageToDownloadsDirectory: result]; |
| 18 |
| 19 // NSURL *chromeURL = getChromeImageURL(result); |
| 20 // NSData *chromeImageData = downloadChromeAsData(chromeURL); |
| 21 // writeChromeImageToDownloadsDirectory(chromeImageData); |
| 22 } |
OLD | NEW |