Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(675)

Side by Side Diff: content/browser/webui/web_ui_data_source_impl.h

Issue 599653003: Remove old template html boilerplate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bydefault
Patch Set: fix android Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 18 matching lines...) Expand all
29 // WebUIDataSource implementation: 29 // WebUIDataSource implementation:
30 virtual void AddString(const std::string& name, 30 virtual void AddString(const std::string& name,
31 const base::string16& value) OVERRIDE; 31 const base::string16& value) OVERRIDE;
32 virtual void AddString(const std::string& name, 32 virtual void AddString(const std::string& name,
33 const std::string& value) OVERRIDE; 33 const std::string& value) OVERRIDE;
34 virtual void AddLocalizedString(const std::string& name, int ids) OVERRIDE; 34 virtual void AddLocalizedString(const std::string& name, int ids) OVERRIDE;
35 virtual void AddLocalizedStrings( 35 virtual void AddLocalizedStrings(
36 const base::DictionaryValue& localized_strings) OVERRIDE; 36 const base::DictionaryValue& localized_strings) OVERRIDE;
37 virtual void AddBoolean(const std::string& name, bool value) OVERRIDE; 37 virtual void AddBoolean(const std::string& name, bool value) OVERRIDE;
38 virtual void SetJsonPath(const std::string& path) OVERRIDE; 38 virtual void SetJsonPath(const std::string& path) OVERRIDE;
39 virtual void SetUseJsonJSFormatV2() OVERRIDE;
40 virtual void AddResourcePath(const std::string &path, 39 virtual void AddResourcePath(const std::string &path,
41 int resource_id) OVERRIDE; 40 int resource_id) OVERRIDE;
42 virtual void SetDefaultResource(int resource_id) OVERRIDE; 41 virtual void SetDefaultResource(int resource_id) OVERRIDE;
43 virtual void SetRequestFilter( 42 virtual void SetRequestFilter(
44 const WebUIDataSource::HandleRequestCallback& callback) OVERRIDE; 43 const WebUIDataSource::HandleRequestCallback& callback) OVERRIDE;
45 virtual void DisableReplaceExistingSource() OVERRIDE; 44 virtual void DisableReplaceExistingSource() OVERRIDE;
46 virtual void DisableContentSecurityPolicy() OVERRIDE; 45 virtual void DisableContentSecurityPolicy() OVERRIDE;
47 virtual void OverrideContentSecurityPolicyObjectSrc( 46 virtual void OverrideContentSecurityPolicyObjectSrc(
48 const std::string& data) OVERRIDE; 47 const std::string& data) OVERRIDE;
49 virtual void OverrideContentSecurityPolicyFrameSrc( 48 virtual void OverrideContentSecurityPolicyFrameSrc(
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 80
82 void disable_set_font_strings_for_testing() { 81 void disable_set_font_strings_for_testing() {
83 disable_set_font_strings_ = true; 82 disable_set_font_strings_ = true;
84 } 83 }
85 84
86 // The name of this source. 85 // The name of this source.
87 // E.g., for favicons, this could be "favicon", which results in paths for 86 // E.g., for favicons, this could be "favicon", which results in paths for
88 // specific resources like "favicon/34" getting sent to this source. 87 // specific resources like "favicon/34" getting sent to this source.
89 std::string source_name_; 88 std::string source_name_;
90 int default_resource_; 89 int default_resource_;
91 bool json_js_format_v2_;
92 std::string json_path_; 90 std::string json_path_;
93 std::map<std::string, int> path_to_idr_map_; 91 std::map<std::string, int> path_to_idr_map_;
94 base::DictionaryValue localized_strings_; 92 base::DictionaryValue localized_strings_;
95 WebUIDataSource::HandleRequestCallback filter_callback_; 93 WebUIDataSource::HandleRequestCallback filter_callback_;
96 bool add_csp_; 94 bool add_csp_;
97 bool object_src_set_; 95 bool object_src_set_;
98 std::string object_src_; 96 std::string object_src_;
99 bool frame_src_set_; 97 bool frame_src_set_;
100 std::string frame_src_; 98 std::string frame_src_;
101 bool deny_xframe_options_; 99 bool deny_xframe_options_;
102 bool disable_set_font_strings_; 100 bool disable_set_font_strings_;
103 bool replace_existing_source_; 101 bool replace_existing_source_;
104 102
105 DISALLOW_COPY_AND_ASSIGN(WebUIDataSourceImpl); 103 DISALLOW_COPY_AND_ASSIGN(WebUIDataSourceImpl);
106 }; 104 };
107 105
108 } // content 106 } // content
109 107
110 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_ 108 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_
OLDNEW
« no previous file with comments | « content/browser/service_worker/service_worker_internals_ui.cc ('k') | content/browser/webui/web_ui_data_source_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698