OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_APP_INSTALLER_WIN_APP_INSTALLER_UTIL_H_ | 5 #ifndef CHROME_APP_INSTALLER_WIN_APP_INSTALLER_UTIL_H_ |
6 #define CHROME_APP_INSTALLER_WIN_APP_INSTALLER_UTIL_H_ | 6 #define CHROME_APP_INSTALLER_WIN_APP_INSTALLER_UTIL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 bool IsValidAppId(const std::string& app_id); | 43 bool IsValidAppId(const std::string& app_id); |
44 | 44 |
45 // Uses WinHTTP to make a GET request. |server_port| can be zero to use the | 45 // Uses WinHTTP to make a GET request. |server_port| can be zero to use the |
46 // default port (80 or 443). | 46 // default port (80 or 443). |
47 bool FetchUrl(const base::string16& user_agent, | 47 bool FetchUrl(const base::string16& user_agent, |
48 const base::string16& server_name, | 48 const base::string16& server_name, |
49 uint16_t server_port, | 49 uint16_t server_port, |
50 const base::string16& object_name, | 50 const base::string16& object_name, |
51 std::vector<uint8_t>* response_data); | 51 std::vector<uint8_t>* response_data); |
52 | 52 |
53 base::FilePath GetChromeExePath(bool is_canary); | |
54 | |
55 // Shows UI to download and install Chrome. Returns a failure code, or SUCCESS | 53 // Shows UI to download and install Chrome. Returns a failure code, or SUCCESS |
56 // if the installation completed successfully. | 54 // if the installation completed successfully. |
57 ExitCode GetChrome(bool is_canary, const std::string& inline_install_json); | 55 ExitCode GetChrome(bool is_canary, const std::string& inline_install_json); |
58 | 56 |
59 } // namespace app_installer | 57 } // namespace app_installer |
60 | 58 |
61 #endif // CHROME_APP_INSTALLER_WIN_APP_INSTALLER_UTIL_H_ | 59 #endif // CHROME_APP_INSTALLER_WIN_APP_INSTALLER_UTIL_H_ |
OLD | NEW |