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 InvalidationNotifier | 5 // An implementation of SyncNotifier that wraps InvalidationNotifier |
6 // on its own thread. | 6 // on its own thread. |
7 | 7 |
8 #ifndef SYNC_NOTIFIER_NON_BLOCKING_INVALIDATION_NOTIFIER_H_ | 8 #ifndef SYNC_NOTIFIER_NON_BLOCKING_INVALIDATION_NOTIFIER_H_ |
9 #define SYNC_NOTIFIER_NON_BLOCKING_INVALIDATION_NOTIFIER_H_ | 9 #define SYNC_NOTIFIER_NON_BLOCKING_INVALIDATION_NOTIFIER_H_ |
10 #pragma once | |
11 | 10 |
12 #include <string> | 11 #include <string> |
13 | 12 |
14 #include "base/basictypes.h" | 13 #include "base/basictypes.h" |
15 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
16 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
17 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
18 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
19 #include "jingle/notifier/base/notifier_options.h" | 18 #include "jingle/notifier/base/notifier_options.h" |
20 #include "sync/internal_api/public/util/weak_handle.h" | 19 #include "sync/internal_api/public/util/weak_handle.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 scoped_refptr<Core> core_; | 76 scoped_refptr<Core> core_; |
78 scoped_refptr<base::SingleThreadTaskRunner> parent_task_runner_; | 77 scoped_refptr<base::SingleThreadTaskRunner> parent_task_runner_; |
79 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; | 78 scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_; |
80 | 79 |
81 DISALLOW_COPY_AND_ASSIGN(NonBlockingInvalidationNotifier); | 80 DISALLOW_COPY_AND_ASSIGN(NonBlockingInvalidationNotifier); |
82 }; | 81 }; |
83 | 82 |
84 } // namespace syncer | 83 } // namespace syncer |
85 | 84 |
86 #endif // SYNC_NOTIFIER_NON_BLOCKING_INVALIDATION_NOTIFIER_H_ | 85 #endif // SYNC_NOTIFIER_NON_BLOCKING_INVALIDATION_NOTIFIER_H_ |
OLD | NEW |