| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "sync/internal_api/public/events/commit_request_event.h" | 5 #include "sync/internal_api/public/events/commit_request_event.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
| 8 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 9 #include "sync/protocol/proto_value_conversions.h" | 11 #include "sync/protocol/proto_value_conversions.h" |
| 10 | 12 |
| 11 namespace syncer { | 13 namespace syncer { |
| 12 | 14 |
| 13 CommitRequestEvent::CommitRequestEvent( | 15 CommitRequestEvent::CommitRequestEvent( |
| 14 base::Time timestamp, | 16 base::Time timestamp, |
| 15 size_t num_items, | 17 size_t num_items, |
| 16 ModelTypeSet contributing_types, | 18 ModelTypeSet contributing_types, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 45 | 47 |
| 46 scoped_ptr<ProtocolEvent> CommitRequestEvent::Clone() const { | 48 scoped_ptr<ProtocolEvent> CommitRequestEvent::Clone() const { |
| 47 return scoped_ptr<ProtocolEvent>( | 49 return scoped_ptr<ProtocolEvent>( |
| 48 new CommitRequestEvent(timestamp_, | 50 new CommitRequestEvent(timestamp_, |
| 49 num_items_, | 51 num_items_, |
| 50 contributing_types_, | 52 contributing_types_, |
| 51 request_)); | 53 request_)); |
| 52 } | 54 } |
| 53 | 55 |
| 54 } // namespace syncer | 56 } // namespace syncer |
| OLD | NEW |