| Index: sync/notifier/gcm_network_channel.h
|
| diff --git a/sync/notifier/gcm_network_channel.h b/sync/notifier/gcm_network_channel.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..ac73b74f03d8f3bd1182cd91219190c29a968b3f
|
| --- /dev/null
|
| +++ b/sync/notifier/gcm_network_channel.h
|
| @@ -0,0 +1,38 @@
|
| +// Copyright 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_H_
|
| +#define SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "base/basictypes.h"
|
| +#include "base/compiler_specific.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "sync/base/sync_export.h"
|
| +#include "sync/notifier/sync_system_resources.h"
|
| +
|
| +namespace syncer {
|
| +
|
| +// GCMNetworkChannel is an implementation of SyncNetworkChannel that routes
|
| +// messages through GCMProfileService.
|
| +class SYNC_EXPORT_PRIVATE GCMNetworkChannel
|
| + : public SyncNetworkChannel {
|
| + public:
|
| + explicit GCMNetworkChannel();
|
| +
|
| + virtual ~GCMNetworkChannel();
|
| +
|
| + // SyncNetworkChannel implementation.
|
| + virtual void SendEncodedMessage(const std::string& encoded_message) OVERRIDE;
|
| + virtual void UpdateCredentials(const std::string& email,
|
| + const std::string& token) OVERRIDE;
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(GCMNetworkChannel);
|
| +};
|
| +
|
| +} // namespace syncer
|
| +
|
| +#endif // SYNC_NOTIFIER_GCM_NETWORK_CHANNEL_H_
|
|
|