| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #ifndef CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_ | 6 #define CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> |
| 12 #include <unordered_set> |
| 11 | 13 |
| 12 #include "base/callback.h" | 14 #include "base/callback.h" |
| 13 #include "base/strings/string16.h" | 15 #include "base/strings/string16.h" |
| 14 #include "content/common/content_export.h" | 16 #include "content/common/content_export.h" |
| 15 | 17 |
| 16 namespace base { | 18 namespace base { |
| 17 class DictionaryValue; | 19 class DictionaryValue; |
| 18 class RefCountedMemory; | 20 class RefCountedMemory; |
| 19 } | 21 } |
| 20 | 22 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 virtual void DisableReplaceExistingSource() = 0; | 100 virtual void DisableReplaceExistingSource() = 0; |
| 99 virtual void DisableContentSecurityPolicy() = 0; | 101 virtual void DisableContentSecurityPolicy() = 0; |
| 100 virtual void OverrideContentSecurityPolicyScriptSrc( | 102 virtual void OverrideContentSecurityPolicyScriptSrc( |
| 101 const std::string& data) = 0; | 103 const std::string& data) = 0; |
| 102 virtual void OverrideContentSecurityPolicyObjectSrc( | 104 virtual void OverrideContentSecurityPolicyObjectSrc( |
| 103 const std::string& data) = 0; | 105 const std::string& data) = 0; |
| 104 virtual void OverrideContentSecurityPolicyChildSrc( | 106 virtual void OverrideContentSecurityPolicyChildSrc( |
| 105 const std::string& data) = 0; | 107 const std::string& data) = 0; |
| 106 virtual void DisableDenyXFrameOptions() = 0; | 108 virtual void DisableDenyXFrameOptions() = 0; |
| 107 | 109 |
| 108 // Tells the loading code that resources are gzipped on disk. TODO(dbeam): | 110 // Tells the loading code that resources are gzipped on disk. |excluded_paths| |
| 109 // write a streaming $i18n{} replacer and remove the "DisableI18n" part. | 111 // are uncompressed paths, and therefore should not be decompressed. |
| 110 virtual void DisableI18nAndUseGzipForAllPaths() = 0; | 112 virtual void UseGzip(const std::unordered_set<std::string>& excluded_paths) |
| 113 = 0; |
| 111 }; | 114 }; |
| 112 | 115 |
| 113 } // namespace content | 116 } // namespace content |
| 114 | 117 |
| 115 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_ | 118 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_ |
| OLD | NEW |