Chromium Code Reviews| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 75 v8::Local<v8::Value> WebSerializedScriptValue::deserialize() | 75 v8::Local<v8::Value> WebSerializedScriptValue::deserialize() |
| 76 { | 76 { |
| 77 return m_private->deserialize(); | 77 return m_private->deserialize(); |
| 78 } | 78 } |
| 79 | 79 |
| 80 WebSerializedScriptValue::WebSerializedScriptValue(const PassRefPtr<SerializedSc riptValue>& value) | 80 WebSerializedScriptValue::WebSerializedScriptValue(const PassRefPtr<SerializedSc riptValue>& value) |
| 81 : m_private(value) | 81 : m_private(value) |
| 82 { | 82 { |
| 83 } | 83 } |
| 84 | 84 |
| 85 WebSerializedScriptValue::WebSerializedScriptValue(SerializedScriptValue* value) | |
|
Peter Beverloo
2015/03/12 01:16:26
Why do we need this?
In ServiceWorkerRegistration
Sanghyun Park
2015/03/12 02:58:47
This function is for sending "data" in non-persist
| |
| 86 : m_private(value) | |
| 87 { | |
| 88 } | |
| 89 | |
| 85 WebSerializedScriptValue& WebSerializedScriptValue::operator=(const PassRefPtr<S erializedScriptValue>& value) | 90 WebSerializedScriptValue& WebSerializedScriptValue::operator=(const PassRefPtr<S erializedScriptValue>& value) |
| 86 { | 91 { |
| 87 m_private = value; | 92 m_private = value; |
| 88 return *this; | 93 return *this; |
| 89 } | 94 } |
| 90 | 95 |
| 91 WebSerializedScriptValue::operator PassRefPtr<SerializedScriptValue>() const | 96 WebSerializedScriptValue::operator PassRefPtr<SerializedScriptValue>() const |
| 92 { | 97 { |
| 93 return m_private.get(); | 98 return m_private.get(); |
| 94 } | 99 } |
| 95 | 100 |
| 96 } // namespace blink | 101 } // namespace blink |
| OLD | NEW |