Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(82)

Side by Side Diff: third_party/WebKit/Source/web/WebSerializedScriptValue.cpp

Issue 2879133002: Made conversions from PassRefPtr to WebPrivatePtr move only. (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698