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 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_FACTORY_H_ | 5 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_FACTORY_H_ |
6 #define CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_FACTORY_H_ | 6 #define CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_FACTORY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "chrome/browser/sync/notifier/invalidation_version_tracker.h" | 11 #include "chrome/browser/sync/notifier/invalidation_version_tracker.h" |
12 #include "chrome/browser/sync/util/weak_handle.h" | |
13 #include "jingle/notifier/base/notifier_options.h" | 12 #include "jingle/notifier/base/notifier_options.h" |
| 13 #include "sync/util/weak_handle.h" |
14 | 14 |
15 namespace sync_notifier { | 15 namespace sync_notifier { |
16 | 16 |
17 class SyncNotifier; | 17 class SyncNotifier; |
18 | 18 |
19 // Class to instantiate various implementations of the SyncNotifier | 19 // Class to instantiate various implementations of the SyncNotifier |
20 // interface. | 20 // interface. |
21 class SyncNotifierFactory { | 21 class SyncNotifierFactory { |
22 public: | 22 public: |
23 // |client_info| is a string identifying the client, e.g. a user | 23 // |client_info| is a string identifying the client, e.g. a user |
(...skipping 15 matching lines...) Expand all Loading... |
39 const notifier::NotifierOptions notifier_options_; | 39 const notifier::NotifierOptions notifier_options_; |
40 const std::string client_info_; | 40 const std::string client_info_; |
41 const InvalidationVersionMap initial_max_invalidation_versions_; | 41 const InvalidationVersionMap initial_max_invalidation_versions_; |
42 const browser_sync::WeakHandle<InvalidationVersionTracker> | 42 const browser_sync::WeakHandle<InvalidationVersionTracker> |
43 invalidation_version_tracker_; | 43 invalidation_version_tracker_; |
44 }; | 44 }; |
45 | 45 |
46 } // namespace sync_notifier | 46 } // namespace sync_notifier |
47 | 47 |
48 #endif // CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_FACTORY_H_ | 48 #endif // CHROME_BROWSER_SYNC_NOTIFIER_SYNC_NOTIFIER_FACTORY_H_ |
OLD | NEW |