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/non_blocking_invalidator.h" | |
19 #include "jingle/notifier/base/notification_method.h" | 18 #include "jingle/notifier/base/notification_method.h" |
20 #include "jingle/notifier/base/notifier_options.h" | 19 #include "jingle/notifier/base/notifier_options.h" |
21 #include "net/base/host_port_pair.h" | 20 #include "net/base/host_port_pair.h" |
22 #include "net/base/network_change_notifier.h" | 21 #include "net/base/network_change_notifier.h" |
23 #include "net/dns/host_resolver.h" | 22 #include "net/dns/host_resolver.h" |
24 #include "net/http/transport_security_state.h" | 23 #include "net/http/transport_security_state.h" |
25 #include "net/url_request/url_request_test_util.h" | 24 #include "net/url_request/url_request_test_util.h" |
26 #include "sync/internal_api/public/base/model_type.h" | 25 #include "sync/internal_api/public/base/model_type.h" |
27 #include "sync/notifier/invalidation_handler.h" | 26 #include "sync/notifier/invalidation_handler.h" |
28 #include "sync/notifier/invalidation_state_tracker.h" | 27 #include "sync/notifier/invalidation_state_tracker.h" |
29 #include "sync/notifier/invalidation_util.h" | 28 #include "sync/notifier/invalidation_util.h" |
30 #include "sync/notifier/invalidator.h" | 29 #include "sync/notifier/invalidator.h" |
| 30 #include "sync/notifier/non_blocking_invalidator.h" |
31 #include "sync/notifier/object_id_invalidation_map.h" | 31 #include "sync/notifier/object_id_invalidation_map.h" |
32 #include "sync/tools/null_invalidation_state_tracker.h" | 32 #include "sync/tools/null_invalidation_state_tracker.h" |
33 | 33 |
34 #if defined(OS_MACOSX) | 34 #if defined(OS_MACOSX) |
35 #include "base/mac/scoped_nsautorelease_pool.h" | 35 #include "base/mac/scoped_nsautorelease_pool.h" |
36 #endif | 36 #endif |
37 | 37 |
38 // This is a simple utility that initializes a sync notifier and | 38 // This is a simple utility that initializes a sync notifier and |
39 // listens to any received notifications. | 39 // listens to any received notifications. |
40 | 40 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 io_thread.Stop(); | 211 io_thread.Stop(); |
212 return 0; | 212 return 0; |
213 } | 213 } |
214 | 214 |
215 } // namespace | 215 } // namespace |
216 } // namespace syncer | 216 } // namespace syncer |
217 | 217 |
218 int main(int argc, char* argv[]) { | 218 int main(int argc, char* argv[]) { |
219 return syncer::SyncListenNotificationsMain(argc, argv); | 219 return syncer::SyncListenNotificationsMain(argc, argv); |
220 } | 220 } |
OLD | NEW |