| 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 329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 optional string url = 2; | 340 optional string url = 2; |
| 341 } | 341 } |
| 342 | 342 |
| 343 // Types of entries that pose threats. Threat lists are collections of entries | 343 // Types of entries that pose threats. Threat lists are collections of entries |
| 344 // of a single type. | 344 // of a single type. |
| 345 enum ThreatEntryType { | 345 enum ThreatEntryType { |
| 346 // Unspecified. | 346 // Unspecified. |
| 347 THREAT_ENTRY_TYPE_UNSPECIFIED = 0; | 347 THREAT_ENTRY_TYPE_UNSPECIFIED = 0; |
| 348 | 348 |
| 349 // A host-suffix/path-prefix URL expression; for example, "foo.bar.com/baz/". | 349 // A host-suffix/path-prefix URL expression; for example, "foo.bar.com/baz/". |
| 350 URL_EXPRESSION = 1; | 350 URL = 1; |
| 351 | 351 |
| 352 // The digest of a binary. | 352 // The digest of a binary. |
| 353 BINARY_DIGEST = 2; | 353 BINARY_DIGEST = 2; |
| 354 | 354 |
| 355 // An IP range. | 355 // An IP range. |
| 356 IP_RANGE = 3; | 356 IP_RANGE = 3; |
| 357 } | 357 } |
| 358 | 358 |
| 359 // A set of threats that should be added or removed from a client's local | 359 // A set of threats that should be added or removed from a client's local |
| 360 // database. | 360 // database. |
| (...skipping 103 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 |