Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2217)

Unified Diff: chrome/installer/mac/app/request.h

Issue 2094583004: Initial commit for Chrome metainstaller on Mac. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698