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

Unified Diff: blimp/net/exact_match_cert_verifier.h

Issue 2632803002: Remove all blimp network code. (Closed)
Patch Set: merge from origin/master for good measure Created 3 years, 11 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 | « blimp/net/engine_connection_manager_unittest.cc ('k') | blimp/net/exact_match_cert_verifier.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/exact_match_cert_verifier.h
diff --git a/blimp/net/exact_match_cert_verifier.h b/blimp/net/exact_match_cert_verifier.h
deleted file mode 100644
index ee108782d2350f9c9dfcc744e29e33fe14d8cabf..0000000000000000000000000000000000000000
--- a/blimp/net/exact_match_cert_verifier.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2016 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 BLIMP_NET_EXACT_MATCH_CERT_VERIFIER_H_
-#define BLIMP_NET_EXACT_MATCH_CERT_VERIFIER_H_
-
-#include <string>
-#include <vector>
-
-#include "blimp/net/blimp_net_export.h"
-#include "net/cert/cert_verifier.h"
-
-namespace net {
-class HashValue;
-} // namespace net
-
-namespace blimp {
-
-// Checks if the peer certificate is an exact match to the X.509 certificate
-// |engine_cert|, which is specified at class construction time.
-class BLIMP_NET_EXPORT ExactMatchCertVerifier : public net::CertVerifier {
- public:
- // |engine_cert|: The single allowable certificate.
- explicit ExactMatchCertVerifier(
- scoped_refptr<net::X509Certificate> engine_cert);
-
- ~ExactMatchCertVerifier() override;
-
- // net::CertVerifier implementation.
- int Verify(const RequestParams& params,
- net::CRLSet* crl_set,
- net::CertVerifyResult* verify_result,
- const net::CompletionCallback& callback,
- std::unique_ptr<Request>* out_req,
- const net::NetLogWithSource& net_log) override;
-
- private:
- scoped_refptr<net::X509Certificate> engine_cert_;
- std::vector<net::HashValue> engine_cert_hashes_;
-
- DISALLOW_COPY_AND_ASSIGN(ExactMatchCertVerifier);
-};
-
-} // namespace blimp
-
-#endif // BLIMP_NET_EXACT_MATCH_CERT_VERIFIER_H_
« no previous file with comments | « blimp/net/engine_connection_manager_unittest.cc ('k') | blimp/net/exact_match_cert_verifier.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698