blob: 02339ad55595992d338891587099a54690c39823 [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:
~SystemEncryptor() override;
bool EncryptString(const std::string& plaintext,
std::string* ciphertext) override;
bool DecryptString(const std::string& ciphertext,
std::string* plaintext) override;
};
} // namespace gcm
#endif // COMPONENTS_GCM_DRIVER_SYSTEM_ENCRYPTOR_H_