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

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

Issue 323953002: Support for recording registered LSPs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@grt
Patch Set: Modifications based on feedback received Created 6 years, 6 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
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 // Client side phishing and malware detection request and response 5 // Client side phishing and malware detection request and response
6 // protocol buffers. Those protocol messages should be kept in sync 6 // protocol buffers. Those protocol messages should be kept in sync
7 // with the server implementation. 7 // with the server implementation.
8 // 8 //
9 // If you want to change this protocol definition or you have questions 9 // If you want to change this protocol definition or you have questions
10 // regarding its format please contact chrome-anti-phishing@googlegroups.com. 10 // regarding its format please contact chrome-anti-phishing@googlegroups.com.
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // where the referrer uses HTTPS. 103 // where the referrer uses HTTPS.
104 optional string referrer_url = 4; 104 optional string referrer_url = 4;
105 105
106 // Field 5 and 6 are only used on the server. 106 // Field 5 and 6 are only used on the server.
107 107
108 message UrlInfo { 108 message UrlInfo {
109 required string ip = 1; 109 required string ip = 1;
110 required string url = 2; 110 required string url = 2;
111 optional string method = 3; 111 optional string method = 3;
112 optional string referrer = 4; 112 optional string referrer = 4;
113 // Resource type, the int value is a direct cast from the Type enum 113 // Resource type, the int value is a direct cast from the Type enum
114 // of ResourceType class defined in //src/webkit/commom/resource_type.h 114 // of ResourceType class defined in //src/webkit/commom/resource_type.h
115 optional int32 resource_type = 5; 115 optional int32 resource_type = 5;
116 } 116 }
117 117
118 // List of resource urls that match the malware IP list. 118 // List of resource urls that match the malware IP list.
119 repeated UrlInfo bad_ip_url_info = 7; 119 repeated UrlInfo bad_ip_url_info = 7;
120 } 120 }
121 121
122 message ClientMalwareResponse { 122 message ClientMalwareResponse {
123 required bool blacklist = 1; 123 required bool blacklist = 1;
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 } 373 }
374 optional OS os = 1; 374 optional OS os = 1;
375 message Machine { 375 message Machine {
376 optional string cpu_architecture = 1; 376 optional string cpu_architecture = 1;
377 optional string cpu_vendor = 2; 377 optional string cpu_vendor = 2;
378 optional uint32 cpuid = 3; 378 optional uint32 cpuid = 3;
379 } 379 }
380 optional Machine machine = 2; 380 optional Machine machine = 2;
381 message Process { 381 message Process {
382 optional string version = 1; 382 optional string version = 1;
383 repeated string dlls = 2; 383 message Dll {
grt (UTC plus 2) 2014/06/10 20:57:53 rather than change field #2 from a repeated string
pmonette_google.com 2014/06/10 21:39:04 Done.
384 enum Feature {
385 UNKNOWN = 0;
386 LSP = 1;
387 }
388 optional string path = 1;
389 optional int64 base_address = 2;
grt (UTC plus 2) 2014/06/10 20:57:54 i checked the underlying file format and confirmed
pmonette_google.com 2014/06/10 21:39:04 Done.
390 optional int32 length = 3;
grt (UTC plus 2) 2014/06/10 20:57:54 uint32 since this is unsigned
pmonette_google.com 2014/06/10 21:39:04 Done.
391 repeated Feature features = 4;
grt (UTC plus 2) 2014/06/10 20:57:54 i just noticed that the protobuf style guide says
pmonette_google.com 2014/06/10 21:39:04 Done.
392 }
393 repeated Dll dlls = 2;
grt (UTC plus 2) 2014/06/10 20:57:53 dlls -> dll
pmonette_google.com 2014/06/10 21:39:04 Done.
384 message Patch { 394 message Patch {
385 optional string function = 1; 395 optional string function = 1;
386 optional string target_dll = 2; 396 optional string target_dll = 2;
387 } 397 }
388 repeated Patch patches = 3; 398 repeated Patch patches = 3;
389 message NetworkProvider {} 399 message NetworkProvider {}
390 repeated NetworkProvider network_providers = 4; 400 repeated NetworkProvider network_providers = 4;
391 enum Channel { 401 enum Channel {
392 CHANNEL_UNKNOWN = 0; 402 CHANNEL_UNKNOWN = 0;
393 CHANNEL_CANARY = 1; 403 CHANNEL_CANARY = 1;
(...skipping 11 matching lines...) Expand all
405 } 415 }
406 416
407 message ClientIncidentResponse { 417 message ClientIncidentResponse {
408 optional bytes token = 1; 418 optional bytes token = 1;
409 optional bool download_requested = 2; 419 optional bool download_requested = 2;
410 420
411 message EnvironmentRequest { optional int32 dll_index = 1; } 421 message EnvironmentRequest { optional int32 dll_index = 1; }
412 422
413 repeated EnvironmentRequest environment_requests = 3; 423 repeated EnvironmentRequest environment_requests = 3;
414 } 424 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698