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

Side by Side Diff: chrome/browser/dom_ui/new_tab_ui.cc

Issue 5606002: Move:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #include "chrome/browser/dom_ui/new_tab_ui.h" 7 #include "chrome/browser/dom_ui/new_tab_ui.h"
8 8
9 #include <set> 9 #include <set>
10 10
(...skipping 13 matching lines...) Expand all
24 #include "chrome/browser/dom_ui/most_visited_handler.h" 24 #include "chrome/browser/dom_ui/most_visited_handler.h"
25 #include "chrome/browser/dom_ui/new_tab_page_sync_handler.h" 25 #include "chrome/browser/dom_ui/new_tab_page_sync_handler.h"
26 #include "chrome/browser/dom_ui/ntp_login_handler.h" 26 #include "chrome/browser/dom_ui/ntp_login_handler.h"
27 #include "chrome/browser/dom_ui/ntp_resource_cache.h" 27 #include "chrome/browser/dom_ui/ntp_resource_cache.h"
28 #include "chrome/browser/dom_ui/shown_sections_handler.h" 28 #include "chrome/browser/dom_ui/shown_sections_handler.h"
29 #include "chrome/browser/dom_ui/tips_handler.h" 29 #include "chrome/browser/dom_ui/tips_handler.h"
30 #include "chrome/browser/dom_ui/value_helper.h" 30 #include "chrome/browser/dom_ui/value_helper.h"
31 #include "chrome/browser/metrics/user_metrics.h" 31 #include "chrome/browser/metrics/user_metrics.h"
32 #include "chrome/browser/themes/browser_theme_provider.h" 32 #include "chrome/browser/themes/browser_theme_provider.h"
33 #include "chrome/browser/prefs/pref_service.h" 33 #include "chrome/browser/prefs/pref_service.h"
34 #include "chrome/browser/profile.h" 34 #include "chrome/browser/profiles/profile.h"
35 #include "chrome/browser/renderer_host/render_view_host.h" 35 #include "chrome/browser/renderer_host/render_view_host.h"
36 #include "chrome/browser/sessions/session_types.h" 36 #include "chrome/browser/sessions/session_types.h"
37 #include "chrome/browser/sessions/tab_restore_service.h" 37 #include "chrome/browser/sessions/tab_restore_service.h"
38 #include "chrome/browser/sessions/tab_restore_service_observer.h" 38 #include "chrome/browser/sessions/tab_restore_service_observer.h"
39 #include "chrome/browser/sync/profile_sync_service.h" 39 #include "chrome/browser/sync/profile_sync_service.h"
40 #include "chrome/browser/tab_contents/tab_contents.h" 40 #include "chrome/browser/tab_contents/tab_contents.h"
41 #include "chrome/browser/ui/browser.h" 41 #include "chrome/browser/ui/browser.h"
42 #include "chrome/common/chrome_switches.h" 42 #include "chrome/common/chrome_switches.h"
43 #include "chrome/common/extensions/extension.h" 43 #include "chrome/common/extensions/extension.h"
44 #include "chrome/common/notification_service.h" 44 #include "chrome/common/notification_service.h"
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 616
617 scoped_refptr<RefCountedBytes> html_bytes( 617 scoped_refptr<RefCountedBytes> html_bytes(
618 profile_->GetNTPResourceCache()->GetNewTabHTML(is_off_the_record)); 618 profile_->GetNTPResourceCache()->GetNewTabHTML(is_off_the_record));
619 619
620 SendResponse(request_id, html_bytes); 620 SendResponse(request_id, html_bytes);
621 } 621 }
622 622
623 std::string NewTabUI::NewTabHTMLSource::GetMimeType(const std::string&) const { 623 std::string NewTabUI::NewTabHTMLSource::GetMimeType(const std::string&) const {
624 return "text/html"; 624 return "text/html";
625 } 625 }
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/new_tab_page_sync_handler.cc ('k') | chrome/browser/dom_ui/ntp_login_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698