| Index: components/gcm_driver/system_encryptor.h
|
| diff --git a/components/sync_driver/system_encryptor.h b/components/gcm_driver/system_encryptor.h
|
| similarity index 57%
|
| copy from components/sync_driver/system_encryptor.h
|
| copy to components/gcm_driver/system_encryptor.h
|
| index 5552b76d2f02362f2d70c3e2567cd5651797d91b..c7ae64590a81dcb844d4c8cd45554b87d0ed47ed 100644
|
| --- a/components/sync_driver/system_encryptor.h
|
| +++ b/components/gcm_driver/system_encryptor.h
|
| @@ -1,27 +1,27 @@
|
| -// Copyright 2014 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 COMPONENTS_SYNC_DRIVER_SYSTEM_ENCRYPTOR_H_
|
| -#define COMPONENTS_SYNC_DRIVER_SYSTEM_ENCRYPTOR_H_
|
| -
|
| -#include "base/compiler_specific.h"
|
| -#include "sync/util/encryptor.h"
|
| -
|
| -namespace browser_sync {
|
| -
|
| -// Encryptor that uses the Chrome password manager's encryptor.
|
| -class SystemEncryptor : public syncer::Encryptor {
|
| - public:
|
| - virtual ~SystemEncryptor();
|
| -
|
| - virtual bool EncryptString(const std::string& plaintext,
|
| - std::string* ciphertext) OVERRIDE;
|
| -
|
| - virtual bool DecryptString(const std::string& ciphertext,
|
| - std::string* plaintext) OVERRIDE;
|
| -};
|
| -
|
| -} // namespace browser_sync
|
| -
|
| -#endif // COMPONENTS_SYNC_DRIVER_SYSTEM_ENCRYPTOR_H_
|
| +// Copyright (c) 2014 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 COMPONENTS_GCM_DRIVER_SYSTEM_ENCRYPTOR_H_
|
| +#define COMPONENTS_GCM_DRIVER_SYSTEM_ENCRYPTOR_H_
|
| +
|
| +#include "base/compiler_specific.h"
|
| +#include "google_apis/gcm/base/encryptor.h"
|
| +
|
| +namespace gcm {
|
| +
|
| +// Encryptor that uses the Chrome password manager's encryptor.
|
| +class SystemEncryptor : public Encryptor {
|
| + public:
|
| + virtual ~SystemEncryptor();
|
| +
|
| + virtual bool EncryptString(const std::string& plaintext,
|
| + std::string* ciphertext) OVERRIDE;
|
| +
|
| + virtual bool DecryptString(const std::string& ciphertext,
|
| + std::string* plaintext) OVERRIDE;
|
| +};
|
| +
|
| +} // namespace gcm
|
| +
|
| +#endif // COMPONENTS_GCM_DRIVER_SYSTEM_ENCRYPTOR_H_
|
|
|