Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(417)

Side by Side Diff: chrome/common/safe_browsing/csd.proto

Issue 2319533003: Add more fields to ClientDownloadRequest (Closed)
Patch Set: trailing spaces Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 373
374 // True if this ClientDownloadRequest is from a whitelisted domain. 374 // True if this ClientDownloadRequest is from a whitelisted domain.
375 optional bool skipped_url_whitelist = 28; 375 optional bool skipped_url_whitelist = 28;
376 376
377 // True if this ClientDownloadRequest contains a whitelisted certificate. 377 // True if this ClientDownloadRequest contains a whitelisted certificate.
378 optional bool skipped_certificate_whitelist = 31; 378 optional bool skipped_certificate_whitelist = 31;
379 379
380 // PPAPI_SAVE_REQUEST type messages may have more than one suggested filetype. 380 // PPAPI_SAVE_REQUEST type messages may have more than one suggested filetype.
381 // Each element in this collection indicates an alternate extension including 381 // Each element in this collection indicates an alternate extension including
382 // the leading extension separator. 382 // the leading extension separator.
383 repeated string alternate_extensions = 32; 383 repeated string alternate_extensions = 35;
Nathan Parker 2016/09/08 20:23:25 Changing the id... I assume this was this never in
384
385 message URLChainEntry {
386 enum URLType {
387 DOWNLOAD_URL = 1;
388 DOWNLOAD_REFERRER = 2;
389 LANDING_PAGE = 3;
390 LANDING_REFERRER = 4;
391 CLIENT_REDIRECT = 5;
392 SERVER_REDIRECT = 6;
393 }
394
395 // [required] The url of this Entry.
396 optional string url = 1;
397
398 // Type of URLs, such as download url, download referrer, etc.
399 optional URLType type = 2;
400
401 // IP address corresponding to url.
402 optional string ip_address = 3;
403
404 // Referrer url of this entry.
405 optional string referrer = 4;
406
407 // Main frame URL of referrer.
408 optional string main_frame_referrer = 5;
409
410 // If this URL loads in a different tab/frame from previous one.
411 optional bool is_retargeting = 6;
412
413 // If there is a user gesture attached to this transition.
414 optional bool is_user_initiated = 7;
415
416 optional double timestamp_in_millisec = 8;
417 } // End of URLChainEntry
418
419 // URLs transitions from landing referrer to download in reverse chronological
420 // order, i.e. download url comes first in this list, and landing referrer
421 // comes last.
422 repeated URLChainEntry url_chain = 36;
384 } 423 }
385 424
386 message ClientDownloadResponse { 425 message ClientDownloadResponse {
387 enum Verdict { 426 enum Verdict {
388 // Download is considered safe. 427 // Download is considered safe.
389 SAFE = 0; 428 SAFE = 0;
390 // Download is considered dangerous. Chrome should show a warning to the 429 // Download is considered dangerous. Chrome should show a warning to the
391 // user. 430 // user.
392 DANGEROUS = 1; 431 DANGEROUS = 1;
393 // Download is uncommon. Chrome should display a less severe warning. 432 // Download is uncommon. Chrome should display a less severe warning.
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 optional bool did_proceed = 8; 830 optional bool did_proceed = 8;
792 831
793 // Whether user visited this origin before. 832 // Whether user visited this origin before.
794 optional bool repeat_visit = 9; 833 optional bool repeat_visit = 9;
795 834
796 // The same token in ClientDownloadResponse. This field is only set if its 835 // The same token in ClientDownloadResponse. This field is only set if its
797 // report type is DANGEROUS_DOWNLOAD_RECOVERY, DANGEROUS_DOWNLOAD_WARNING or 836 // report type is DANGEROUS_DOWNLOAD_RECOVERY, DANGEROUS_DOWNLOAD_WARNING or
798 // DANGEROUS_DOWNLOAD_BY_API. 837 // DANGEROUS_DOWNLOAD_BY_API.
799 optional bytes token = 15; 838 optional bytes token = 15;
800 } 839 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698