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 |
(...skipping 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 // URL from the new tab page, but in any case it's an error. | 649 // URL from the new tab page, but in any case it's an error. |
650 NOTREACHED(); | 650 NOTREACHED(); |
651 return; | 651 return; |
652 } | 652 } |
653 | 653 |
654 scoped_refptr<RefCountedBytes> html_bytes = | 654 scoped_refptr<RefCountedBytes> html_bytes = |
655 profile_->GetNTPResourceCache()->GetNewTabHTML(is_off_the_record); | 655 profile_->GetNTPResourceCache()->GetNewTabHTML(is_off_the_record); |
656 | 656 |
657 SendResponse(request_id, html_bytes); | 657 SendResponse(request_id, html_bytes); |
658 } | 658 } |
| 659 |
| 660 std::string NewTabUI::NewTabHTMLSource::GetMimeType(const std::string&) const { |
| 661 return "text/html"; |
| 662 } |
| 663 |
| 664 NewTabUI::NewTabHTMLSource::~NewTabHTMLSource() { |
| 665 } |
OLD | NEW |