blob: 48913a69ecb11d612d114764a5b1e90b9b902bba [file] [log] [blame]
// 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_