OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/search/local_ntp_source.h" | 5 #include "chrome/browser/search/local_ntp_source.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
8 #include "base/json/json_string_value_serializer.h" | 10 #include "base/json/json_string_value_serializer.h" |
9 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/macros.h" |
10 #include "base/memory/ref_counted_memory.h" | 13 #include "base/memory/ref_counted_memory.h" |
11 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
12 #include "base/metrics/field_trial.h" | 15 #include "base/metrics/field_trial.h" |
13 #include "base/strings/string_util.h" | 16 #include "base/strings/string_util.h" |
14 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
15 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
16 #include "base/values.h" | 19 #include "base/values.h" |
17 #include "build/build_config.h" | 20 #include "build/build_config.h" |
18 #include "chrome/browser/search/instant_io_context.h" | 21 #include "chrome/browser/search/instant_io_context.h" |
19 #include "chrome/browser/search/local_files_ntp_source.h" | 22 #include "chrome/browser/search/local_files_ntp_source.h" |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 } | 266 } |
264 } | 267 } |
265 return false; | 268 return false; |
266 } | 269 } |
267 | 270 |
268 std::string LocalNtpSource::GetContentSecurityPolicyFrameSrc() const { | 271 std::string LocalNtpSource::GetContentSecurityPolicyFrameSrc() const { |
269 // Allow embedding of most visited iframes. | 272 // Allow embedding of most visited iframes. |
270 return base::StringPrintf("frame-src %s;", | 273 return base::StringPrintf("frame-src %s;", |
271 chrome::kChromeSearchMostVisitedUrl); | 274 chrome::kChromeSearchMostVisitedUrl); |
272 } | 275 } |
OLD | NEW |