| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 { | 181 { |
| 182 return m_private->documentSequenceNumber(); | 182 return m_private->documentSequenceNumber(); |
| 183 } | 183 } |
| 184 | 184 |
| 185 void WebHistoryItem::setDocumentSequenceNumber(long long documentSequenceNumber) | 185 void WebHistoryItem::setDocumentSequenceNumber(long long documentSequenceNumber) |
| 186 { | 186 { |
| 187 ensureMutable(); | 187 ensureMutable(); |
| 188 m_private->setDocumentSequenceNumber(documentSequenceNumber); | 188 m_private->setDocumentSequenceNumber(documentSequenceNumber); |
| 189 } | 189 } |
| 190 | 190 |
| 191 long long WebHistoryItem::targetFrameID() const |
| 192 { |
| 193 return m_private->targetFrameID(); |
| 194 } |
| 195 |
| 196 void WebHistoryItem::setTargetFrameID(long long targetFrameID) |
| 197 { |
| 198 ensureMutable(); |
| 199 m_private->setTargetFrameID(targetFrameID); |
| 200 } |
| 201 |
| 191 WebSerializedScriptValue WebHistoryItem::stateObject() const | 202 WebSerializedScriptValue WebHistoryItem::stateObject() const |
| 192 { | 203 { |
| 193 return WebSerializedScriptValue(m_private->stateObject()); | 204 return WebSerializedScriptValue(m_private->stateObject()); |
| 194 } | 205 } |
| 195 | 206 |
| 196 void WebHistoryItem::setStateObject(const WebSerializedScriptValue& object) | 207 void WebHistoryItem::setStateObject(const WebSerializedScriptValue& object) |
| 197 { | 208 { |
| 198 ensureMutable(); | 209 ensureMutable(); |
| 199 m_private->setStateObject(object); | 210 m_private->setStateObject(object); |
| 200 } | 211 } |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 return m_private.get(); | 269 return m_private.get(); |
| 259 } | 270 } |
| 260 | 271 |
| 261 void WebHistoryItem::ensureMutable() | 272 void WebHistoryItem::ensureMutable() |
| 262 { | 273 { |
| 263 if (!m_private->hasOneRef()) | 274 if (!m_private->hasOneRef()) |
| 264 m_private = m_private->copy(); | 275 m_private = m_private->copy(); |
| 265 } | 276 } |
| 266 | 277 |
| 267 } // namespace WebKit | 278 } // namespace WebKit |
| OLD | NEW |