| OLD | NEW |
| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 void process(const void* bytes, size_t); | 79 void process(const void* bytes, size_t); |
| 80 | 80 |
| 81 ScriptObject finish(); | 81 ScriptObject finish(); |
| 82 ScriptObject abort(); | 82 ScriptObject abort(); |
| 83 | 83 |
| 84 // WebCryptoOperationResultPrivate implementation. | 84 // WebCryptoOperationResultPrivate implementation. |
| 85 virtual void initializationFailed() OVERRIDE; | 85 virtual void initializationFailed() OVERRIDE; |
| 86 virtual void initializationSucceeded(WebKit::WebCryptoOperation*) OVERRIDE; | 86 virtual void initializationSucceeded(WebKit::WebCryptoOperation*) OVERRIDE; |
| 87 virtual void completeWithError() OVERRIDE; | 87 virtual void completeWithError() OVERRIDE; |
| 88 virtual void completeWithArrayBuffer(const WebKit::WebArrayBuffer&) OVERRIDE
; | 88 virtual void completeWithArrayBuffer(const WebKit::WebArrayBuffer&) OVERRIDE
; |
| 89 virtual void completeWithBoolean(bool) OVERRIDE; |
| 89 virtual void ref() OVERRIDE; | 90 virtual void ref() OVERRIDE; |
| 90 virtual void deref() OVERRIDE; | 91 virtual void deref() OVERRIDE; |
| 91 | 92 |
| 92 private: | 93 private: |
| 93 enum State { | 94 enum State { |
| 94 // Constructing the WebCryptoOperationImpl. | 95 // Constructing the WebCryptoOperationImpl. |
| 95 Initializing, | 96 Initializing, |
| 96 | 97 |
| 97 // Accepting calls to process(). | 98 // Accepting calls to process(). |
| 98 Processing, | 99 Processing, |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 | 139 |
| 139 WebKit::WebCryptoAlgorithm m_algorithm; | 140 WebKit::WebCryptoAlgorithm m_algorithm; |
| 140 RefPtr<Algorithm> m_algorithmNode; | 141 RefPtr<Algorithm> m_algorithmNode; |
| 141 | 142 |
| 142 RefPtr<CryptoOperationImpl> m_impl; | 143 RefPtr<CryptoOperationImpl> m_impl; |
| 143 }; | 144 }; |
| 144 | 145 |
| 145 } // namespace WebCore | 146 } // namespace WebCore |
| 146 | 147 |
| 147 #endif | 148 #endif |
| OLD | NEW |