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

Side by Side Diff: Source/modules/crypto/SubtleCrypto.h

Issue 169293002: Oilpan: Remove GC_INFO_{DEFINE,DECLARE} macros (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fixheaptest Created 6 years, 10 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 | « Source/modules/crypto/KeyPair.cpp ('k') | Source/modules/crypto/SubtleCrypto.cpp » ('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) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 27 matching lines...) Expand all
38 #include "wtf/PassRefPtr.h" 38 #include "wtf/PassRefPtr.h"
39 #include "wtf/RefCounted.h" 39 #include "wtf/RefCounted.h"
40 40
41 namespace WebCore { 41 namespace WebCore {
42 42
43 class Dictionary; 43 class Dictionary;
44 class ExceptionState; 44 class ExceptionState;
45 class Key; 45 class Key;
46 46
47 class SubtleCrypto : public RefCountedWillBeGarbageCollectedFinalized<SubtleCryp to>, public ScriptWrappable { 47 class SubtleCrypto : public RefCountedWillBeGarbageCollectedFinalized<SubtleCryp to>, public ScriptWrappable {
48 DECLARE_GC_INFO;
49 public: 48 public:
50 static PassRefPtrWillBeRawPtr<SubtleCrypto> create() 49 static PassRefPtrWillBeRawPtr<SubtleCrypto> create()
51 { 50 {
52 return adoptRefWillBeNoop(new SubtleCrypto()); 51 return adoptRefWillBeNoop(new SubtleCrypto());
53 } 52 }
54 53
55 ScriptPromise encrypt(const Dictionary&, Key*, ArrayBufferView* data, Except ionState&); 54 ScriptPromise encrypt(const Dictionary&, Key*, ArrayBufferView* data, Except ionState&);
56 ScriptPromise decrypt(const Dictionary&, Key*, ArrayBufferView* data, Except ionState&); 55 ScriptPromise decrypt(const Dictionary&, Key*, ArrayBufferView* data, Except ionState&);
57 ScriptPromise sign(const Dictionary&, Key*, ArrayBufferView* data, Exception State&); 56 ScriptPromise sign(const Dictionary&, Key*, ArrayBufferView* data, Exception State&);
58 // Note that this is not named "verify" because when compiling on Mac that e xpands to a macro and breaks. 57 // Note that this is not named "verify" because when compiling on Mac that e xpands to a macro and breaks.
59 ScriptPromise verifySignature(const Dictionary&, Key*, ArrayBufferView* sign ature, ArrayBufferView* data, ExceptionState&); 58 ScriptPromise verifySignature(const Dictionary&, Key*, ArrayBufferView* sign ature, ArrayBufferView* data, ExceptionState&);
60 ScriptPromise digest(const Dictionary&, ArrayBufferView* data, ExceptionStat e&); 59 ScriptPromise digest(const Dictionary&, ArrayBufferView* data, ExceptionStat e&);
61 60
62 ScriptPromise generateKey(const Dictionary&, bool extractable, const Vector< String>& keyUsages, ExceptionState&); 61 ScriptPromise generateKey(const Dictionary&, bool extractable, const Vector< String>& keyUsages, ExceptionState&);
63 ScriptPromise importKey(const String&, ArrayBufferView*, const Dictionary&, bool extractable, const Vector<String>& keyUsages, ExceptionState&); 62 ScriptPromise importKey(const String&, ArrayBufferView*, const Dictionary&, bool extractable, const Vector<String>& keyUsages, ExceptionState&);
64 ScriptPromise exportKey(const String&, Key*, ExceptionState&); 63 ScriptPromise exportKey(const String&, Key*, ExceptionState&);
65 64
66 ScriptPromise wrapKey(const String&, Key*, Key*, const Dictionary&, Exceptio nState&); 65 ScriptPromise wrapKey(const String&, Key*, Key*, const Dictionary&, Exceptio nState&);
67 ScriptPromise unwrapKey(const String&, ArrayBufferView*, Key*, const Diction ary&, const Dictionary&, bool, const Vector<String>&, ExceptionState&); 66 ScriptPromise unwrapKey(const String&, ArrayBufferView*, Key*, const Diction ary&, const Dictionary&, bool, const Vector<String>&, ExceptionState&);
68 67
69 void trace(Visitor*) { } 68 void trace(Visitor*) { }
70 69
71 private: 70 private:
72 SubtleCrypto(); 71 SubtleCrypto();
73 }; 72 };
74 73
75 } // namespace WebCore 74 } // namespace WebCore
76 75
77 #endif 76 #endif
OLDNEW
« no previous file with comments | « Source/modules/crypto/KeyPair.cpp ('k') | Source/modules/crypto/SubtleCrypto.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698