Commit 99bbc17d authored by jianli@chromium.org's avatar jianli@chromium.org

Fix incorrect line endsing for some gcm_driver files

BUG=none
TEST=none
TBR=zea@chromium.org

Review URL: https://codereview.chromium.org/321593003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@275519 0039d316-1c4b-4281-b951-d872f2087c98
parent 69ebab44
// Copyright (c) 2014 The Chromium Authors. All rights reserved. // Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef COMPONENTS_GCM_DRIVER_DEFAULT_GCM_APP_HANDLER_H_ #ifndef COMPONENTS_GCM_DRIVER_DEFAULT_GCM_APP_HANDLER_H_
#define COMPONENTS_GCM_DRIVER_DEFAULT_GCM_APP_HANDLER_H_ #define COMPONENTS_GCM_DRIVER_DEFAULT_GCM_APP_HANDLER_H_
#include "base/compiler_specific.h" #include "base/compiler_specific.h"
#include "components/gcm_driver/gcm_app_handler.h" #include "components/gcm_driver/gcm_app_handler.h"
namespace gcm { namespace gcm {
// The default app handler that is triggered when there is no registered app // The default app handler that is triggered when there is no registered app
// handler for an application id. // handler for an application id.
class DefaultGCMAppHandler : public GCMAppHandler { class DefaultGCMAppHandler : public GCMAppHandler {
public: public:
DefaultGCMAppHandler(); DefaultGCMAppHandler();
virtual ~DefaultGCMAppHandler(); virtual ~DefaultGCMAppHandler();
// Overridden from GCMAppHandler: // Overridden from GCMAppHandler:
virtual void ShutdownHandler() OVERRIDE; virtual void ShutdownHandler() OVERRIDE;
virtual void OnMessage(const std::string& app_id, virtual void OnMessage(const std::string& app_id,
const GCMClient::IncomingMessage& message) OVERRIDE; const GCMClient::IncomingMessage& message) OVERRIDE;
virtual void OnMessagesDeleted(const std::string& app_id) OVERRIDE; virtual void OnMessagesDeleted(const std::string& app_id) OVERRIDE;
virtual void OnSendError( virtual void OnSendError(
const std::string& app_id, const std::string& app_id,
const GCMClient::SendErrorDetails& send_error_details) OVERRIDE; const GCMClient::SendErrorDetails& send_error_details) OVERRIDE;
private: private:
DISALLOW_COPY_AND_ASSIGN(DefaultGCMAppHandler); DISALLOW_COPY_AND_ASSIGN(DefaultGCMAppHandler);
}; };
} // namespace gcm } // namespace gcm
#endif // COMPONENTS_GCM_DRIVER_DEFAULT_GCM_APP_HANDLER_H_ #endif // COMPONENTS_GCM_DRIVER_DEFAULT_GCM_APP_HANDLER_H_
// Copyright (c) 2014 The Chromium Authors. All rights reserved. // Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef COMPONENTS_GCM_DRIVER_GCM_CLIENT_FACTORY_H_ #ifndef COMPONENTS_GCM_DRIVER_GCM_CLIENT_FACTORY_H_
#define COMPONENTS_GCM_DRIVER_GCM_CLIENT_FACTORY_H_ #define COMPONENTS_GCM_DRIVER_GCM_CLIENT_FACTORY_H_
#include "base/macros.h" #include "base/macros.h"
#include "base/memory/scoped_ptr.h" #include "base/memory/scoped_ptr.h"
namespace gcm { namespace gcm {
class GCMClient; class GCMClient;
class GCMClientFactory { class GCMClientFactory {
public: public:
GCMClientFactory(); GCMClientFactory();
virtual ~GCMClientFactory(); virtual ~GCMClientFactory();
// Creates a new instance of GCMClient. The testing code could override this // Creates a new instance of GCMClient. The testing code could override this
// to provide a mocked instance. // to provide a mocked instance.
virtual scoped_ptr<GCMClient> BuildInstance(); virtual scoped_ptr<GCMClient> BuildInstance();
private: private:
DISALLOW_COPY_AND_ASSIGN(GCMClientFactory); DISALLOW_COPY_AND_ASSIGN(GCMClientFactory);
}; };
} // namespace gcm } // namespace gcm
#endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_FACTORY_H_ #endif // COMPONENTS_GCM_DRIVER_GCM_CLIENT_FACTORY_H_
// Copyright (c) 2014 The Chromium Authors. All rights reserved. // Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef COMPONENTS_GCM_DRIVER_SYSTEM_ENCRYPTOR_H_ #ifndef COMPONENTS_GCM_DRIVER_SYSTEM_ENCRYPTOR_H_
#define COMPONENTS_GCM_DRIVER_SYSTEM_ENCRYPTOR_H_ #define COMPONENTS_GCM_DRIVER_SYSTEM_ENCRYPTOR_H_
#include "base/compiler_specific.h" #include "base/compiler_specific.h"
#include "google_apis/gcm/base/encryptor.h" #include "google_apis/gcm/base/encryptor.h"
namespace gcm { namespace gcm {
// Encryptor that uses the Chrome password manager's encryptor. // Encryptor that uses the Chrome password manager's encryptor.
class SystemEncryptor : public Encryptor { class SystemEncryptor : public Encryptor {
public: public:
virtual ~SystemEncryptor(); virtual ~SystemEncryptor();
virtual bool EncryptString(const std::string& plaintext, virtual bool EncryptString(const std::string& plaintext,
std::string* ciphertext) OVERRIDE; std::string* ciphertext) OVERRIDE;
virtual bool DecryptString(const std::string& ciphertext, virtual bool DecryptString(const std::string& ciphertext,
std::string* plaintext) OVERRIDE; std::string* plaintext) OVERRIDE;
}; };
} // namespace gcm } // namespace gcm
#endif // COMPONENTS_GCM_DRIVER_SYSTEM_ENCRYPTOR_H_ #endif // COMPONENTS_GCM_DRIVER_SYSTEM_ENCRYPTOR_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment