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

Side by Side Diff: chrome/app_installer/win/app_installer_util.h

Issue 685103004: Refactor chrome_launcher_support::GetAnyChromePath. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix app_installer compile. Created 5 years, 11 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
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
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_
OLDNEW
« no previous file with comments | « chrome/app_installer/win/app_installer_main.cc ('k') | chrome/app_installer/win/app_installer_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698