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 // An implementation of SyncNotifier that wraps an invalidation | 5 // An implementation of SyncNotifier that wraps an invalidation |
6 // client. Handles the details of connecting to XMPP and hooking it | 6 // client. Handles the details of connecting to XMPP and hooking it |
7 // up to the invalidation client. | 7 // up to the invalidation client. |
8 // | 8 // |
9 // You probably don't want to use this directly; use | 9 // You probably don't want to use this directly; use |
10 // NonBlockingInvalidationNotifier. | 10 // NonBlockingInvalidationNotifier. |
11 | 11 |
12 #ifndef SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ | 12 #ifndef SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ |
13 #define SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ | 13 #define SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ |
14 #pragma once | |
15 | 14 |
16 #include <string> | 15 #include <string> |
17 | 16 |
18 #include "base/basictypes.h" | 17 #include "base/basictypes.h" |
19 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
20 #include "base/memory/scoped_ptr.h" | 19 #include "base/memory/scoped_ptr.h" |
21 #include "base/observer_list.h" | 20 #include "base/observer_list.h" |
22 #include "base/threading/non_thread_safe.h" | 21 #include "base/threading/non_thread_safe.h" |
23 #include "sync/internal_api/public/base/model_type.h" | 22 #include "sync/internal_api/public/base/model_type.h" |
24 #include "sync/internal_api/public/util/weak_handle.h" | 23 #include "sync/internal_api/public/util/weak_handle.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 101 |
103 // The invalidation client. | 102 // The invalidation client. |
104 ChromeInvalidationClient invalidation_client_; | 103 ChromeInvalidationClient invalidation_client_; |
105 | 104 |
106 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); | 105 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); |
107 }; | 106 }; |
108 | 107 |
109 } // namespace syncer | 108 } // namespace syncer |
110 | 109 |
111 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ | 110 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ |
OLD | NEW |