| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/in_memory_history_backend.h" | 5 #include "chrome/browser/history/in_memory_history_backend.h" |
| 6 | 6 |
| 7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
| 8 #include "chrome/browser/history/history_database.h" | |
| 9 #include "chrome/browser/history/history_notifications.h" | 8 #include "chrome/browser/history/history_notifications.h" |
| 10 #include "chrome/browser/history/in_memory_database.h" | 9 #include "chrome/browser/history/in_memory_database.h" |
| 11 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
| 12 | 11 |
| 13 namespace history { | 12 namespace history { |
| 14 | 13 |
| 15 // If a page becomes starred we use this id in place of the real starred id. | 14 // If a page becomes starred we use this id in place of the real starred id. |
| 16 // See note in OnURLsStarred. | 15 // See note in OnURLsStarred. |
| 17 static const StarID kBogusStarredID = 0x0FFFFFFF; | 16 static const StarID kBogusStarredID = 0x0FFFFFFF; |
| 18 | 17 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 if (id) { | 128 if (id) { |
| 130 // We typically won't have most of them since we only have a subset of | 129 // We typically won't have most of them since we only have a subset of |
| 131 // history, so ignore errors. | 130 // history, so ignore errors. |
| 132 db_->DeleteURLRow(id); | 131 db_->DeleteURLRow(id); |
| 133 } | 132 } |
| 134 } | 133 } |
| 135 } | 134 } |
| 136 | 135 |
| 137 } // namespace history | 136 } // namespace history |
| 138 | 137 |
| OLD | NEW |