OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // Simple system resources class that uses the current message loop | 5 // Simple system resources class that uses the current message loop |
6 // for scheduling. Assumes the current message loop is already | 6 // for scheduling. Assumes the current message loop is already |
7 // running. | 7 // running. |
8 | 8 |
9 #ifndef COMPONENTS_INVALIDATION_SYNC_SYSTEM_RESOURCES_H_ | 9 #ifndef COMPONENTS_INVALIDATION_SYNC_SYSTEM_RESOURCES_H_ |
10 #define COMPONENTS_INVALIDATION_SYNC_SYSTEM_RESOURCES_H_ | 10 #define COMPONENTS_INVALIDATION_SYNC_SYSTEM_RESOURCES_H_ |
11 | 11 |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/compiler_specific.h" | 16 #include "base/compiler_specific.h" |
17 #include "base/memory/scoped_ptr.h" | 17 #include "base/memory/scoped_ptr.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/message_loop/message_loop.h" | 19 #include "base/message_loop/message_loop.h" |
20 #include "base/threading/non_thread_safe.h" | 20 #include "base/threading/non_thread_safe.h" |
21 #include "base/values.h" | 21 #include "base/values.h" |
22 #include "components/invalidation/invalidation_export.h" | 22 #include "components/invalidation/invalidation_export.h" |
| 23 #include "components/invalidation/invalidator_state.h" |
23 #include "components/invalidation/state_writer.h" | 24 #include "components/invalidation/state_writer.h" |
24 #include "google/cacheinvalidation/include/system-resources.h" | 25 #include "google/cacheinvalidation/include/system-resources.h" |
25 #include "jingle/notifier/base/notifier_options.h" | 26 #include "jingle/notifier/base/notifier_options.h" |
26 #include "sync/internal_api/public/base/invalidator_state.h" | |
27 | 27 |
28 namespace syncer { | 28 namespace syncer { |
29 | 29 |
30 class GCMNetworkChannelDelegate; | 30 class GCMNetworkChannelDelegate; |
31 | 31 |
32 class SyncLogger : public invalidation::Logger { | 32 class SyncLogger : public invalidation::Logger { |
33 public: | 33 public: |
34 SyncLogger(); | 34 SyncLogger(); |
35 | 35 |
36 virtual ~SyncLogger(); | 36 virtual ~SyncLogger(); |
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 scoped_ptr<SyncInvalidationScheduler> internal_scheduler_; | 241 scoped_ptr<SyncInvalidationScheduler> internal_scheduler_; |
242 scoped_ptr<SyncInvalidationScheduler> listener_scheduler_; | 242 scoped_ptr<SyncInvalidationScheduler> listener_scheduler_; |
243 scoped_ptr<SyncStorage> storage_; | 243 scoped_ptr<SyncStorage> storage_; |
244 // sync_network_channel_ is owned by SyncInvalidationListener. | 244 // sync_network_channel_ is owned by SyncInvalidationListener. |
245 SyncNetworkChannel* sync_network_channel_; | 245 SyncNetworkChannel* sync_network_channel_; |
246 }; | 246 }; |
247 | 247 |
248 } // namespace syncer | 248 } // namespace syncer |
249 | 249 |
250 #endif // COMPONENTS_INVALIDATION_SYNC_SYSTEM_RESOURCES_H_ | 250 #endif // COMPONENTS_INVALIDATION_SYNC_SYSTEM_RESOURCES_H_ |
OLD | NEW |