Chromium Code Reviews| 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 #if !defined(__x86_64__) | |
| 6 #error "What are you doing?" | |
|
Elly Fong-Jones
2016/06/24 17:26:02
This error should be more descriptive (and probabl
| |
| 7 #endif | |
| 8 | |
| 9 #ifndef CHROME_INSTALLER_MAC_APP_REQUEST_H_ | |
| 10 #define CHROME_INSTALLER_MAC_APP_REQUEST_H_ | |
| 11 | |
| 12 #import <Foundation/Foundation.h> | |
| 13 #include <mach-o/arch.h> | |
|
Elly Fong-Jones
2016/06/24 17:26:02
The constants defined in that header aren't used i
| |
| 14 | |
| 15 | |
| 16 NSString* getArchitecture(void); | |
|
Elly Fong-Jones
2016/06/24 17:26:02
These belong on a class probably (maybe as static
Elly Fong-Jones
2016/06/24 17:26:02
These functions need explanatory comments too.
| |
| 17 NSString *getOSVersion(void); | |
| 18 NSXMLDocument *createXMLRequestBody(NSString *operatingSystem, | |
| 19 NSString *architecture); | |
| 20 NSURLRequest* createOmahaRequest(NSXMLDocument *requestXMLBody); | |
| 21 NSData* sendRequestAndReceiveResponse(NSURLRequest *request); | |
| 22 | |
| 23 #endif // CHROME_INSTALLER_MAC_APP_REQUEST_H_ | |
| OLD | NEW |