| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "chrome/browser/sync/syncable/syncable.h" | 5 #include "chrome/browser/sync/syncable/syncable.h" |
| 6 | 6 |
| 7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 8 | 8 |
| 9 #include <sys/stat.h> | 9 #include <sys/stat.h> |
| 10 #if defined(OS_POSIX) | 10 #if defined(OS_POSIX) |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "base/file_util.h" | 30 #include "base/file_util.h" |
| 31 #include "base/logging.h" | 31 #include "base/logging.h" |
| 32 #include "base/perftimer.h" | 32 #include "base/perftimer.h" |
| 33 #include "base/scoped_ptr.h" | 33 #include "base/scoped_ptr.h" |
| 34 #include "base/string_util.h" | 34 #include "base/string_util.h" |
| 35 #include "base/time.h" | 35 #include "base/time.h" |
| 36 #include "chrome/browser/sync/engine/syncer.h" | 36 #include "chrome/browser/sync/engine/syncer.h" |
| 37 #include "chrome/browser/sync/engine/syncer_util.h" | 37 #include "chrome/browser/sync/engine/syncer_util.h" |
| 38 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" | 38 #include "chrome/browser/sync/protocol/autofill_specifics.pb.h" |
| 39 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" | 39 #include "chrome/browser/sync/protocol/bookmark_specifics.pb.h" |
| 40 #include "chrome/browser/sync/protocol/password_specifics.pb.h" |
| 40 #include "chrome/browser/sync/protocol/preference_specifics.pb.h" | 41 #include "chrome/browser/sync/protocol/preference_specifics.pb.h" |
| 41 #include "chrome/browser/sync/protocol/service_constants.h" | 42 #include "chrome/browser/sync/protocol/service_constants.h" |
| 42 #include "chrome/browser/sync/protocol/theme_specifics.pb.h" | 43 #include "chrome/browser/sync/protocol/theme_specifics.pb.h" |
| 43 #include "chrome/browser/sync/protocol/typed_url_specifics.pb.h" | 44 #include "chrome/browser/sync/protocol/typed_url_specifics.pb.h" |
| 44 #include "chrome/browser/sync/syncable/directory_backing_store.h" | 45 #include "chrome/browser/sync/syncable/directory_backing_store.h" |
| 45 #include "chrome/browser/sync/syncable/directory_manager.h" | 46 #include "chrome/browser/sync/syncable/directory_manager.h" |
| 46 #include "chrome/browser/sync/syncable/syncable-inl.h" | 47 #include "chrome/browser/sync/syncable/syncable-inl.h" |
| 47 #include "chrome/browser/sync/syncable/syncable_changes_version.h" | 48 #include "chrome/browser/sync/syncable/syncable_changes_version.h" |
| 48 #include "chrome/browser/sync/syncable/syncable_columns.h" | 49 #include "chrome/browser/sync/syncable/syncable_columns.h" |
| 49 #include "chrome/browser/sync/util/crypto_helpers.h" | 50 #include "chrome/browser/sync/util/crypto_helpers.h" |
| (...skipping 1530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 return s << std::dec; | 1581 return s << std::dec; |
| 1581 } | 1582 } |
| 1582 | 1583 |
| 1583 FastDump& operator<<(FastDump& dump, const syncable::Blob& blob) { | 1584 FastDump& operator<<(FastDump& dump, const syncable::Blob& blob) { |
| 1584 if (blob.empty()) | 1585 if (blob.empty()) |
| 1585 return dump; | 1586 return dump; |
| 1586 string buffer(HexEncode(&blob[0], blob.size())); | 1587 string buffer(HexEncode(&blob[0], blob.size())); |
| 1587 dump.out_->sputn(buffer.c_str(), buffer.size()); | 1588 dump.out_->sputn(buffer.c_str(), buffer.size()); |
| 1588 return dump; | 1589 return dump; |
| 1589 } | 1590 } |
| OLD | NEW |