summaryrefslogtreecommitdiffstats
path: root/chrome/browser/importer/nss_decryptor.h
blob: 9896a14e1a595001d00619a20850e35e70b9e188 (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
// Copyright (c) 2009 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 CHROME_BROWSER_IMPORTER_NSS_DECRYPTOR_H_
#define CHROME_BROWSER_IMPORTER_NSS_DECRYPTOR_H_
#pragma once

#include "build/build_config.h"

#if defined(OS_MACOSX)
#include "chrome/browser/importer/nss_decryptor_mac.h"
#elif defined(OS_WIN)
#include "chrome/browser/importer/nss_decryptor_win.h"
#elif defined(USE_OPENSSL)
// TODO(joth): It should be an error to include this file with USE_OPENSSL
// defined. (Unless there is a way to do nss decrypt with OpenSSL). Ideally
// we remove the importers that depend on NSS when doing USE_OPENSSL builds, but
// that is going to take some non-trivial refactoring so in the meantime we're
// just falling back to a no-op implementation.
#include "chrome/browser/importer/nss_decryptor_null.h"
#elif defined(USE_NSS)
#include "chrome/browser/importer/nss_decryptor_system_nss.h"
#endif

#endif  // CHROME_BROWSER_IMPORTER_NSS_DECRYPTOR_H_