| OLD | NEW |
| 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 |
| 11 #include "app/l10n_util.h" | 11 #include "app/l10n_util.h" |
| 12 #include "base/callback.h" | 12 #include "base/callback.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/i18n/rtl.h" | 14 #include "base/i18n/rtl.h" |
| 15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
| 16 #include "base/singleton.h" | 16 #include "base/singleton.h" |
| 17 #include "base/string_number_conversions.h" | 17 #include "base/string_number_conversions.h" |
| 18 #include "base/thread.h" | 18 #include "base/threading/thread.h" |
| 19 #include "base/utf_string_conversions.h" | 19 #include "base/utf_string_conversions.h" |
| 20 #include "chrome/browser/browser_thread.h" | 20 #include "chrome/browser/browser_thread.h" |
| 21 #include "chrome/browser/dom_ui/app_launcher_handler.h" | 21 #include "chrome/browser/dom_ui/app_launcher_handler.h" |
| 22 #include "chrome/browser/dom_ui/dom_ui_theme_source.h" | 22 #include "chrome/browser/dom_ui/dom_ui_theme_source.h" |
| 23 #include "chrome/browser/dom_ui/foreign_session_handler.h" | 23 #include "chrome/browser/dom_ui/foreign_session_handler.h" |
| 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" |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 } |
| OLD | NEW |