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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 16 matching lines...) Expand all Loading... |
27 : public NON_EXPORTED_BASE(URLDataSourceImpl), | 27 : public NON_EXPORTED_BASE(URLDataSourceImpl), |
28 public NON_EXPORTED_BASE(WebUIDataSource) { | 28 public NON_EXPORTED_BASE(WebUIDataSource) { |
29 public: | 29 public: |
30 // WebUIDataSource implementation: | 30 // WebUIDataSource implementation: |
31 void AddString(const std::string& name, const base::string16& value) override; | 31 void AddString(const std::string& name, const base::string16& value) override; |
32 void AddString(const std::string& name, const std::string& value) override; | 32 void AddString(const std::string& name, const std::string& value) override; |
33 void AddLocalizedString(const std::string& name, int ids) override; | 33 void AddLocalizedString(const std::string& name, int ids) override; |
34 void AddLocalizedStrings( | 34 void AddLocalizedStrings( |
35 const base::DictionaryValue& localized_strings) override; | 35 const base::DictionaryValue& localized_strings) override; |
36 void AddBoolean(const std::string& name, bool value) override; | 36 void AddBoolean(const std::string& name, bool value) override; |
| 37 void AddInteger(const std::string& name, int value) override; |
37 void SetJsonPath(const std::string& path) override; | 38 void SetJsonPath(const std::string& path) override; |
38 void AddResourcePath(const std::string& path, int resource_id) override; | 39 void AddResourcePath(const std::string& path, int resource_id) override; |
39 void SetDefaultResource(int resource_id) override; | 40 void SetDefaultResource(int resource_id) override; |
40 void SetRequestFilter( | 41 void SetRequestFilter( |
41 const WebUIDataSource::HandleRequestCallback& callback) override; | 42 const WebUIDataSource::HandleRequestCallback& callback) override; |
42 void DisableReplaceExistingSource() override; | 43 void DisableReplaceExistingSource() override; |
43 void DisableContentSecurityPolicy() override; | 44 void DisableContentSecurityPolicy() override; |
44 void OverrideContentSecurityPolicyObjectSrc(const std::string& data) override; | 45 void OverrideContentSecurityPolicyObjectSrc(const std::string& data) override; |
45 void OverrideContentSecurityPolicyChildSrc(const std::string& data) override; | 46 void OverrideContentSecurityPolicyChildSrc(const std::string& data) override; |
46 void DisableDenyXFrameOptions() override; | 47 void DisableDenyXFrameOptions() override; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 bool add_load_time_data_defaults_; | 98 bool add_load_time_data_defaults_; |
98 bool replace_existing_source_; | 99 bool replace_existing_source_; |
99 bool use_gzip_for_all_paths_; | 100 bool use_gzip_for_all_paths_; |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(WebUIDataSourceImpl); | 102 DISALLOW_COPY_AND_ASSIGN(WebUIDataSourceImpl); |
102 }; | 103 }; |
103 | 104 |
104 } // namespace content | 105 } // namespace content |
105 | 106 |
106 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_ | 107 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_ |
OLD | NEW |