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

Unified Diff: public/web/WebArrayBuffer.h

Issue 19082002: WebCrypto: Add SHA-1 support to crypto.subtle.digest(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove an extra newline 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 | « public/platform/WebCrypto.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebArrayBuffer.h
diff --git a/public/web/WebArrayBuffer.h b/public/web/WebArrayBuffer.h
index ecee122193e331fac5e9b73dc191f54e7064753f..e9c5f3dd9b9912d8293dee66dd68e78548659130 100644
--- a/public/web/WebArrayBuffer.h
+++ b/public/web/WebArrayBuffer.h
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011 Google Inc. All rights reserved.
+ * Copyright (C) 2013 Google Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -28,55 +28,5 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebArrayBuffer_h
-#define WebArrayBuffer_h
-
-#include "../platform/WebCommon.h"
-#include "../platform/WebPrivatePtr.h"
-
-namespace v8 {
-class Value;
-template <class T> class Handle;
-}
-
-namespace WTF { class ArrayBuffer; }
-
-namespace WebKit {
-
-class WebArrayBuffer {
-public:
- ~WebArrayBuffer() { reset(); }
-
- WebArrayBuffer() { }
- WebArrayBuffer(const WebArrayBuffer& b) { assign(b); }
- WebArrayBuffer& operator=(const WebArrayBuffer& b)
- {
- assign(b);
- return *this;
- }
-
- WEBKIT_EXPORT static WebArrayBuffer create(unsigned numElements, unsigned elementByteSize);
-
- WEBKIT_EXPORT void reset();
- WEBKIT_EXPORT void assign(const WebArrayBuffer&);
-
- bool isNull() const { return m_private.isNull(); }
- WEBKIT_EXPORT void* data() const;
- WEBKIT_EXPORT unsigned byteLength() const;
-
- WEBKIT_EXPORT v8::Handle<v8::Value> toV8Value();
- WEBKIT_EXPORT static WebArrayBuffer* createFromV8Value(v8::Handle<v8::Value>);
-
-#if WEBKIT_IMPLEMENTATION
- WebArrayBuffer(const WTF::PassRefPtr<WTF::ArrayBuffer>&);
- WebArrayBuffer& operator=(const PassRefPtr<WTF::ArrayBuffer>&);
- operator WTF::PassRefPtr<WTF::ArrayBuffer>() const;
-#endif
-
-protected:
- WebPrivatePtr<WTF::ArrayBuffer> m_private;
-};
-
-} // namespace WebKit
-
-#endif // WebArrayBuffer_h
+// FIXME: Remove
+#include "../platform/WebArrayBuffer.h"
« no previous file with comments | « public/platform/WebCrypto.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698