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

Side by Side Diff: chrome/browser/history/text_database_manager.cc

Issue 6677096: Move a bunch of files from chrome\common to content\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/history/text_database_manager.h ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/history/text_database_manager.h ('k') | chrome/chrome_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698