OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // This file includes Safe Browsing V4 API blacklist request and response | 5 // This file includes Safe Browsing V4 API blacklist request and response |
6 // protocol buffers. They should be kept in sync with the server implementation. | 6 // protocol buffers. They should be kept in sync with the server implementation. |
7 | 7 |
8 syntax = "proto2"; | 8 syntax = "proto2"; |
9 | 9 |
10 option optimize_for = LITE_RUNTIME; | 10 option optimize_for = LITE_RUNTIME; |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 // The resources related to the threat hit. | 244 // The resources related to the threat hit. |
245 repeated ThreatSource resources = 4; | 245 repeated ThreatSource resources = 4; |
246 } | 246 } |
247 | 247 |
248 // Types of threats. | 248 // Types of threats. |
249 enum ThreatType { | 249 enum ThreatType { |
250 // Unknown. | 250 // Unknown. |
251 THREAT_TYPE_UNSPECIFIED = 0; | 251 THREAT_TYPE_UNSPECIFIED = 0; |
252 | 252 |
253 // Malware threat type. | 253 // Malware threat type. |
254 MALWARE = 1; | 254 MALWARE_THREAT = 1; |
255 | 255 |
256 // Social engineering threat type. | 256 // Social engineering threat type. |
257 SOCIAL_ENGINEERING_PUBLIC = 2; | 257 SOCIAL_ENGINEERING_PUBLIC = 2; |
258 | 258 |
259 // Unwanted software threat type. | 259 // Unwanted software threat type. |
260 UNWANTED_SOFTWARE = 3; | 260 UNWANTED_SOFTWARE = 3; |
261 | 261 |
262 // Potentially harmful application threat type. | 262 // Potentially harmful application threat type. |
263 POTENTIALLY_HARMFUL_APPLICATION = 4; | 263 POTENTIALLY_HARMFUL_APPLICATION = 4; |
264 | 264 |
265 // Social engineering threat type for internal use. | 265 // Social engineering threat type for internal use. |
266 SOCIAL_ENGINEERING = 5; | 266 SOCIAL_ENGINEERING = 5; |
267 | 267 |
268 // API abuse threat type. | 268 // API abuse threat type. |
269 API_ABUSE = 6; | 269 API_ABUSE = 6; |
270 } | 270 } |
271 | 271 |
272 // Types of platforms. | 272 // Types of platforms. |
273 enum PlatformType { | 273 enum PlatformType { |
274 // Unknown platform. | 274 // Unknown platform. |
275 PLATFORM_TYPE_UNSPECIFIED = 0; | 275 PLATFORM_TYPE_UNSPECIFIED = 0; |
276 | 276 |
277 // Threat posed to Windows. | 277 // Threat posed to Windows. |
278 WINDOWS = 1; | 278 WINDOWS_PLATFORM = 1; |
279 | 279 |
280 // Threat posed to Linux. | 280 // Threat posed to Linux. |
281 LINUX = 2; | 281 LINUX_PLATFORM = 2; |
282 | 282 |
283 // Threat posed to Android. | 283 // Threat posed to Android. |
284 // This cannot be ANDROID because that symbol is defined for android builds | 284 // This cannot be ANDROID because that symbol is defined for android builds |
285 // here: build/config/android/BUILD.gn line21. | 285 // here: build/config/android/BUILD.gn line21. |
286 ANDROID_PLATFORM = 3; | 286 ANDROID_PLATFORM = 3; |
287 | 287 |
288 // Threat posed to OSX. | 288 // Threat posed to OSX. |
289 OSX = 4; | 289 OSX_PLATFORM = 4; |
290 | 290 |
291 // Threat posed to iOS. | 291 // Threat posed to iOS. |
292 IOS = 5; | 292 IOS_PLATFORM = 5; |
293 | 293 |
294 // Threat posed to at least one of the defined platforms. | 294 // Threat posed to at least one of the defined platforms. |
295 ANY_PLATFORM = 6; | 295 ANY_PLATFORM = 6; |
296 | 296 |
297 // Threat posed to all defined platforms. | 297 // Threat posed to all defined platforms. |
298 ALL_PLATFORMS = 7; | 298 ALL_PLATFORMS = 7; |
299 | 299 |
300 // Threat posed to Chrome. | 300 // Threat posed to Chrome. |
301 CHROME = 8; | 301 CHROME_PLATFORM = 8; |
302 } | 302 } |
303 | 303 |
304 // The client metadata associated with Safe Browsing API requests. | 304 // The client metadata associated with Safe Browsing API requests. |
305 message ClientInfo { | 305 message ClientInfo { |
306 // A client ID that (hopefully) uniquely identifies the client implementation | 306 // A client ID that (hopefully) uniquely identifies the client implementation |
307 // of the Safe Browsing API. | 307 // of the Safe Browsing API. |
308 optional string client_id = 1; | 308 optional string client_id = 1; |
309 | 309 |
310 // The version of the client implementation. | 310 // The version of the client implementation. |
311 optional string client_version = 2; | 311 optional string client_version = 2; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
464 optional int64 seconds = 1; | 464 optional int64 seconds = 1; |
465 | 465 |
466 // Signed fractions of a second at nanosecond resolution of the span | 466 // Signed fractions of a second at nanosecond resolution of the span |
467 // of time. Durations less than one second are represented with a 0 | 467 // of time. Durations less than one second are represented with a 0 |
468 // `seconds` field and a positive or negative `nanos` field. For durations | 468 // `seconds` field and a positive or negative `nanos` field. For durations |
469 // of one second or more, a non-zero value for the `nanos` field must be | 469 // of one second or more, a non-zero value for the `nanos` field must be |
470 // of the same sign as the `seconds` field. Must be from -999,999,999 | 470 // of the same sign as the `seconds` field. Must be from -999,999,999 |
471 // to +999,999,999 inclusive. | 471 // to +999,999,999 inclusive. |
472 optional int32 nanos = 2; | 472 optional int32 nanos = 2; |
473 } | 473 } |
OLD | NEW |