| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 proto file includes: | 5 // This proto file includes: |
| 6 // (1) Client side phishing and malware detection request and response | 6 // (1) Client side phishing and malware detection request and response |
| 7 // protocol buffers. Those protocol messages should be kept in sync | 7 // protocol buffers. Those protocol messages should be kept in sync |
| 8 // with the server implementation. | 8 // with the server implementation. |
| 9 // | 9 // |
| 10 // (2) Safe Browsing reporting protocol buffers. | 10 // (2) Safe Browsing reporting protocol buffers. |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 repeated string alternate_extensions = 32; | 383 repeated string alternate_extensions = 32; |
| 384 } | 384 } |
| 385 | 385 |
| 386 message ClientDownloadResponse { | 386 message ClientDownloadResponse { |
| 387 enum Verdict { | 387 enum Verdict { |
| 388 // Download is considered safe. | 388 // Download is considered safe. |
| 389 SAFE = 0; | 389 SAFE = 0; |
| 390 // Download is considered dangerous. Chrome should show a warning to the | 390 // Download is considered dangerous. Chrome should show a warning to the |
| 391 // user. | 391 // user. |
| 392 DANGEROUS = 1; | 392 DANGEROUS = 1; |
| 393 // Download is unknown. Chrome should display a less severe warning. | 393 // Download is uncommon. Chrome should display a less severe warning. |
| 394 UNCOMMON = 2; | 394 UNCOMMON = 2; |
| 395 // The download is potentially unwanted. | 395 // The download is potentially unwanted. |
| 396 POTENTIALLY_UNWANTED = 3; | 396 POTENTIALLY_UNWANTED = 3; |
| 397 // The download is from a dangerous host. | 397 // The download is from a dangerous host. |
| 398 DANGEROUS_HOST = 4; | 398 DANGEROUS_HOST = 4; |
| 399 // The backend doesn't have confidence in its verdict of this file. |
| 400 // Chrome should show the default warning if configured for this file type. |
| 401 UNKNOWN = 5; |
| 399 } | 402 } |
| 400 required Verdict verdict = 1; | 403 required Verdict verdict = 1; |
| 401 | 404 |
| 402 message MoreInfo { | 405 message MoreInfo { |
| 403 // A human-readable string describing the nature of the warning. | 406 // A human-readable string describing the nature of the warning. |
| 404 // Only if verdict != SAFE. Localized based on request.locale. | 407 // Only if verdict != SAFE. Localized based on request.locale. |
| 405 optional string description = 1; | 408 optional string description = 1; |
| 406 | 409 |
| 407 // A URL to get more information about this warning, if available. | 410 // A URL to get more information about this warning, if available. |
| 408 optional string url = 2; | 411 optional string url = 2; |
| (...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 optional bool did_proceed = 8; | 791 optional bool did_proceed = 8; |
| 789 | 792 |
| 790 // Whether user visited this origin before. | 793 // Whether user visited this origin before. |
| 791 optional bool repeat_visit = 9; | 794 optional bool repeat_visit = 9; |
| 792 | 795 |
| 793 // The same token in ClientDownloadResponse. This field is only set if its | 796 // The same token in ClientDownloadResponse. This field is only set if its |
| 794 // report type is DANGEROUS_DOWNLOAD_RECOVERY, DANGEROUS_DOWNLOAD_WARNING or | 797 // report type is DANGEROUS_DOWNLOAD_RECOVERY, DANGEROUS_DOWNLOAD_WARNING or |
| 795 // DANGEROUS_DOWNLOAD_BY_API. | 798 // DANGEROUS_DOWNLOAD_BY_API. |
| 796 optional bytes token = 15; | 799 optional bytes token = 15; |
| 797 } | 800 } |
| OLD | NEW |