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

Side by Side Diff: Source/web/WebHistoryItem.cpp

Issue 639023004: Oilpan: move HistoryItem to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « Source/web/ContextMenuClientImpl.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 213
214 const Vector<String>& referencedFilePaths = m_private->getReferencedFilePath s(); 214 const Vector<String>& referencedFilePaths = m_private->getReferencedFilePath s();
215 for (size_t i = 0; i < referencedFilePaths.size(); ++i) 215 for (size_t i = 0; i < referencedFilePaths.size(); ++i)
216 filePaths.add(referencedFilePaths[i]); 216 filePaths.add(referencedFilePaths[i]);
217 217
218 Vector<String> results; 218 Vector<String> results;
219 copyToVector(filePaths, results); 219 copyToVector(filePaths, results);
220 return results; 220 return results;
221 } 221 }
222 222
223 WebHistoryItem::WebHistoryItem(const PassRefPtr<HistoryItem>& item) 223 WebHistoryItem::WebHistoryItem(const PassRefPtrWillBeRawPtr<HistoryItem>& item)
224 : m_private(item) 224 : m_private(item)
225 { 225 {
226 } 226 }
227 227
228 WebHistoryItem& WebHistoryItem::operator=(const PassRefPtr<HistoryItem>& item) 228 WebHistoryItem& WebHistoryItem::operator=(const PassRefPtrWillBeRawPtr<HistoryIt em>& item)
229 { 229 {
230 m_private = item; 230 m_private = item;
231 return *this; 231 return *this;
232 } 232 }
233 233
234 WebHistoryItem::operator PassRefPtr<HistoryItem>() const 234 WebHistoryItem::operator PassRefPtrWillBeRawPtr<HistoryItem>() const
235 { 235 {
236 return m_private.get(); 236 return m_private.get();
237 } 237 }
238 238
239 } // namespace blink 239 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/ContextMenuClientImpl.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698