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

Side by Side Diff: third_party/WebKit/Source/platform/exported/WebURLLoadTiming.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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 169
170 double WebURLLoadTiming::PushEnd() const { 170 double WebURLLoadTiming::PushEnd() const {
171 return private_->PushEnd(); 171 return private_->PushEnd();
172 } 172 }
173 173
174 void WebURLLoadTiming::SetPushEnd(double end) { 174 void WebURLLoadTiming::SetPushEnd(double end) {
175 private_->SetPushEnd(end); 175 private_->SetPushEnd(end);
176 } 176 }
177 177
178 WebURLLoadTiming::WebURLLoadTiming(PassRefPtr<ResourceLoadTiming> value) 178 WebURLLoadTiming::WebURLLoadTiming(PassRefPtr<ResourceLoadTiming> value)
179 : private_(value) {} 179 : private_(std::move(value)) {}
180 180
181 WebURLLoadTiming& WebURLLoadTiming::operator=( 181 WebURLLoadTiming& WebURLLoadTiming::operator=(
182 PassRefPtr<ResourceLoadTiming> value) { 182 PassRefPtr<ResourceLoadTiming> value) {
183 private_ = value; 183 private_ = std::move(value);
184 return *this; 184 return *this;
185 } 185 }
186 186
187 WebURLLoadTiming::operator PassRefPtr<ResourceLoadTiming>() const { 187 WebURLLoadTiming::operator PassRefPtr<ResourceLoadTiming>() const {
188 return private_.Get(); 188 return private_.Get();
189 } 189 }
190 190
191 } // namespace blink 191 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698