| 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 "content/browser/webui/shared_resources_data_source.h" | 5 #include "content/browser/webui/shared_resources_data_source.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // back. | 189 // back. |
| 190 std::string allowed_origin_prefix = kChromeUIScheme; | 190 std::string allowed_origin_prefix = kChromeUIScheme; |
| 191 allowed_origin_prefix += "://"; | 191 allowed_origin_prefix += "://"; |
| 192 if (!base::StartsWith(origin, allowed_origin_prefix, | 192 if (!base::StartsWith(origin, allowed_origin_prefix, |
| 193 base::CompareCase::SENSITIVE)) { | 193 base::CompareCase::SENSITIVE)) { |
| 194 return "null"; | 194 return "null"; |
| 195 } | 195 } |
| 196 return origin; | 196 return origin; |
| 197 } | 197 } |
| 198 | 198 |
| 199 bool SharedResourcesDataSource::IsGzipped(const std::string& path) const { |
| 200 return path == "js/mojo_bindings.js"; |
| 201 } |
| 202 |
| 199 } // namespace content | 203 } // namespace content |
| OLD | NEW |