Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: sync/notifier/invalidation_notifier.h

Issue 10534080: sync: move internal_api components used by chrome/browser into internal_api/public (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 14 #pragma once
15 15
16 #include <string> 16 #include <string>
17 17
18 #include "base/basictypes.h" 18 #include "base/basictypes.h"
19 #include "base/compiler_specific.h" 19 #include "base/compiler_specific.h"
20 #include "base/memory/scoped_ptr.h" 20 #include "base/memory/scoped_ptr.h"
21 #include "base/observer_list.h" 21 #include "base/observer_list.h"
22 #include "base/threading/non_thread_safe.h" 22 #include "base/threading/non_thread_safe.h"
23 #include "sync/internal_api/public/syncable/model_type.h" 23 #include "sync/internal_api/public/syncable/model_type.h"
24 #include "sync/internal_api/public/util/weak_handle.h"
24 #include "sync/notifier/chrome_invalidation_client.h" 25 #include "sync/notifier/chrome_invalidation_client.h"
25 #include "sync/notifier/invalidation_state_tracker.h" 26 #include "sync/notifier/invalidation_state_tracker.h"
26 #include "sync/notifier/sync_notifier.h" 27 #include "sync/notifier/sync_notifier.h"
27 #include "sync/util/weak_handle.h"
28 28
29 namespace notifier { 29 namespace notifier {
30 class PushClient; 30 class PushClient;
31 } // namespace notifier 31 } // namespace notifier
32 32
33 namespace sync_notifier { 33 namespace sync_notifier {
34 34
35 // This class must live on the IO thread. 35 // This class must live on the IO thread.
36 class InvalidationNotifier 36 class InvalidationNotifier
37 : public SyncNotifier, 37 : public SyncNotifier,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 // The invalidation client. 102 // The invalidation client.
103 ChromeInvalidationClient invalidation_client_; 103 ChromeInvalidationClient invalidation_client_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); 105 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier);
106 }; 106 };
107 107
108 } // namespace sync_notifier 108 } // namespace sync_notifier
109 109
110 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ 110 #endif // SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_
OLDNEW
« no previous file with comments | « sync/notifier/chrome_invalidation_client_unittest.cc ('k') | sync/notifier/invalidation_notifier_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698