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

Side by Side Diff: Source/bindings/v8/ScriptValue.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « LayoutTests/crypto/digest-expected.txt ('k') | Source/core/core.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2008, 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 ScriptValue(v8::Handle<v8::Value> value) 63 ScriptValue(v8::Handle<v8::Value> value)
64 : m_value(value.IsEmpty() ? 0 : SharedPersistent<v8::Value>::create(valu e)) 64 : m_value(value.IsEmpty() ? 0 : SharedPersistent<v8::Value>::create(valu e))
65 { 65 {
66 } 66 }
67 67
68 ScriptValue(const ScriptValue& value) 68 ScriptValue(const ScriptValue& value)
69 : m_value(value.m_value) 69 : m_value(value.m_value)
70 { 70 {
71 } 71 }
72 72
73 static ScriptValue createNull() { return ScriptValue(v8::Null()); }
74
73 ScriptValue& operator=(const ScriptValue& value) 75 ScriptValue& operator=(const ScriptValue& value)
74 { 76 {
75 if (this != &value) 77 if (this != &value)
76 m_value = value.m_value; 78 m_value = value.m_value;
77 return *this; 79 return *this;
78 } 80 }
79 81
80 bool operator==(const ScriptValue& value) const 82 bool operator==(const ScriptValue& value) const
81 { 83 {
82 if (hasNoValue()) 84 if (hasNoValue())
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 148
147 PassRefPtr<JSONValue> toJSONValue(ScriptState*) const; 149 PassRefPtr<JSONValue> toJSONValue(ScriptState*) const;
148 150
149 private: 151 private:
150 RefPtr<SharedPersistent<v8::Value> > m_value; 152 RefPtr<SharedPersistent<v8::Value> > m_value;
151 }; 153 };
152 154
153 } // namespace WebCore 155 } // namespace WebCore
154 156
155 #endif // ScriptValue_h 157 #endif // ScriptValue_h
OLDNEW
« no previous file with comments | « LayoutTests/crypto/digest-expected.txt ('k') | Source/core/core.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698