| 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/history_backend.h" | 5 #include "chrome/browser/history/history_backend.h" |
| 6 | 6 |
| 7 #include <set> | 7 #include <set> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| 11 #include "base/file_util.h" | 11 #include "base/file_util.h" |
| 12 #include "base/histogram.h" | 12 #include "base/histogram.h" |
| 13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
| 15 #include "base/scoped_vector.h" | 15 #include "base/scoped_vector.h" |
| 16 #include "base/string_util.h" | 16 #include "base/string_util.h" |
| 17 #include "base/time.h" | 17 #include "base/time.h" |
| 18 #include "chrome/browser/autocomplete/history_url_provider.h" | 18 #include "chrome/browser/autocomplete/history_url_provider.h" |
| 19 #include "chrome/browser/bookmarks/bookmark_service.h" | 19 #include "chrome/browser/bookmarks/bookmark_service.h" |
| 20 #include "chrome/browser/history/download_types.h" | 20 #include "chrome/browser/history/download_types.h" |
| 21 #include "chrome/browser/history/history_notifications.h" | 21 #include "chrome/browser/history/history_notifications.h" |
| 22 #include "chrome/browser/history/history_publisher.h" | 22 #include "chrome/browser/history/history_publisher.h" |
| 23 #include "chrome/browser/history/in_memory_history_backend.h" | 23 #include "chrome/browser/history/in_memory_history_backend.h" |
| 24 #include "chrome/browser/history/page_usage_data.h" | 24 #include "chrome/browser/history/page_usage_data.h" |
| 25 #include "chrome/common/chrome_constants.h" | 25 #include "chrome/common/chrome_constants.h" |
| 26 #include "chrome/common/chrome_switches.h" | 26 #include "chrome/common/chrome_switches.h" |
| 27 #include "chrome/common/notification_type.h" | 27 #include "chrome/common/notification_type.h" |
| 28 #include "chrome/common/sqlite_utils.h" | |
| 29 #include "chrome/common/url_constants.h" | 28 #include "chrome/common/url_constants.h" |
| 30 #include "googleurl/src/gurl.h" | 29 #include "googleurl/src/gurl.h" |
| 31 #include "grit/chromium_strings.h" | 30 #include "grit/chromium_strings.h" |
| 32 #include "grit/generated_resources.h" | 31 #include "grit/generated_resources.h" |
| 33 #include "net/base/registry_controlled_domain.h" | 32 #include "net/base/registry_controlled_domain.h" |
| 34 | 33 |
| 35 using base::Time; | 34 using base::Time; |
| 36 using base::TimeDelta; | 35 using base::TimeDelta; |
| 37 using base::TimeTicks; | 36 using base::TimeTicks; |
| 38 | 37 |
| (...skipping 2117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2156 return bookmark_service_; | 2155 return bookmark_service_; |
| 2157 } | 2156 } |
| 2158 | 2157 |
| 2159 void HistoryBackend::MigrateThumbnailsDatabase() { | 2158 void HistoryBackend::MigrateThumbnailsDatabase() { |
| 2160 thumbnail_db_->RenameAndDropThumbnails(GetThumbnailFileName(), | 2159 thumbnail_db_->RenameAndDropThumbnails(GetThumbnailFileName(), |
| 2161 GetFaviconsFileName()); | 2160 GetFaviconsFileName()); |
| 2162 db_->MigrationToTopSitesDone(); | 2161 db_->MigrationToTopSitesDone(); |
| 2163 } | 2162 } |
| 2164 | 2163 |
| 2165 } // namespace history | 2164 } // namespace history |
| OLD | NEW |