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 #ifndef CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_ |
6 #define CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_ | 6 #define CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 void DisableReplaceExistingSource() override; | 46 void DisableReplaceExistingSource() override; |
47 void DisableContentSecurityPolicy() override; | 47 void DisableContentSecurityPolicy() override; |
48 void OverrideContentSecurityPolicyObjectSrc(const std::string& data) override; | 48 void OverrideContentSecurityPolicyObjectSrc(const std::string& data) override; |
49 void OverrideContentSecurityPolicyChildSrc(const std::string& data) override; | 49 void OverrideContentSecurityPolicyChildSrc(const std::string& data) override; |
50 void DisableDenyXFrameOptions() override; | 50 void DisableDenyXFrameOptions() override; |
51 void DisableI18nAndUseGzipForAllPaths() override; | 51 void DisableI18nAndUseGzipForAllPaths() override; |
52 | 52 |
53 // When DisableI18nAndUseGzipForAllPaths is enabled, exclude the given |path|. | 53 // When DisableI18nAndUseGzipForAllPaths is enabled, exclude the given |path|. |
54 void ExcludePathFromGzip(const std::string& path); | 54 void ExcludePathFromGzip(const std::string& path); |
55 | 55 |
| 56 bool IsWebUIDataSourceImpl() const override; |
| 57 |
56 protected: | 58 protected: |
57 ~WebUIDataSourceImpl() override; | 59 ~WebUIDataSourceImpl() override; |
58 | 60 |
59 // Completes a request by sending our dictionary of localized strings. | 61 // Completes a request by sending our dictionary of localized strings. |
60 void SendLocalizedStringsAsJSON( | 62 void SendLocalizedStringsAsJSON( |
61 const URLDataSource::GotDataCallback& callback); | 63 const URLDataSource::GotDataCallback& callback); |
62 | 64 |
63 private: | 65 private: |
64 class InternalDataSource; | 66 class InternalDataSource; |
65 friend class InternalDataSource; | 67 friend class InternalDataSource; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 bool add_load_time_data_defaults_; | 107 bool add_load_time_data_defaults_; |
106 bool replace_existing_source_; | 108 bool replace_existing_source_; |
107 bool use_gzip_for_all_paths_; | 109 bool use_gzip_for_all_paths_; |
108 | 110 |
109 DISALLOW_COPY_AND_ASSIGN(WebUIDataSourceImpl); | 111 DISALLOW_COPY_AND_ASSIGN(WebUIDataSourceImpl); |
110 }; | 112 }; |
111 | 113 |
112 } // namespace content | 114 } // namespace content |
113 | 115 |
114 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_ | 116 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_ |
OLD | NEW |