Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Unified Diff: chromeos/network/certificate_handler.h

Issue 20041002: Make CertificateHandler a proper interface of CertificateImporter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/network/certificate_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/network/certificate_handler.h
diff --git a/chromeos/network/certificate_handler.h b/chromeos/network/certificate_handler.h
deleted file mode 100644
index c4df5b8ced13d6f381bece6f18cd665bbf5ca9a3..0000000000000000000000000000000000000000
--- a/chromeos/network/certificate_handler.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) 2013 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 CHROMEOS_NETWORK_CERTIFICATE_HANDLER_H_
-#define CHROMEOS_NETWORK_CERTIFICATE_HANDLER_H_
-
-#include "base/memory/ref_counted.h"
-#include "chromeos/chromeos_export.h"
-#include "chromeos/network/onc/onc_constants.h"
-#include "net/cert/x509_certificate.h"
-
-namespace base {
-class ListValue;
-}
-
-namespace chromeos {
-
-class CHROMEOS_EXPORT CertificateHandler {
- public:
- CertificateHandler();
- virtual ~CertificateHandler();
-
- // Import the |certificates|, which must be a list of ONC Certificate objects.
- // If |onc_trusted_certificates| is not NULL, it will be filled with the list
- // of certificates that requested the TrustBit "Web". If
- // |imported_server_and_ca_certs| is not null, it will be filled with the
- // (GUID, Certificate) pairs of all successfully imported Server and CA
- // certificates. Returns true if all certificates were imported successfully.
- virtual bool ImportCertificates(
- const base::ListValue& certificates,
- onc::ONCSource source,
- net::CertificateList* onc_trusted_certificates);
-
- private:
- DISALLOW_COPY_AND_ASSIGN(CertificateHandler);
-};
-
-} // namespace chromeos
-
-#endif // CHROMEOS_NETWORK_CERTIFICATE_HANDLER_H_
« no previous file with comments | « chromeos/chromeos.gyp ('k') | chromeos/network/certificate_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698