OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <set> | 7 #include <set> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
12 #include "base/time/time.h" | 12 #include "base/time/time.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/chrome_notification_types.h" | 14 #include "chrome/browser/chrome_notification_types.h" |
15 #include "chrome/browser/history/history_notifications.h" | 15 #include "chrome/browser/history/history_notifications.h" |
16 #include "chrome/browser/history/in_memory_database.h" | 16 #include "chrome/browser/history/in_memory_database.h" |
17 #include "chrome/browser/history/url_database.h" | |
18 #include "chrome/browser/profiles/profile.h" | 17 #include "chrome/browser/profiles/profile.h" |
| 18 #include "components/history/core/browser/url_database.h" |
19 #include "content/public/browser/notification_details.h" | 19 #include "content/public/browser/notification_details.h" |
20 #include "content/public/browser/notification_source.h" | 20 #include "content/public/browser/notification_source.h" |
21 | 21 |
22 namespace history { | 22 namespace history { |
23 | 23 |
24 InMemoryHistoryBackend::InMemoryHistoryBackend() | 24 InMemoryHistoryBackend::InMemoryHistoryBackend() |
25 : profile_(NULL) { | 25 : profile_(NULL) { |
26 } | 26 } |
27 | 27 |
28 InMemoryHistoryBackend::~InMemoryHistoryBackend() {} | 28 InMemoryHistoryBackend::~InMemoryHistoryBackend() {} |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 } | 141 } |
142 | 142 |
143 void InMemoryHistoryBackend::OnKeywordSearchTermDeleted( | 143 void InMemoryHistoryBackend::OnKeywordSearchTermDeleted( |
144 const KeywordSearchDeletedDetails& details) { | 144 const KeywordSearchDeletedDetails& details) { |
145 // For simplicity, this will not remove the corresponding URLRow, but this is | 145 // For simplicity, this will not remove the corresponding URLRow, but this is |
146 // okay, as the main database does not do so either. | 146 // okay, as the main database does not do so either. |
147 db_->DeleteKeywordSearchTermForURL(details.url_row_id); | 147 db_->DeleteKeywordSearchTermForURL(details.url_row_id); |
148 } | 148 } |
149 | 149 |
150 } // namespace history | 150 } // namespace history |
OLD | NEW |