| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "chrome/browser/component_updater/component_updater_utils.h" | 5 #include "chrome/browser/component_updater/component_updater_utils.h" |
| 6 |
| 6 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 7 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 8 #include "base/guid.h" | 9 #include "base/guid.h" |
| 9 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 10 #include "base/strings/string_piece.h" | 11 #include "base/strings/string_piece.h" |
| 11 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 12 #include "base/strings/stringprintf.h" | 13 #include "base/strings/stringprintf.h" |
| 13 #include "base/sys_info.h" | 14 #include "base/sys_info.h" |
| 14 #include "base/win/windows_version.h" | 15 #include "base/win/windows_version.h" |
| 15 #include "chrome/browser/component_updater/component_updater_service.h" | 16 #include "chrome/browser/component_updater/component_updater_service.h" |
| 16 #include "chrome/browser/component_updater/crx_update_item.h" | 17 #include "chrome/browser/component_updater/crx_update_item.h" |
| 18 #include "chrome/browser/omaha_query_params/omaha_query_params.h" |
| 17 #include "chrome/common/chrome_version_info.h" | 19 #include "chrome/common/chrome_version_info.h" |
| 18 #include "chrome/common/omaha_query_params/omaha_query_params.h" | |
| 19 #include "extensions/common/extension.h" | 20 #include "extensions/common/extension.h" |
| 20 #include "net/base/load_flags.h" | 21 #include "net/base/load_flags.h" |
| 21 #include "net/url_request/url_fetcher.h" | 22 #include "net/url_request/url_fetcher.h" |
| 22 #include "net/url_request/url_request_context_getter.h" | 23 #include "net/url_request/url_request_context_getter.h" |
| 23 #include "net/url_request/url_request_status.h" | 24 #include "net/url_request/url_request_status.h" |
| 24 | 25 |
| 25 namespace component_updater { | 26 namespace component_updater { |
| 26 | 27 |
| 27 std::string BuildProtocolRequest(const std::string& request_body, | 28 std::string BuildProtocolRequest(const std::string& request_body, |
| 28 const std::string& additional_attributes) { | 29 const std::string& additional_attributes) { |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 return id; | 166 return id; |
| 166 } | 167 } |
| 167 | 168 |
| 168 std::string GetCrxComponentID(const CrxComponent& component) { | 169 std::string GetCrxComponentID(const CrxComponent& component) { |
| 169 return HexStringToID(StringToLowerASCII(base::HexEncode(&component.pk_hash[0], | 170 return HexStringToID(StringToLowerASCII(base::HexEncode(&component.pk_hash[0], |
| 170 component.pk_hash.size()/2))); | 171 component.pk_hash.size()/2))); |
| 171 } | 172 } |
| 172 | 173 |
| 173 } // namespace component_updater | 174 } // namespace component_updater |
| 174 | 175 |
| OLD | NEW |