Index: chrome/installer/mac/app/request.h |
diff --git a/chrome/installer/mac/app/request.h b/chrome/installer/mac/app/request.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a187689c33872bb9e9f4edccbffe8ee08d466ca6 |
--- /dev/null |
+++ b/chrome/installer/mac/app/request.h |
@@ -0,0 +1,23 @@ |
+// Copyright (c) 2016 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#if !defined(__x86_64__) |
+#error "What are you doing?" |
Elly Fong-Jones
2016/06/24 17:26:02
This error should be more descriptive (and probabl
|
+#endif |
+ |
+#ifndef CHROME_INSTALLER_MAC_APP_REQUEST_H_ |
+#define CHROME_INSTALLER_MAC_APP_REQUEST_H_ |
+ |
+#import <Foundation/Foundation.h> |
+#include <mach-o/arch.h> |
Elly Fong-Jones
2016/06/24 17:26:02
The constants defined in that header aren't used i
|
+ |
+ |
+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.
|
+NSString *getOSVersion(void); |
+NSXMLDocument *createXMLRequestBody(NSString *operatingSystem, |
+ NSString *architecture); |
+NSURLRequest* createOmahaRequest(NSXMLDocument *requestXMLBody); |
+NSData* sendRequestAndReceiveResponse(NSURLRequest *request); |
+ |
+#endif // CHROME_INSTALLER_MAC_APP_REQUEST_H_ |