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 #include <cstddef> | 5 #include <cstddef> |
6 #include <cstdio> | 6 #include <cstdio> |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/compiler_specific.h" | 11 #include "base/compiler_specific.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/message_loop/message_loop.h" | 15 #include "base/message_loop/message_loop.h" |
16 #include "base/rand_util.h" | 16 #include "base/rand_util.h" |
17 #include "base/threading/thread.h" | 17 #include "base/threading/thread.h" |
18 #include "components/invalidation/impl/invalidation_state_tracker.h" | 18 #include "components/invalidation/impl/invalidation_state_tracker.h" |
19 #include "components/invalidation/impl/invalidator.h" | 19 #include "components/invalidation/impl/invalidator.h" |
20 #include "components/invalidation/impl/non_blocking_invalidator.h" | 20 #include "components/invalidation/impl/non_blocking_invalidator.h" |
21 #include "components/invalidation/public/invalidation_handler.h" | 21 #include "components/invalidation/public/invalidation_handler.h" |
22 #include "components/invalidation/public/invalidation_util.h" | 22 #include "components/invalidation/public/invalidation_util.h" |
23 #include "components/invalidation/public/object_id_invalidation_map.h" | 23 #include "components/invalidation/public/object_id_invalidation_map.h" |
| 24 #include "components/sync_driver/invalidation_helper.h" |
24 #include "jingle/notifier/base/notification_method.h" | 25 #include "jingle/notifier/base/notification_method.h" |
25 #include "jingle/notifier/base/notifier_options.h" | 26 #include "jingle/notifier/base/notifier_options.h" |
26 #include "net/base/host_port_pair.h" | 27 #include "net/base/host_port_pair.h" |
27 #include "net/base/network_change_notifier.h" | 28 #include "net/base/network_change_notifier.h" |
28 #include "net/dns/host_resolver.h" | 29 #include "net/dns/host_resolver.h" |
29 #include "net/http/transport_security_state.h" | 30 #include "net/http/transport_security_state.h" |
30 #include "net/url_request/url_request_test_util.h" | 31 #include "net/url_request/url_request_test_util.h" |
31 #include "sync/internal_api/public/base/model_type.h" | 32 #include "sync/internal_api/public/base/model_type.h" |
32 #include "sync/tools/invalidation_helper.h" | |
33 #include "sync/tools/null_invalidation_state_tracker.h" | 33 #include "sync/tools/null_invalidation_state_tracker.h" |
34 | 34 |
35 #if defined(OS_MACOSX) | 35 #if defined(OS_MACOSX) |
36 #include "base/mac/scoped_nsautorelease_pool.h" | 36 #include "base/mac/scoped_nsautorelease_pool.h" |
37 #endif | 37 #endif |
38 | 38 |
39 // This is a simple utility that initializes a sync notifier and | 39 // This is a simple utility that initializes a sync notifier and |
40 // listens to any received notifications. | 40 // listens to any received notifications. |
41 | 41 |
42 namespace syncer { | 42 namespace syncer { |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 io_thread.Stop(); | 210 io_thread.Stop(); |
211 return 0; | 211 return 0; |
212 } | 212 } |
213 | 213 |
214 } // namespace | 214 } // namespace |
215 } // namespace syncer | 215 } // namespace syncer |
216 | 216 |
217 int main(int argc, char* argv[]) { | 217 int main(int argc, char* argv[]) { |
218 return syncer::SyncListenNotificationsMain(argc, argv); | 218 return syncer::SyncListenNotificationsMain(argc, argv); |
219 } | 219 } |
OLD | NEW |