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

Side by Side Diff: components/sync/protocol/proto_visitors.h

Issue 2882443003: UserEvent proto exploration for 0-Suggest use case.
Patch Set: Adding proto_visitors.h change. Created 3 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ 5 #ifndef COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_
6 #define COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ 6 #define COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_
7 7
8 #include "components/sync/protocol/app_list_specifics.pb.h" 8 #include "components/sync/protocol/app_list_specifics.pb.h"
9 #include "components/sync/protocol/app_notification_specifics.pb.h" 9 #include "components/sync/protocol/app_notification_specifics.pb.h"
10 #include "components/sync/protocol/app_setting_specifics.pb.h" 10 #include "components/sync/protocol/app_setting_specifics.pb.h"
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after
844 VISIT_BYTES(value); 844 VISIT_BYTES(value);
845 VISIT_BYTES(compressed_value); 845 VISIT_BYTES(compressed_value);
846 VISIT(uncompressed_length); 846 VISIT(uncompressed_length);
847 VISIT_BYTES(custom_compressed_v1); 847 VISIT_BYTES(custom_compressed_v1);
848 } 848 }
849 849
850 VISIT_PROTO_FIELDS(const sync_pb::UserEventSpecifics& proto) { 850 VISIT_PROTO_FIELDS(const sync_pb::UserEventSpecifics& proto) {
851 VISIT(event_time_usec); 851 VISIT(event_time_usec);
852 VISIT(navigation_id); 852 VISIT(navigation_id);
853 VISIT(session_id); 853 VISIT(session_id);
854 VISIT(zero_suggest_request);
855 VISIT(zero_suggest_selected);
854 } 856 }
855 857
856 VISIT_PROTO_FIELDS(const sync_pb::WalletMaskedCreditCard& proto) { 858 VISIT_PROTO_FIELDS(const sync_pb::WalletMaskedCreditCard& proto) {
857 VISIT(id); 859 VISIT(id);
858 VISIT_ENUM(status); 860 VISIT_ENUM(status);
859 VISIT(name_on_card); 861 VISIT(name_on_card);
860 VISIT_ENUM(type); 862 VISIT_ENUM(type);
861 VISIT(last_four); 863 VISIT(last_four);
862 VISIT(exp_month); 864 VISIT(exp_month);
863 VISIT(exp_year); 865 VISIT(exp_year);
(...skipping 30 matching lines...) Expand all
894 VISIT_PROTO_FIELDS(const sync_pb::WalletSyncFlags& proto) { 896 VISIT_PROTO_FIELDS(const sync_pb::WalletSyncFlags& proto) {
895 VISIT(enabled); 897 VISIT(enabled);
896 } 898 }
897 899
898 VISIT_PROTO_FIELDS(const sync_pb::WifiCredentialSpecifics& proto) { 900 VISIT_PROTO_FIELDS(const sync_pb::WifiCredentialSpecifics& proto) {
899 VISIT_BYTES(ssid); 901 VISIT_BYTES(ssid);
900 VISIT_ENUM(security_class); 902 VISIT_ENUM(security_class);
901 VISIT_BYTES(passphrase); 903 VISIT_BYTES(passphrase);
902 } 904 }
903 905
906 VISIT_PROTO_FIELDS(const sync_pb::ZeroSuggestRequest proto) {
907 VISIT(cusco_request_id);
908 }
909
910 VISIT_PROTO_FIELDS(const sync_pb::ZeroSuggestSelected proto) {
911 VISIT(request_event_id);
912 VISIT(index_selected);
913 }
914
904 } // namespace syncer 915 } // namespace syncer
905 916
906 #undef VISIT_ 917 #undef VISIT_
907 #undef VISIT_BYTES 918 #undef VISIT_BYTES
908 #undef VISIT_ENUM 919 #undef VISIT_ENUM
909 #undef VISIT 920 #undef VISIT
910 #undef VISIT_REP 921 #undef VISIT_REP
911 922
912 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_ 923 #endif // COMPONENTS_SYNC_PROTOCOL_PROTO_VISITORS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698