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

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

Issue 10698014: [Sync] Rename csync namespace to syncer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 years, 5 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
« no previous file with comments | « sync/notifier/p2p_notifier_unittest.cc ('k') | sync/notifier/push_client_channel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef SYNC_NOTIFIER_PUSH_CLIENT_CHANNEL_H_ 5 #ifndef SYNC_NOTIFIER_PUSH_CLIENT_CHANNEL_H_
6 #define SYNC_NOTIFIER_PUSH_CLIENT_CHANNEL_H_ 6 #define SYNC_NOTIFIER_PUSH_CLIENT_CHANNEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "google/cacheinvalidation/include/system-resources.h" 15 #include "google/cacheinvalidation/include/system-resources.h"
16 #include "jingle/notifier/listener/push_client_observer.h" 16 #include "jingle/notifier/listener/push_client_observer.h"
17 17
18 namespace notifier { 18 namespace notifier {
19 class PushClient; 19 class PushClient;
20 } // namespace notifier 20 } // namespace notifier
21 21
22 namespace csync { 22 namespace syncer {
23 23
24 // A PushClientChannel is an implementation of NetworkChannel that 24 // A PushClientChannel is an implementation of NetworkChannel that
25 // routes messages through a PushClient. 25 // routes messages through a PushClient.
26 class PushClientChannel 26 class PushClientChannel
27 : public invalidation::NetworkChannel, 27 : public invalidation::NetworkChannel,
28 public notifier::PushClientObserver { 28 public notifier::PushClientObserver {
29 public: 29 public:
30 // |push_client| is guaranteed to be destroyed only when this object 30 // |push_client| is guaranteed to be destroyed only when this object
31 // is destroyed. 31 // is destroyed.
32 explicit PushClientChannel(scoped_ptr<notifier::PushClient> push_client); 32 explicit PushClientChannel(scoped_ptr<notifier::PushClient> push_client);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 // Service context. 93 // Service context.
94 std::string service_context_; 94 std::string service_context_;
95 95
96 // Scheduling hash. 96 // Scheduling hash.
97 int64 scheduling_hash_; 97 int64 scheduling_hash_;
98 98
99 DISALLOW_COPY_AND_ASSIGN(PushClientChannel); 99 DISALLOW_COPY_AND_ASSIGN(PushClientChannel);
100 }; 100 };
101 101
102 } // namespace csync 102 } // namespace syncer
103 103
104 #endif // SYNC_NOTIFIER_PUSH_CLIENT_CHANNEL_H_ 104 #endif // SYNC_NOTIFIER_PUSH_CLIENT_CHANNEL_H_
OLDNEW
« no previous file with comments | « sync/notifier/p2p_notifier_unittest.cc ('k') | sync/notifier/push_client_channel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698