Chromium Code Reviews| 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 "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 virtual void DisableContentSecurityPolicy() = 0; | 89 virtual void DisableContentSecurityPolicy() = 0; |
| 90 virtual void OverrideContentSecurityPolicyObjectSrc( | 90 virtual void OverrideContentSecurityPolicyObjectSrc( |
| 91 const std::string& data) = 0; | 91 const std::string& data) = 0; |
| 92 virtual void OverrideContentSecurityPolicyChildSrc( | 92 virtual void OverrideContentSecurityPolicyChildSrc( |
| 93 const std::string& data) = 0; | 93 const std::string& data) = 0; |
| 94 virtual void DisableDenyXFrameOptions() = 0; | 94 virtual void DisableDenyXFrameOptions() = 0; |
| 95 | 95 |
| 96 // Tells the loading code that resources are gzipped on disk. TODO(dbeam): | 96 // Tells the loading code that resources are gzipped on disk. TODO(dbeam): |
| 97 // write a streaming $i18n{} replacer and remove the "DisableI18n" part. | 97 // write a streaming $i18n{} replacer and remove the "DisableI18n" part. |
| 98 virtual void DisableI18nAndUseGzipForAllPaths() = 0; | 98 virtual void DisableI18nAndUseGzipForAllPaths() = 0; |
| 99 | |
| 100 virtual void ExcludePathFromGzip(const std::string& path) = 0; | |
|
Charlie Reis
2016/10/13 17:04:43
This is in content/public but doesn't appear to be
Dan Beam
2016/10/13 17:53:46
yep, sorry about that, most of the webui pages i m
| |
| 99 }; | 101 }; |
| 100 | 102 |
| 101 } // namespace content | 103 } // namespace content |
| 102 | 104 |
| 103 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_ | 105 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_ |
| OLD | NEW |