| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/history/text_database_manager.h" | 5 #include "chrome/browser/history/text_database_manager.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/message_loop.h" | 11 #include "base/message_loop.h" |
| 12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
| 13 #include "base/utf_string_conversions.h" | 13 #include "base/utf_string_conversions.h" |
| 14 #include "chrome/browser/history/history_publisher.h" | 14 #include "chrome/browser/history/history_publisher.h" |
| 15 #include "chrome/browser/history/visit_database.h" | 15 #include "chrome/browser/history/visit_database.h" |
| 16 #include "chrome/common/mru_cache.h" | 16 #include "content/common/mru_cache.h" |
| 17 | 17 |
| 18 using base::Time; | 18 using base::Time; |
| 19 using base::TimeDelta; | 19 using base::TimeDelta; |
| 20 using base::TimeTicks; | 20 using base::TimeTicks; |
| 21 | 21 |
| 22 namespace history { | 22 namespace history { |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| 25 | 25 |
| 26 // The number of database files we will be attached to at once. | 26 // The number of database files we will be attached to at once. |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 while (i != recent_changes_.rend() && i->second.Expired(now)) { | 549 while (i != recent_changes_.rend() && i->second.Expired(now)) { |
| 550 AddPageData(i->first, i->second.url_id(), i->second.visit_id(), | 550 AddPageData(i->first, i->second.url_id(), i->second.visit_id(), |
| 551 i->second.visit_time(), i->second.title(), i->second.body()); | 551 i->second.visit_time(), i->second.title(), i->second.body()); |
| 552 i = recent_changes_.Erase(i); | 552 i = recent_changes_.Erase(i); |
| 553 } | 553 } |
| 554 | 554 |
| 555 ScheduleFlushOldChanges(); | 555 ScheduleFlushOldChanges(); |
| 556 } | 556 } |
| 557 | 557 |
| 558 } // namespace history | 558 } // namespace history |
| OLD | NEW |