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

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

Issue 2538483002: Add management related code to SafeBrowsingNavigationObserverManager (Closed)
Patch Set: filter out browser side navigation browser tests Created 4 years 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
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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 = 35; 383 repeated string alternate_extensions = 35;
384 384
385 message URLChainEntry { 385 message ReferrerChainEntry {
Nathan Parker 2016/12/05 22:21:24 This doesn't look like a backward-compatible chang
Jialiu Lin 2016/12/06 23:10:06 So far, backend is not using field 36. So I guess
Nathan Parker 2016/12/06 23:31:32 Ah great then if it's not being used there's no is
386 enum URLType { 386 enum URLType {
387 DOWNLOAD_URL = 1; 387 DOWNLOAD_URL = 1;
388 DOWNLOAD_REFERRER = 2; 388 LANDING_PAGE = 2;
389 LANDING_PAGE = 3; 389 LANDING_REFERRER = 3;
390 LANDING_REFERRER = 4; 390 CLIENT_REDIRECT = 4;
391 CLIENT_REDIRECT = 5; 391 SERVER_REDIRECT = 5;
392 SERVER_REDIRECT = 6;
393 } 392 }
394 393
395 // [required] The url of this Entry. 394 // [required] The url of this Entry.
396 optional string url = 1; 395 optional string url = 1;
397 396
398 // Type of URLs, such as download url, download referrer, etc. 397 // Type of URLs, such as download url, download referrer, etc.
399 optional URLType type = 2; 398 optional URLType type = 2;
400 399
401 // IP address corresponding to url. 400 // IP addresses corresponding to this host.
402 optional string ip_address = 3; 401 repeated string ip_address = 3;
403 402
404 // Referrer url of this entry. 403 // Referrer url of this entry.
405 optional string referrer = 4; 404 optional string referrer_url = 4;
406 405
407 // Main frame URL of referrer. 406 // Main frame URL of referrer.
408 optional string main_frame_referrer = 5; 407 optional string referrer_main_frame_url = 5;
409 408
410 // If this URL loads in a different tab/frame from previous one. 409 // If this URL loads in a different tab/frame from previous one.
411 optional bool is_retargeting = 6; 410 optional bool is_retargeting = 6;
412 411
413 // If there is a user gesture attached to this transition. 412 optional double navigation_time_msec = 7;
414 optional bool is_user_initiated = 7;
415
416 optional double timestamp_in_millisec = 8;
417 } // End of URLChainEntry 413 } // End of URLChainEntry
418 414
419 // URLs transitions from landing referrer to download in reverse chronological 415 // URLs transitions from landing referrer to download in reverse chronological
420 // order, i.e. download url comes first in this list, and landing referrer 416 // order, i.e. download url comes first in this list, and landing referrer
421 // comes last. 417 // comes last.
422 repeated URLChainEntry url_chain = 36; 418 repeated ReferrerChainEntry referrer_chain_entry = 36;
423 } 419 }
424 420
425 message ClientDownloadResponse { 421 message ClientDownloadResponse {
426 enum Verdict { 422 enum Verdict {
427 // Download is considered safe. 423 // Download is considered safe.
428 SAFE = 0; 424 SAFE = 0;
429 // Download is considered dangerous. Chrome should show a warning to the 425 // Download is considered dangerous. Chrome should show a warning to the
430 // user. 426 // user.
431 DANGEROUS = 1; 427 DANGEROUS = 1;
432 // Download is uncommon. Chrome should display a less severe warning. 428 // Download is uncommon. Chrome should display a less severe warning.
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 optional bool did_proceed = 8; 828 optional bool did_proceed = 8;
833 829
834 // Whether user visited this origin before. 830 // Whether user visited this origin before.
835 optional bool repeat_visit = 9; 831 optional bool repeat_visit = 9;
836 832
837 // The same token in ClientDownloadResponse. This field is only set if its 833 // The same token in ClientDownloadResponse. This field is only set if its
838 // report type is DANGEROUS_DOWNLOAD_RECOVERY, DANGEROUS_DOWNLOAD_WARNING or 834 // report type is DANGEROUS_DOWNLOAD_RECOVERY, DANGEROUS_DOWNLOAD_WARNING or
839 // DANGEROUS_DOWNLOAD_BY_API. 835 // DANGEROUS_DOWNLOAD_BY_API.
840 optional bytes token = 15; 836 optional bytes token = 15;
841 } 837 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698