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

Side by Side Diff: public/platform/WebCrypto.h

Issue 1233173002: Have ScriptPromiseResolver on the Oilpan heap always. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix webusb ScriptPromiseResolver usage Created 5 years, 4 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
« no previous file with comments | « Source/web/WebMIDIPermissionRequest.cpp ('k') | public/web/WebMIDIPermissionRequest.h » ('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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 BLINK_PLATFORM_EXPORT void completeWithJson(const char* utf8Data, unsigned l ength); 88 BLINK_PLATFORM_EXPORT void completeWithJson(const char* utf8Data, unsigned l ength);
89 BLINK_PLATFORM_EXPORT void completeWithBoolean(bool); 89 BLINK_PLATFORM_EXPORT void completeWithBoolean(bool);
90 BLINK_PLATFORM_EXPORT void completeWithKey(const WebCryptoKey&); 90 BLINK_PLATFORM_EXPORT void completeWithKey(const WebCryptoKey&);
91 BLINK_PLATFORM_EXPORT void completeWithKeyPair(const WebCryptoKey& publicKey , const WebCryptoKey& privateKey); 91 BLINK_PLATFORM_EXPORT void completeWithKeyPair(const WebCryptoKey& publicKey , const WebCryptoKey& privateKey);
92 92
93 // Returns true if the underlying operation was cancelled. 93 // Returns true if the underlying operation was cancelled.
94 // This method can be called from any thread. 94 // This method can be called from any thread.
95 BLINK_PLATFORM_EXPORT bool cancelled() const; 95 BLINK_PLATFORM_EXPORT bool cancelled() const;
96 96
97 #if INSIDE_BLINK 97 #if INSIDE_BLINK
98 BLINK_PLATFORM_EXPORT WebCryptoResult(const PassRefPtrWillBeRawPtr<CryptoRes ult>&, const PassRefPtr<CryptoResultCancel>&); 98 BLINK_PLATFORM_EXPORT WebCryptoResult(CryptoResult*, const PassRefPtr<Crypto ResultCancel>&);
99 #endif 99 #endif
100 100
101 private: 101 private:
102 BLINK_PLATFORM_EXPORT void reset(); 102 BLINK_PLATFORM_EXPORT void reset();
103 BLINK_PLATFORM_EXPORT void assign(const WebCryptoResult&); 103 BLINK_PLATFORM_EXPORT void assign(const WebCryptoResult&);
104 104
105 WebPrivatePtr<CryptoResult, WebPrivatePtrDestructionCrossThread> m_impl; 105 WebPrivatePtr<CryptoResult, WebPrivatePtrDestructionCrossThread> m_impl;
106 WebPrivatePtr<CryptoResultCancel, WebPrivatePtrDestructionCrossThread> m_can cel; 106 WebPrivatePtr<CryptoResultCancel, WebPrivatePtrDestructionCrossThread> m_can cel;
107 }; 107 };
108 108
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 // Returns true on success. 268 // Returns true on success.
269 virtual bool serializeKeyForClone(const WebCryptoKey&, WebVector<unsigned ch ar>&) { return false; } 269 virtual bool serializeKeyForClone(const WebCryptoKey&, WebVector<unsigned ch ar>&) { return false; }
270 270
271 protected: 271 protected:
272 virtual ~WebCrypto() { } 272 virtual ~WebCrypto() { }
273 }; 273 };
274 274
275 } // namespace blink 275 } // namespace blink
276 276
277 #endif // WebCrypto_h 277 #endif // WebCrypto_h
OLDNEW
« no previous file with comments | « Source/web/WebMIDIPermissionRequest.cpp ('k') | public/web/WebMIDIPermissionRequest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698