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

Unified Diff: content/child/webcrypto/openssl/util_openssl.h

Issue 379383002: Refactor WebCrypto code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto master Created 6 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
Index: content/child/webcrypto/openssl/util_openssl.h
diff --git a/content/browser/renderer_host/input/input_router_config_helper.h b/content/child/webcrypto/openssl/util_openssl.h
similarity index 33%
copy from content/browser/renderer_host/input/input_router_config_helper.h
copy to content/child/webcrypto/openssl/util_openssl.h
index 46fbbd09118d63c93fa2dea50ee843dda99bfd48..15d33086476236247eadadc360d3291b198a676c 100644
--- a/content/browser/renderer_host/input/input_router_config_helper.h
+++ b/content/child/webcrypto/openssl/util_openssl.h
@@ -2,17 +2,25 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CONFIG_HELPER_H_
-#define CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CONFIG_HELPER_H_
+#ifndef CONTENT_CHILD_WEBCRYPTO_OPENSSL_UTIL_OPENSSL_H_
+#define CONTENT_CHILD_WEBCRYPTO_OPENSSL_UTIL_OPENSSL_H_
-#include "content/browser/renderer_host/input/input_router_impl.h"
+#include <openssl/ossl_typ.h>
Ryan Sleevi 2014/07/17 00:06:54 Not really needed, is it Can just forward declare
eroman 2014/07/17 20:37:26 How would the forward declaration look? I tried ad
+
+#include "third_party/WebKit/public/platform/WebCryptoAlgorithm.h"
namespace content {
-// Return an InputRouter configuration with parameters tailored to the current
-// platform.
-InputRouterImpl::Config GetInputRouterConfigForPlatform();
+namespace webcrypto {
+
+class CryptoData;
+
+enum EncryptOrDecrypt { ENCRYPT, DECRYPT };
+
+const EVP_MD* GetDigest(blink::WebCryptoAlgorithmId id);
+
+} // namespace webcrypto
} // namespace content
-#endif // CONTENT_BROWSER_RENDERER_HOST_INPUT_INPUT_ROUTER_CONFIG_HELPER_H_
+#endif // CONTENT_CHILD_WEBCRYPTO_OPENSSL_UTIL_OPENSSL_H_

Powered by Google App Engine
This is Rietveld 408576698