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

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

Issue 5875005: Cleanup: Remove unneeded includes of notification_service.h.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: put includes in right order Created 10 years 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
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/in_memory_history_backend.h" 5 #include "chrome/browser/history/in_memory_history_backend.h"
6 6
7 #include <set>
8 #include <vector>
9
7 #include "base/command_line.h" 10 #include "base/command_line.h"
8 #include "base/metrics/histogram.h" 11 #include "base/metrics/histogram.h"
9 #include "base/time.h" 12 #include "base/time.h"
10 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/browser_process.h" 14 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/history/history_notifications.h" 15 #include "chrome/browser/history/history_notifications.h"
13 #include "chrome/browser/history/in_memory_database.h" 16 #include "chrome/browser/history/in_memory_database.h"
14 #include "chrome/browser/history/in_memory_url_index.h" 17 #include "chrome/browser/history/in_memory_url_index.h"
15 #include "chrome/browser/history/url_database.h" 18 #include "chrome/browser/history/url_database.h"
16 #include "chrome/browser/prefs/pref_service.h" 19 #include "chrome/browser/prefs/pref_service.h"
17 #include "chrome/browser/profiles/profile.h" 20 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/common/chrome_switches.h" 21 #include "chrome/common/chrome_switches.h"
19 #include "chrome/common/notification_service.h" 22 #include "chrome/common/notification_details.h"
23 #include "chrome/common/notification_source.h"
20 #include "chrome/common/pref_names.h" 24 #include "chrome/common/pref_names.h"
21 25
22 namespace history { 26 namespace history {
23 27
24 // If a page becomes starred we use this id in place of the real starred id. 28 // If a page becomes starred we use this id in place of the real starred id.
25 // See note in OnURLsStarred. 29 // See note in OnURLsStarred.
26 static const StarID kBogusStarredID = 0x0FFFFFFF; 30 static const StarID kBogusStarredID = 0x0FFFFFFF;
27 31
28 InMemoryHistoryBackend::InMemoryHistoryBackend() 32 InMemoryHistoryBackend::InMemoryHistoryBackend()
29 : profile_(NULL) { 33 : profile_(NULL) {
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 if (!url_id) 180 if (!url_id)
177 return; // Error adding. 181 return; // Error adding.
178 } else { 182 } else {
179 url_id = url_row.id(); 183 url_id = url_row.id();
180 } 184 }
181 185
182 db_->SetKeywordSearchTermsForURL(url_id, details.keyword_id, details.term); 186 db_->SetKeywordSearchTermsForURL(url_id, details.keyword_id, details.term);
183 } 187 }
184 188
185 } // namespace history 189 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/gtk/tabs/dragged_tab_controller_gtk.cc ('k') | chrome/browser/importer/importer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698