blob: ebefd301d6521a0b4968a0bfc001430ec3143bc0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// 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_DATA_TYPE_ENCRYPTION_HANDLER_H_
#define COMPONENTS_SYNC_DRIVER_DATA_TYPE_ENCRYPTION_HANDLER_H_
#include "base/basictypes.h"
#include "sync/internal_api/public/base/model_type.h"
namespace sync_driver {
// The DataTypeEncryptionHandler provides the status of datatype encryption.
class DataTypeEncryptionHandler {
public:
DataTypeEncryptionHandler();
virtual ~DataTypeEncryptionHandler();
// Returns true if a passphrase is required for encryption to proceed, false
// otherwise.
virtual bool IsPassphraseRequired() const = 0;
// Returns the current set of encrypted data types.
virtual syncer::ModelTypeSet GetEncryptedDataTypes() const = 0;
};
} // namespace sync_driver
#endif // COMPONENTS_SYNC_DRIVER_DATA_TYPE_ENCRYPTION_HANDLER_H_
|