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

Unified Diff: chrome/browser/extensions/api/networking_private/crypto_verify_impl.h

Issue 2751423004: Move NetworkingPrivateDelegate::CryptoVerify to networking_cast_private (Closed)
Patch Set: blocking pool removed Created 3 years, 9 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
Index: chrome/browser/extensions/api/networking_private/crypto_verify_impl.h
diff --git a/chrome/browser/extensions/api/networking_private/crypto_verify_impl.h b/chrome/browser/extensions/api/networking_private/crypto_verify_impl.h
deleted file mode 100644
index fe8ed7dff41928d35fcad9cd38cc39db2578c260..0000000000000000000000000000000000000000
--- a/chrome/browser/extensions/api/networking_private/crypto_verify_impl.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// 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 CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_CRYPTO_VERIFY_IMPL_H_
-#define CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_CRYPTO_VERIFY_IMPL_H_
-
-#include "base/macros.h"
-#include "base/memory/ref_counted.h"
-#include "extensions/browser/api/networking_private/networking_private_delegate.h"
-
-namespace base {
-class SequencedTaskRunner;
-}
-
-namespace extensions {
-
-// Implementation of NetworkingPrivateDelegate::VerifyDelegate using
-// networking_private_crypto.
-class CryptoVerifyImpl : public NetworkingPrivateDelegate::VerifyDelegate {
- public:
- CryptoVerifyImpl();
- ~CryptoVerifyImpl() override;
-
- struct Credentials {
- // VerificationProperties are not copyable so define a struct that can be
- // passed to tasks on the worker thread.
- explicit Credentials(const VerificationProperties& properties);
- Credentials(const Credentials& other);
- ~Credentials();
-
- std::string certificate;
- std::vector<std::string> intermediate_certificates;
- std::string signed_data;
- std::string unsigned_data;
- std::string device_bssid;
- std::string public_key;
- };
-
- // NetworkingPrivateDelegate::VerifyDelegate
- void VerifyDestination(const VerificationProperties& verification_properties,
- const BoolCallback& success_callback,
- const FailureCallback& failure_callback) override;
- void VerifyAndEncryptCredentials(
- const std::string& guid,
- const VerificationProperties& verification_properties,
- const StringCallback& success_callback,
- const FailureCallback& failure_callback) override;
- void VerifyAndEncryptData(
- const VerificationProperties& verification_properties,
- const std::string& data,
- const StringCallback& success_callback,
- const FailureCallback& failure_callback) override;
-
- private:
- // Task runner for blocking tasks.
- scoped_refptr<base::SequencedTaskRunner> blocking_pool_task_runner_;
-
- DISALLOW_COPY_AND_ASSIGN(CryptoVerifyImpl);
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_CRYPTO_VERIFY_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698