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> |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
98 virtual void DisableReplaceExistingSource() = 0; | 98 virtual void DisableReplaceExistingSource() = 0; |
99 virtual void DisableContentSecurityPolicy() = 0; | 99 virtual void DisableContentSecurityPolicy() = 0; |
100 virtual void OverrideContentSecurityPolicyScriptSrc( | 100 virtual void OverrideContentSecurityPolicyScriptSrc( |
101 const std::string& data) = 0; | 101 const std::string& data) = 0; |
102 virtual void OverrideContentSecurityPolicyObjectSrc( | 102 virtual void OverrideContentSecurityPolicyObjectSrc( |
103 const std::string& data) = 0; | 103 const std::string& data) = 0; |
104 virtual void OverrideContentSecurityPolicyChildSrc( | 104 virtual void OverrideContentSecurityPolicyChildSrc( |
105 const std::string& data) = 0; | 105 const std::string& data) = 0; |
106 virtual void DisableDenyXFrameOptions() = 0; | 106 virtual void DisableDenyXFrameOptions() = 0; |
107 | 107 |
108 // Tells the loading code that resources are gzipped on disk. TODO(dbeam): | 108 // Tells the loading code that resources are gzipped on disk. |
109 // write a streaming $i18n{} replacer and remove the "DisableI18n" part. | 109 virtual void UseGzipForAllPaths() = 0; |
110 virtual void DisableI18nAndUseGzipForAllPaths() = 0; | 110 |
111 // When UseGzipForAllPaths is enabled, exclude the given |path|. | |
112 virtual void ExcludePathFromGzip(const std::string& path) = 0; | |
jam
2016/12/21 21:18:31
do we really need two methods? can't UseGzipForAll
Dan Beam
2016/12/21 22:22:05
how does
virtual void UseGzip(const std::vector<s
Dan Beam
2016/12/21 23:06:34
Done. (*except that I forgot excluded_paths_ was i
| |
111 }; | 113 }; |
112 | 114 |
113 } // namespace content | 115 } // namespace content |
114 | 116 |
115 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_ | 117 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_ |
OLD | NEW |