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

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

Issue 442073003: Separate CryptoVerifyImpl into its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Feedback Created 6 years, 4 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
new file mode 100644
index 0000000000000000000000000000000000000000..17a01b1975a43d74ad839de79dc9e975d196f804
--- /dev/null
+++ b/chrome/browser/extensions/api/networking_private/crypto_verify_impl.h
@@ -0,0 +1,37 @@
+// 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/compiler_specific.h"
+#include "base/macros.h"
+#include "chrome/browser/extensions/api/networking_private/networking_private_service_client.h"
+
+// Implementation of NetworkingPrivateServiceClient::CryptoVerify using
+// networking_private_crypto.
+class CryptoVerifyImpl
+ : public extensions::NetworkingPrivateServiceClient::CryptoVerify {
+ public:
+ CryptoVerifyImpl();
+ virtual ~CryptoVerifyImpl();
+
+ // NetworkingPrivateServiceClient::CryptoVerify
+ virtual void VerifyDestination(const Credentials& credentials,
+ bool* verified,
+ std::string* error) OVERRIDE;
+ virtual void VerifyAndEncryptCredentials(
+ const std::string& network_guid,
+ const Credentials& credentials,
+ const VerifyAndEncryptCredentialsCallback& callback) OVERRIDE;
+ virtual void VerifyAndEncryptData(const Credentials& credentials,
+ const std::string& data,
+ std::string* base64_encoded_ciphertext,
+ std::string* error) OVERRIDE;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(CryptoVerifyImpl);
+};
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_NETWORKING_PRIVATE_CRYPTO_VERIFY_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698