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

Unified Diff: Source/bindings/core/v8/Dictionary.h

Issue 340353006: [webcrypto] Replace KeyAlgorithm interfaces with an Object. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove const reference and make v8value a value 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
« no previous file with comments | « no previous file | Source/bindings/core/v8/Dictionary.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/Dictionary.h
diff --git a/Source/bindings/core/v8/Dictionary.h b/Source/bindings/core/v8/Dictionary.h
index 3453b41ed43d65437b0ac7c6eec62433e2a1a0f2..ce4170b2e4d325f2570660cb8831f5bed15083c4 100644
--- a/Source/bindings/core/v8/Dictionary.h
+++ b/Source/bindings/core/v8/Dictionary.h
@@ -66,6 +66,8 @@ class Dictionary {
ALLOW_ONLY_INLINE_ALLOCATION();
public:
Dictionary();
+ // Creates an empty dictionary
+ explicit Dictionary(v8::Isolate*);
Dictionary(const v8::Handle<v8::Value>& options, v8::Isolate*);
~Dictionary();
@@ -108,6 +110,14 @@ public:
bool get(const String&, RefPtr<HeaderMap>&) const;
bool get(const String&, RefPtr<Headers>&) const;
+ // Sets properties using default attributes.
+ bool set(const String&, const v8::Handle<v8::Value>&);
+ bool set(const String&, const String&);
+ bool set(const String&, unsigned);
+ bool set(const String&, const Dictionary&);
+
+ v8::Handle<v8::Value> v8Value() const { return m_options; }
+
class ConversionContext {
public:
ConversionContext(const String& interfaceName, const String& methodName, ExceptionState& exceptionState)
« no previous file with comments | « no previous file | Source/bindings/core/v8/Dictionary.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698