OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "url_row_type.h" |
| 6 |
| 7 using base::Time; |
| 8 |
| 9 namespace history { |
| 10 |
| 11 void URLRow::Swap(URLRow* other) { |
| 12 std::swap(id_, other->id_); |
| 13 url_.Swap(&other->url_); |
| 14 title_.swap(other->title_); |
| 15 std::swap(visit_count_, other->visit_count_); |
| 16 std::swap(typed_count_, other->typed_count_); |
| 17 std::swap(last_visit_, other->last_visit_); |
| 18 std::swap(hidden_, other->hidden_); |
| 19 std::swap(favicon_id_, other->favicon_id_); |
| 20 } |
| 21 |
| 22 void URLRow::Initialize() { |
| 23 id_ = 0; |
| 24 visit_count_ = false; |
| 25 typed_count_ = false; |
| 26 last_visit_ = Time(); |
| 27 hidden_ = false; |
| 28 favicon_id_ = 0; |
| 29 } |
| 30 |
| 31 } // namespace history |
OLD | NEW |