| 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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 577 | 577 |
| 578 if (v8Value->IsObject()) { | 578 if (v8Value->IsObject()) { |
| 579 ASSERT(m_isolate); | 579 ASSERT(m_isolate); |
| 580 ASSERT(m_isolate == v8::Isolate::GetCurrent()); | 580 ASSERT(m_isolate == v8::Isolate::GetCurrent()); |
| 581 value = Dictionary(v8Value, m_isolate); | 581 value = Dictionary(v8Value, m_isolate); |
| 582 } | 582 } |
| 583 | 583 |
| 584 return true; | 584 return true; |
| 585 } | 585 } |
| 586 | 586 |
| 587 bool Dictionary::get(const String& key, RefPtr<Headers>& value) const | 587 bool Dictionary::get(const String& key, RefPtrWillBeMember<Headers>& value) cons
t |
| 588 { | 588 { |
| 589 v8::Local<v8::Value> v8Value; | 589 v8::Local<v8::Value> v8Value; |
| 590 if (!getKey(key, v8Value)) | 590 if (!getKey(key, v8Value)) |
| 591 return false; | 591 return false; |
| 592 | 592 |
| 593 value = V8Headers::toNativeWithTypeCheck(m_isolate, v8Value); | 593 value = V8Headers::toNativeWithTypeCheck(m_isolate, v8Value); |
| 594 return true; | 594 return true; |
| 595 } | 595 } |
| 596 | 596 |
| 597 bool Dictionary::set(const String& key, const v8::Handle<v8::Value>& value) | 597 bool Dictionary::set(const String& key, const v8::Handle<v8::Value>& value) |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 787 | 787 |
| 788 return *this; | 788 return *this; |
| 789 } | 789 } |
| 790 | 790 |
| 791 void Dictionary::ConversionContext::throwTypeError(const String& detail) | 791 void Dictionary::ConversionContext::throwTypeError(const String& detail) |
| 792 { | 792 { |
| 793 exceptionState().throwTypeError(detail); | 793 exceptionState().throwTypeError(detail); |
| 794 } | 794 } |
| 795 | 795 |
| 796 } // namespace WebCore | 796 } // namespace WebCore |
| OLD | NEW |