| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 return private_->ToWireString(); | 70 return private_->ToWireString(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 v8::Local<v8::Value> WebSerializedScriptValue::Deserialize( | 73 v8::Local<v8::Value> WebSerializedScriptValue::Deserialize( |
| 74 v8::Isolate* isolate) { | 74 v8::Isolate* isolate) { |
| 75 return private_->Deserialize(isolate); | 75 return private_->Deserialize(isolate); |
| 76 } | 76 } |
| 77 | 77 |
| 78 WebSerializedScriptValue::WebSerializedScriptValue( | 78 WebSerializedScriptValue::WebSerializedScriptValue( |
| 79 PassRefPtr<SerializedScriptValue> value) | 79 PassRefPtr<SerializedScriptValue> value) |
| 80 : private_(value) {} | 80 : private_(std::move(value)) {} |
| 81 | 81 |
| 82 WebSerializedScriptValue& WebSerializedScriptValue::operator=( | 82 WebSerializedScriptValue& WebSerializedScriptValue::operator=( |
| 83 PassRefPtr<SerializedScriptValue> value) { | 83 PassRefPtr<SerializedScriptValue> value) { |
| 84 private_ = value; | 84 private_ = std::move(value); |
| 85 return *this; | 85 return *this; |
| 86 } | 86 } |
| 87 | 87 |
| 88 WebSerializedScriptValue::operator PassRefPtr<SerializedScriptValue>() const { | 88 WebSerializedScriptValue::operator PassRefPtr<SerializedScriptValue>() const { |
| 89 return private_.Get(); | 89 return private_.Get(); |
| 90 } | 90 } |
| 91 | 91 |
| 92 } // namespace blink | 92 } // namespace blink |
| OLD | NEW |