diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-29 21:48:11 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-29 21:48:11 +0000 |
commit | 6e7845aed4759ab35d722ce0551b5a90d21e7640 (patch) | |
tree | f29a3f007f7ded842d2096446ff7ecaf186cb362 /net/cert/cert_database_android.cc | |
parent | a6b4f91d970aa2b71b0f3552dbc11e94f7650fd5 (diff) | |
download | chromium_src-6e7845aed4759ab35d722ce0551b5a90d21e7640.zip chromium_src-6e7845aed4759ab35d722ce0551b5a90d21e7640.tar.gz chromium_src-6e7845aed4759ab35d722ce0551b5a90d21e7640.tar.bz2 |
net: extract net/cert out of net/base
This introduces the following dependency of net/base on things outside:
net/base/openssl_client_key_store.cc:#include "net/cert/x509_certificate.h"
BUG=70818
Review URL: https://codereview.chromium.org/13006020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191450 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/cert/cert_database_android.cc')
-rw-r--r-- | net/cert/cert_database_android.cc | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/net/cert/cert_database_android.cc b/net/cert/cert_database_android.cc new file mode 100644 index 0000000..9755805 --- /dev/null +++ b/net/cert/cert_database_android.cc @@ -0,0 +1,39 @@ +// Copyright (c) 2012 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. + +#include "net/cert/cert_database.h" + +#include "base/logging.h" +#include "base/observer_list_threadsafe.h" +#include "net/base/net_errors.h" + +namespace net { + +CertDatabase::CertDatabase() + : observer_list_(new ObserverListThreadSafe<Observer>) { +} + +CertDatabase::~CertDatabase() {} + +int CertDatabase::CheckUserCert(X509Certificate* cert) { + // NOTE: This method shall never be called on Android. + // + // On other platforms, it is only used by the SSLAddCertHandler class + // to handle veritication and installation of downloaded certificates. + // + // On Android, the certificate data is passed directly to the system's + // CertInstaller activity, which handles verification, naming, + // installation and UI (for success/failure). + NOTIMPLEMENTED(); + return ERR_NOT_IMPLEMENTED; +} + +int CertDatabase::AddUserCert(X509Certificate* cert) { + // This method is only used by the content SSLAddCertHandler which is + // never used on Android. + NOTIMPLEMENTED(); + return ERR_NOT_IMPLEMENTED; +} + +} // namespace net |