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 // A simple wrapper around invalidation::InvalidationClient that | 5 // A simple wrapper around invalidation::InvalidationClient that |
6 // handles all the startup/shutdown details and hookups. | 6 // handles all the startup/shutdown details and hookups. |
7 | 7 |
8 #ifndef SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ | 8 #ifndef SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ |
9 #define SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ | 9 #define SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ |
10 #pragma once | |
11 | 10 |
12 #include <map> | 11 #include <map> |
13 #include <string> | 12 #include <string> |
14 | 13 |
15 #include "base/basictypes.h" | 14 #include "base/basictypes.h" |
16 #include "base/compiler_specific.h" | 15 #include "base/compiler_specific.h" |
17 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
18 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
19 #include "base/threading/non_thread_safe.h" | 18 #include "base/threading/non_thread_safe.h" |
20 #include "google/cacheinvalidation/include/invalidation-listener.h" | 19 #include "google/cacheinvalidation/include/invalidation-listener.h" |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 // NO_NOTIFICATION_ERROR meaning notifications are enabled). | 151 // NO_NOTIFICATION_ERROR meaning notifications are enabled). |
153 NotificationsDisabledReason ticl_state_; | 152 NotificationsDisabledReason ticl_state_; |
154 NotificationsDisabledReason push_client_state_; | 153 NotificationsDisabledReason push_client_state_; |
155 | 154 |
156 DISALLOW_COPY_AND_ASSIGN(ChromeInvalidationClient); | 155 DISALLOW_COPY_AND_ASSIGN(ChromeInvalidationClient); |
157 }; | 156 }; |
158 | 157 |
159 } // namespace syncer | 158 } // namespace syncer |
160 | 159 |
161 #endif // SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ | 160 #endif // SYNC_NOTIFIER_CHROME_INVALIDATION_CLIENT_H_ |
OLD | NEW |