| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #ifndef IDBBindingUtilities_h | 26 #ifndef IDBBindingUtilities_h |
| 27 #define IDBBindingUtilities_h | 27 #define IDBBindingUtilities_h |
| 28 | 28 |
| 29 #include "bindings/v8/ScriptValue.h" | 29 #include "bindings/v8/ScriptValue.h" |
| 30 #include <v8.h> | 30 #include <v8.h> |
| 31 #include "wtf/Forward.h" | 31 #include "wtf/Forward.h" |
| 32 | 32 |
| 33 namespace WebCore { | 33 namespace WebCore { |
| 34 | 34 |
| 35 class BlobInfo; |
| 35 class DOMRequestState; | 36 class DOMRequestState; |
| 36 class IDBKey; | 37 class IDBKey; |
| 37 class IDBKeyPath; | 38 class IDBKeyPath; |
| 38 class IDBKeyRange; | 39 class IDBKeyRange; |
| 39 class SerializedScriptValue; | 40 class SerializedScriptValue; |
| 40 class SharedBuffer; | 41 class SharedBuffer; |
| 41 | 42 |
| 42 bool injectIDBKeyIntoScriptValue(DOMRequestState*, PassRefPtr<IDBKey>, ScriptVal
ue&, const IDBKeyPath&); | 43 bool injectIDBKeyIntoScriptValue(DOMRequestState*, PassRefPtr<IDBKey>, ScriptVal
ue&, const IDBKeyPath&); |
| 43 PassRefPtr<IDBKey> createIDBKeyFromScriptValueAndKeyPath(DOMRequestState*, const
ScriptValue&, const IDBKeyPath&); | 44 PassRefPtr<IDBKey> createIDBKeyFromScriptValueAndKeyPath(DOMRequestState*, const
ScriptValue&, const IDBKeyPath&); |
| 44 bool canInjectIDBKeyIntoScriptValue(DOMRequestState*, const ScriptValue&, const
IDBKeyPath&); | 45 bool canInjectIDBKeyIntoScriptValue(DOMRequestState*, const ScriptValue&, const
IDBKeyPath&); |
| 45 ScriptValue deserializeIDBValue(DOMRequestState*, PassRefPtr<SerializedScriptVal
ue>); | 46 ScriptValue deserializeIDBValue(DOMRequestState*, PassRefPtr<SerializedScriptVal
ue>); |
| 46 ScriptValue deserializeIDBValueBuffer(DOMRequestState*, PassRefPtr<SharedBuffer>
); | 47 ScriptValue deserializeIDBValueBuffer(DOMRequestState*, PassRefPtr<SharedBuffer>
, const Vector<BlobInfo>*); |
| 47 ScriptValue idbKeyToScriptValue(DOMRequestState*, PassRefPtr<IDBKey>); | 48 ScriptValue idbKeyToScriptValue(DOMRequestState*, PassRefPtr<IDBKey>); |
| 48 PassRefPtr<IDBKey> scriptValueToIDBKey(DOMRequestState*, const ScriptValue&); | 49 PassRefPtr<IDBKey> scriptValueToIDBKey(DOMRequestState*, const ScriptValue&); |
| 49 PassRefPtr<IDBKeyRange> scriptValueToIDBKeyRange(DOMRequestState*, const ScriptV
alue&); | 50 PassRefPtr<IDBKeyRange> scriptValueToIDBKeyRange(DOMRequestState*, const ScriptV
alue&); |
| 50 | 51 |
| 51 } // namespace WebCore | 52 } // namespace WebCore |
| 52 | 53 |
| 53 #endif // IDBBindingUtilities_h | 54 #endif // IDBBindingUtilities_h |
| OLD | NEW |