| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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 | 
| OLD | NEW | 
|---|