OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/webui/ntp/new_tab_ui.h" | 7 #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
8 | 8 |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
393 } | 393 } |
394 | 394 |
395 void NewTabUI::NewTabHTMLSource::AddResource(const char* resource, | 395 void NewTabUI::NewTabHTMLSource::AddResource(const char* resource, |
396 const char* mime_type, | 396 const char* mime_type, |
397 int resource_id) { | 397 int resource_id) { |
398 DCHECK(resource); | 398 DCHECK(resource); |
399 DCHECK(mime_type); | 399 DCHECK(mime_type); |
400 resource_map_[std::string(resource)] = | 400 resource_map_[std::string(resource)] = |
401 std::make_pair(std::string(mime_type), resource_id); | 401 std::make_pair(std::string(mime_type), resource_id); |
402 } | 402 } |
| 403 |
| 404 NewTabUI::NewTabHTMLSource::~NewTabHTMLSource() {} |
OLD | NEW |