| 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 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 bool JSONValue::asNumber(unsigned*) const | 123 bool JSONValue::asNumber(unsigned*) const |
| 124 { | 124 { |
| 125 return false; | 125 return false; |
| 126 } | 126 } |
| 127 | 127 |
| 128 bool JSONValue::asString(String*) const | 128 bool JSONValue::asString(String*) const |
| 129 { | 129 { |
| 130 return false; | 130 return false; |
| 131 } | 131 } |
| 132 | 132 |
| 133 bool JSONValue::asValue(RefPtr<JSONValue>* output) | |
| 134 { | |
| 135 *output = this; | |
| 136 return true; | |
| 137 } | |
| 138 | |
| 139 bool JSONValue::asObject(RefPtr<JSONObject>*) | 133 bool JSONValue::asObject(RefPtr<JSONObject>*) |
| 140 { | 134 { |
| 141 return false; | 135 return false; |
| 142 } | 136 } |
| 143 | 137 |
| 144 bool JSONValue::asArray(RefPtr<JSONArray>*) | 138 bool JSONValue::asArray(RefPtr<JSONArray>*) |
| 145 { | 139 { |
| 146 return false; | 140 return false; |
| 147 } | 141 } |
| 148 | 142 |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 527 m_data.append(value); | 521 m_data.append(value); |
| 528 } | 522 } |
| 529 | 523 |
| 530 PassRefPtr<JSONValue> JSONArrayBase::get(size_t index) | 524 PassRefPtr<JSONValue> JSONArrayBase::get(size_t index) |
| 531 { | 525 { |
| 532 ASSERT_WITH_SECURITY_IMPLICATION(index < m_data.size()); | 526 ASSERT_WITH_SECURITY_IMPLICATION(index < m_data.size()); |
| 533 return m_data[index]; | 527 return m_data[index]; |
| 534 } | 528 } |
| 535 | 529 |
| 536 } // namespace blink | 530 } // namespace blink |
| OLD | NEW |