OLD | NEW |
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 Loading... |
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 |
OLD | NEW |