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

Side by Side Diff: chrome/browser/dom_ui/history2_ui.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
« no previous file with comments | « chrome/browser/dom_ui/dom_ui_thumbnail_source.cc ('k') | chrome/browser/dom_ui/history_ui.cc » ('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/dom_ui/history2_ui.h" 5 #include "chrome/browser/dom_ui/history2_ui.h"
6 6
7 #include <algorithm>
8 #include <set>
9
7 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 11 #include "app/resource_bundle.h"
9 #include "base/callback.h" 12 #include "base/callback.h"
10 #include "base/i18n/time_formatting.h" 13 #include "base/i18n/time_formatting.h"
11 #include "base/message_loop.h" 14 #include "base/message_loop.h"
12 #include "base/singleton.h" 15 #include "base/singleton.h"
13 #include "base/string16.h" 16 #include "base/string16.h"
14 #include "base/string_number_conversions.h" 17 #include "base/string_number_conversions.h"
15 #include "base/string_piece.h" 18 #include "base/string_piece.h"
16 #include "base/utf_string_conversions.h" 19 #include "base/utf_string_conversions.h"
17 #include "base/thread.h" 20 #include "base/thread.h"
18 #include "base/time.h" 21 #include "base/time.h"
19 #include "base/values.h" 22 #include "base/values.h"
20 #include "chrome/browser/bookmarks/bookmark_model.h" 23 #include "chrome/browser/bookmarks/bookmark_model.h"
21 #include "chrome/browser/browser_thread.h" 24 #include "chrome/browser/browser_thread.h"
22 #include "chrome/browser/dom_ui/dom_ui_favicon_source.h" 25 #include "chrome/browser/dom_ui/dom_ui_favicon_source.h"
23 #include "chrome/browser/metrics/user_metrics.h" 26 #include "chrome/browser/metrics/user_metrics.h"
24 #include "chrome/browser/history/history_types.h" 27 #include "chrome/browser/history/history_types.h"
25 #include "chrome/browser/profiles/profile.h" 28 #include "chrome/browser/profiles/profile.h"
26 #include "chrome/browser/tab_contents/tab_contents.h" 29 #include "chrome/browser/tab_contents/tab_contents.h"
27 #include "chrome/browser/tab_contents/tab_contents_delegate.h" 30 #include "chrome/browser/tab_contents/tab_contents_delegate.h"
28 #include "chrome/browser/ui/browser.h" 31 #include "chrome/browser/ui/browser.h"
29 #include "chrome/browser/ui/browser_list.h" 32 #include "chrome/browser/ui/browser_list.h"
30 #include "chrome/common/jstemplate_builder.h" 33 #include "chrome/common/jstemplate_builder.h"
31 #include "chrome/common/notification_service.h" 34 #include "chrome/common/notification_source.h"
32 #include "chrome/common/time_format.h" 35 #include "chrome/common/time_format.h"
33 #include "chrome/common/url_constants.h" 36 #include "chrome/common/url_constants.h"
34 #include "net/base/escape.h" 37 #include "net/base/escape.h"
35 38
36 #include "grit/browser_resources.h" 39 #include "grit/browser_resources.h"
37 #include "grit/chromium_strings.h" 40 #include "grit/chromium_strings.h"
38 #include "grit/generated_resources.h" 41 #include "grit/generated_resources.h"
39 #include "grit/locale_settings.h" 42 #include "grit/locale_settings.h"
40 #include "grit/theme_resources.h" 43 #include "grit/theme_resources.h"
41 44
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 const GURL HistoryUI2::GetHistoryURLWithSearchText(const string16& text) { 414 const GURL HistoryUI2::GetHistoryURLWithSearchText(const string16& text) {
412 return GURL(std::string(chrome::kChromeUIHistory2URL) + "#q=" + 415 return GURL(std::string(chrome::kChromeUIHistory2URL) + "#q=" +
413 EscapeQueryParamValue(UTF16ToUTF8(text), true)); 416 EscapeQueryParamValue(UTF16ToUTF8(text), true));
414 } 417 }
415 418
416 // static 419 // static
417 RefCountedMemory* HistoryUI2::GetFaviconResourceBytes() { 420 RefCountedMemory* HistoryUI2::GetFaviconResourceBytes() {
418 return ResourceBundle::GetSharedInstance(). 421 return ResourceBundle::GetSharedInstance().
419 LoadDataResourceBytes(IDR_HISTORY_FAVICON); 422 LoadDataResourceBytes(IDR_HISTORY_FAVICON);
420 } 423 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/dom_ui_thumbnail_source.cc ('k') | chrome/browser/dom_ui/history_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698