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

Side by Side Diff: sync/protocol/proto_value_conversions.cc

Issue 14963002: sync: Report GetUpdate triggers to the server (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix handling of NEW_CLIENT GU source Created 7 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
« no previous file with comments | « sync/protocol/client_commands.proto ('k') | sync/protocol/sync.proto » ('j') | 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 // Keep this file in sync with the .proto files in this directory. 5 // Keep this file in sync with the .proto files in this directory.
6 6
7 #include "sync/protocol/proto_value_conversions.h" 7 #include "sync/protocol/proto_value_conversions.h"
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 } 713 }
714 714
715 base::DictionaryValue* ClientCommandToValue( 715 base::DictionaryValue* ClientCommandToValue(
716 const sync_pb::ClientCommand& proto) { 716 const sync_pb::ClientCommand& proto) {
717 base::DictionaryValue* value = new base::DictionaryValue(); 717 base::DictionaryValue* value = new base::DictionaryValue();
718 SET_INT32(set_sync_poll_interval); 718 SET_INT32(set_sync_poll_interval);
719 SET_INT32(set_sync_long_poll_interval); 719 SET_INT32(set_sync_long_poll_interval);
720 SET_INT32(max_commit_batch_size); 720 SET_INT32(max_commit_batch_size);
721 SET_INT32(sessions_commit_delay_seconds); 721 SET_INT32(sessions_commit_delay_seconds);
722 SET_INT32(throttle_delay_seconds); 722 SET_INT32(throttle_delay_seconds);
723 SET_INT32(client_invalidation_hint_buffer_size);
723 return value; 724 return value;
724 } 725 }
725 726
726 base::DictionaryValue* ErrorToValue( 727 base::DictionaryValue* ErrorToValue(
727 const sync_pb::ClientToServerResponse::Error& proto) { 728 const sync_pb::ClientToServerResponse::Error& proto) {
728 base::DictionaryValue* value = new base::DictionaryValue(); 729 base::DictionaryValue* value = new base::DictionaryValue();
729 SET_ENUM(error_type, GetErrorTypeString); 730 SET_ENUM(error_type, GetErrorTypeString);
730 SET_STR(error_description); 731 SET_STR(error_description);
731 SET_STR(url); 732 SET_STR(url);
732 SET_ENUM(action, GetActionString); 733 SET_ENUM(action, GetActionString);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
838 #undef SET_BYTES 839 #undef SET_BYTES
839 #undef SET_INT32 840 #undef SET_INT32
840 #undef SET_INT64 841 #undef SET_INT64
841 #undef SET_INT64_REP 842 #undef SET_INT64_REP
842 #undef SET_STR 843 #undef SET_STR
843 #undef SET_STR_REP 844 #undef SET_STR_REP
844 845
845 #undef SET_FIELD 846 #undef SET_FIELD
846 847
847 } // namespace syncer 848 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/protocol/client_commands.proto ('k') | sync/protocol/sync.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698