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

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

Issue 22150004: Add WebUIDataSourceImpl::DisableReplaceExistingSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comment improvement, don't mention chrome in content layer Created 7 years, 3 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
« no previous file with comments | « no previous file | content/browser/webui/web_ui_data_source_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 24 matching lines...) Expand all
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; 39 virtual void SetUseJsonJSFormatV2() OVERRIDE;
40 virtual void AddResourcePath(const std::string &path, 40 virtual void AddResourcePath(const std::string &path,
41 int resource_id) OVERRIDE; 41 int resource_id) OVERRIDE;
42 virtual void SetDefaultResource(int resource_id) OVERRIDE; 42 virtual void SetDefaultResource(int resource_id) OVERRIDE;
43 virtual void SetRequestFilter( 43 virtual void SetRequestFilter(
44 const WebUIDataSource::HandleRequestCallback& callback) OVERRIDE; 44 const WebUIDataSource::HandleRequestCallback& callback) OVERRIDE;
45 virtual void DisableReplaceExistingSource() OVERRIDE;
45 virtual void DisableContentSecurityPolicy() OVERRIDE; 46 virtual void DisableContentSecurityPolicy() OVERRIDE;
46 virtual void OverrideContentSecurityPolicyObjectSrc( 47 virtual void OverrideContentSecurityPolicyObjectSrc(
47 const std::string& data) OVERRIDE; 48 const std::string& data) OVERRIDE;
48 virtual void OverrideContentSecurityPolicyFrameSrc( 49 virtual void OverrideContentSecurityPolicyFrameSrc(
49 const std::string& data) OVERRIDE; 50 const std::string& data) OVERRIDE;
50 virtual void DisableDenyXFrameOptions() OVERRIDE; 51 virtual void DisableDenyXFrameOptions() OVERRIDE;
51 52
52 protected: 53 protected:
53 virtual ~WebUIDataSourceImpl(); 54 virtual ~WebUIDataSourceImpl();
54 55
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 std::map<std::string, int> path_to_idr_map_; 93 std::map<std::string, int> path_to_idr_map_;
93 base::DictionaryValue localized_strings_; 94 base::DictionaryValue localized_strings_;
94 WebUIDataSource::HandleRequestCallback filter_callback_; 95 WebUIDataSource::HandleRequestCallback filter_callback_;
95 bool add_csp_; 96 bool add_csp_;
96 bool object_src_set_; 97 bool object_src_set_;
97 std::string object_src_; 98 std::string object_src_;
98 bool frame_src_set_; 99 bool frame_src_set_;
99 std::string frame_src_; 100 std::string frame_src_;
100 bool deny_xframe_options_; 101 bool deny_xframe_options_;
101 bool disable_set_font_strings_; 102 bool disable_set_font_strings_;
103 bool replace_existing_source_;
102 104
103 DISALLOW_COPY_AND_ASSIGN(WebUIDataSourceImpl); 105 DISALLOW_COPY_AND_ASSIGN(WebUIDataSourceImpl);
104 }; 106 };
105 107
106 } // content 108 } // content
107 109
108 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_ 110 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/webui/web_ui_data_source_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698