| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 PassRefPtr<AbstractScriptPromise> DartScriptState::createPromiseRejectedWithType
Error(const String& message) | 83 PassRefPtr<AbstractScriptPromise> DartScriptState::createPromiseRejectedWithType
Error(const String& message) |
| 84 { | 84 { |
| 85 RELEASE_ASSERT_NOT_REACHED(); | 85 RELEASE_ASSERT_NOT_REACHED(); |
| 86 return nullptr; | 86 return nullptr; |
| 87 } | 87 } |
| 88 | 88 |
| 89 PassOwnPtr<AbstractScriptPromiseResolver> DartScriptState::createPromiseResolver
(ScriptPromiseResolver*) | 89 PassOwnPtr<AbstractScriptPromiseResolver> DartScriptState::createPromiseResolver
(ScriptPromiseResolver*) |
| 90 { | 90 { |
| 91 RELEASE_ASSERT_NOT_REACHED(); | 91 RELEASE_ASSERT_NOT_REACHED(); |
| 92 return nullptr; | |
| 93 } | 92 } |
| 94 | 93 |
| 95 class DartScriptStateProtectingContext : public AbstractScriptStateProtectingCon
text { | 94 class DartScriptStateProtectingContext : public AbstractScriptStateProtectingCon
text { |
| 96 public: | 95 public: |
| 97 DartScriptStateProtectingContext(DartScriptState* scriptState) | 96 DartScriptStateProtectingContext(DartScriptState* scriptState) |
| 98 : m_scriptState(scriptState) | 97 : m_scriptState(scriptState) |
| 99 { | 98 { |
| 100 } | 99 } |
| 101 | 100 |
| 102 DartScriptState* get() const { return m_scriptState.get(); } | 101 DartScriptState* get() const { return m_scriptState.get(); } |
| (...skipping 22 matching lines...) Expand all Loading... |
| 125 | 124 |
| 126 #ifndef NDEBUG | 125 #ifndef NDEBUG |
| 127 void DartScriptState::assertPrimaryKeyValidOrInjectable(PassRefPtr<SharedBuffer>
buffer, const Vector<blink::WebBlobInfo>* blobInfo, IDBKey* key, const IDBKeyPa
th& keyPath) | 126 void DartScriptState::assertPrimaryKeyValidOrInjectable(PassRefPtr<SharedBuffer>
buffer, const Vector<blink::WebBlobInfo>* blobInfo, IDBKey* key, const IDBKeyPa
th& keyPath) |
| 128 { | 127 { |
| 129 // FIXMEDART: Implement without Dart<->V8 conversion. | 128 // FIXMEDART: Implement without Dart<->V8 conversion. |
| 130 return v8ScriptState()->assertPrimaryKeyValidOrInjectable(buffer, blobInfo,
key, keyPath); | 129 return v8ScriptState()->assertPrimaryKeyValidOrInjectable(buffer, blobInfo,
key, keyPath); |
| 131 } | 130 } |
| 132 #endif | 131 #endif |
| 133 | 132 |
| 134 } // namespace blink | 133 } // namespace blink |
| OLD | NEW |