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

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

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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) 2011 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 CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ 12 #ifndef CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_
13 #define CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ 13 #define CHROME_BROWSER_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 "chrome/browser/sync/notifier/chrome_invalidation_client.h" 23 #include "chrome/browser/sync/notifier/chrome_invalidation_client.h"
24 #include "chrome/browser/sync/notifier/invalidation_version_tracker.h" 24 #include "chrome/browser/sync/notifier/invalidation_version_tracker.h"
25 #include "chrome/browser/sync/notifier/state_writer.h" 25 #include "chrome/browser/sync/notifier/state_writer.h"
26 #include "chrome/browser/sync/notifier/sync_notifier.h" 26 #include "chrome/browser/sync/notifier/sync_notifier.h"
27 #include "chrome/browser/sync/syncable/model_type.h"
28 #include "chrome/browser/sync/util/weak_handle.h"
29 #include "jingle/notifier/base/notifier_options.h" 27 #include "jingle/notifier/base/notifier_options.h"
30 #include "jingle/notifier/communicator/login.h" 28 #include "jingle/notifier/communicator/login.h"
29 #include "sync/syncable/model_type.h"
30 #include "sync/util/weak_handle.h"
31 31
32 namespace sync_notifier { 32 namespace sync_notifier {
33 33
34 // This class must live on the IO thread. 34 // This class must live on the IO thread.
35 class InvalidationNotifier 35 class InvalidationNotifier
36 : public SyncNotifier, 36 : public SyncNotifier,
37 public notifier::LoginDelegate, 37 public notifier::LoginDelegate,
38 public ChromeInvalidationClient::Listener, 38 public ChromeInvalidationClient::Listener,
39 public StateWriter { 39 public StateWriter {
40 public: 40 public:
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 // The invalidation client. 115 // The invalidation client.
116 ChromeInvalidationClient invalidation_client_; 116 ChromeInvalidationClient invalidation_client_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier); 118 DISALLOW_COPY_AND_ASSIGN(InvalidationNotifier);
119 }; 119 };
120 120
121 } // namespace sync_notifier 121 } // namespace sync_notifier
122 122
123 #endif // CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_ 123 #endif // CHROME_BROWSER_SYNC_NOTIFIER_INVALIDATION_NOTIFIER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698