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

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

Issue 1865813002: Remove RawPtr from Source/web/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 8 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) 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 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 const Vector<String>& referencedFilePaths = m_private->getReferencedFilePath s(); 213 const Vector<String>& referencedFilePaths = m_private->getReferencedFilePath s();
214 for (size_t i = 0; i < referencedFilePaths.size(); ++i) 214 for (size_t i = 0; i < referencedFilePaths.size(); ++i)
215 filePaths.add(referencedFilePaths[i]); 215 filePaths.add(referencedFilePaths[i]);
216 216
217 Vector<String> results; 217 Vector<String> results;
218 copyToVector(filePaths, results); 218 copyToVector(filePaths, results);
219 return results; 219 return results;
220 } 220 }
221 221
222 WebHistoryItem::WebHistoryItem(const RawPtr<HistoryItem>& item) 222 WebHistoryItem::WebHistoryItem(HistoryItem* item)
223 : m_private(item) 223 : m_private(item)
224 { 224 {
225 } 225 }
226 226
227 WebHistoryItem& WebHistoryItem::operator=(const RawPtr<HistoryItem>& item) 227 WebHistoryItem& WebHistoryItem::operator=(HistoryItem* item)
228 { 228 {
229 m_private = item; 229 m_private = item;
230 return *this; 230 return *this;
231 } 231 }
232 232
233 WebHistoryItem::operator RawPtr<HistoryItem>() const 233 WebHistoryItem::operator HistoryItem*() const
234 { 234 {
235 return m_private.get(); 235 return m_private.get();
236 } 236 }
237 237
238 } // namespace blink 238 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebGeolocationController.cpp ('k') | third_party/WebKit/Source/web/WebHitTestResult.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698