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

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: Additional progress addressing downloader and parser, moved BUILD dependencies away from root. Created 4 years, 5 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 #ifndef CHROME_INSTALLER_MAC_APP_REQUEST_H_
6
7 #if !defined(__x86_64__)
8 #error "Your machine's operating system architecture may not be compatible with Chrome."
9 #endif
10
11 #define CHROME_INSTALLER_MAC_APP_REQUEST_H_
12
13 #import <Foundation/Foundation.h>
14
15 // #include <mach-o/arch.h>
16
17 // Gets the CPU architecture type of the client's system, which will be used whe n crafting the
18 // query to Omaha. This will return either "x84_64h" for systems running on Inte l Haswell chips,
19 // "x86_64" for other Intel machines, or strings representing other CPU types ( "amd",
20 // "pentium", and "i686", for example, are all valid).
21 NSString* getArchitecture(void);
22 // Gets the operating system version of the client. After querying NSProcess, th is method
23 // extracts just the version number from a longer version string, then returns t he number as a
24 // string. This function may return values such as "10.11" or "10.10.5".
25 NSString *getOSVersion(void);
26 // Creates the body of the request being prepared to send to Omaha. The paramete rs
27 // |operatingSystem| and |architecture| would be fed in using the above function s.
28 NSXMLDocument *createXMLRequestBody(NSString *operatingSystem,
29 NSString *architecture);
30 // Creates a new HTTP URL request to Omaha using a successfully created request body,
31 // |requestXMLBody|.
32 NSURLRequest* createOmahaRequest(NSXMLDocument *requestXMLBody);
33 // Sends the request created using the above method, then receives the response and returns the
34 // response body (which is in XML) through the NSData type.
35 NSData* sendRequestAndReceiveResponse(NSURLRequest *request);
36
37 #endif // CHROME_INSTALLER_MAC_APP_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698