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 #include "components/update_client/update_query_params.h" | 5 #include "components/update_client/update_query_params.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
9 #include "base/win/windows_version.h" | 9 #include "base/win/windows_version.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 const char kArch[] = | 38 const char kArch[] = |
39 #if defined(__amd64__) || defined(_WIN64) | 39 #if defined(__amd64__) || defined(_WIN64) |
40 "x64"; | 40 "x64"; |
41 #elif defined(__i386__) || defined(_WIN32) | 41 #elif defined(__i386__) || defined(_WIN32) |
42 "x86"; | 42 "x86"; |
43 #elif defined(__arm__) | 43 #elif defined(__arm__) |
44 "arm"; | 44 "arm"; |
45 #elif defined(__aarch64__) | 45 #elif defined(__aarch64__) |
46 "arm64"; | 46 "arm64"; |
| 47 #elif defined(__mips__) && (__mips == 64) |
| 48 "mips64el"; |
47 #elif defined(__mips__) | 49 #elif defined(__mips__) |
48 "mipsel"; | 50 "mipsel"; |
49 #else | 51 #else |
50 #error "unknown arch" | 52 #error "unknown arch" |
51 #endif | 53 #endif |
52 | 54 |
53 const char kChrome[] = "chrome"; | 55 const char kChrome[] = "chrome"; |
54 | 56 |
55 #if defined(GOOGLE_CHROME_BUILD) | 57 #if defined(GOOGLE_CHROME_BUILD) |
56 const char kChromeCrx[] = "chromecrx"; | 58 const char kChromeCrx[] = "chromecrx"; |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 return x86_64 ? "x86-64" : "x86-32"; | 110 return x86_64 ? "x86-64" : "x86-32"; |
109 #else | 111 #else |
110 return "x86-32"; | 112 return "x86-32"; |
111 #endif | 113 #endif |
112 #elif defined(ARCH_CPU_ARMEL) | 114 #elif defined(ARCH_CPU_ARMEL) |
113 return "arm"; | 115 return "arm"; |
114 #elif defined(ARCH_CPU_ARM64) | 116 #elif defined(ARCH_CPU_ARM64) |
115 return "arm64"; | 117 return "arm64"; |
116 #elif defined(ARCH_CPU_MIPSEL) | 118 #elif defined(ARCH_CPU_MIPSEL) |
117 return "mips32"; | 119 return "mips32"; |
| 120 #elif defined(ARCH_CPU_MIPS64EL) |
| 121 return "mips64"; |
118 #else | 122 #else |
119 // NOTE: when adding new values here, please remember to update the | 123 // NOTE: when adding new values here, please remember to update the |
120 // comment in the .h file about possible return values from this function. | 124 // comment in the .h file about possible return values from this function. |
121 #error "You need to add support for your architecture here" | 125 #error "You need to add support for your architecture here" |
122 #endif | 126 #endif |
123 } | 127 } |
124 | 128 |
125 // static | 129 // static |
126 void UpdateQueryParams::SetDelegate(UpdateQueryParamsDelegate* delegate) { | 130 void UpdateQueryParams::SetDelegate(UpdateQueryParamsDelegate* delegate) { |
127 DCHECK(!g_delegate || !delegate || (delegate == g_delegate)); | 131 DCHECK(!g_delegate || !delegate || (delegate == g_delegate)); |
128 g_delegate = delegate; | 132 g_delegate = delegate; |
129 } | 133 } |
130 | 134 |
131 } // namespace update_client | 135 } // namespace update_client |
OLD | NEW |