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

Side by Side 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698