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

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

Issue 1457623004: Serve mojo WebUI resources from the same origin as the WebUI itself. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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 20 matching lines...) Expand all
31 void AddString(const std::string& name, const std::string& value) override; 31 void AddString(const std::string& name, const std::string& value) override;
32 void AddLocalizedString(const std::string& name, int ids) override; 32 void AddLocalizedString(const std::string& name, int ids) override;
33 void AddLocalizedStrings( 33 void AddLocalizedStrings(
34 const base::DictionaryValue& localized_strings) override; 34 const base::DictionaryValue& localized_strings) override;
35 void AddBoolean(const std::string& name, bool value) override; 35 void AddBoolean(const std::string& name, bool value) override;
36 void SetJsonPath(const std::string& path) override; 36 void SetJsonPath(const std::string& path) override;
37 void AddResourcePath(const std::string& path, int resource_id) override; 37 void AddResourcePath(const std::string& path, int resource_id) override;
38 void SetDefaultResource(int resource_id) override; 38 void SetDefaultResource(int resource_id) override;
39 void SetRequestFilter( 39 void SetRequestFilter(
40 const WebUIDataSource::HandleRequestCallback& callback) override; 40 const WebUIDataSource::HandleRequestCallback& callback) override;
41 void AddMojoResources() override;
41 void DisableReplaceExistingSource() override; 42 void DisableReplaceExistingSource() override;
42 void DisableContentSecurityPolicy() override; 43 void DisableContentSecurityPolicy() override;
43 void OverrideContentSecurityPolicyObjectSrc(const std::string& data) override; 44 void OverrideContentSecurityPolicyObjectSrc(const std::string& data) override;
44 void OverrideContentSecurityPolicyFrameSrc(const std::string& data) override; 45 void OverrideContentSecurityPolicyFrameSrc(const std::string& data) override;
45 void DisableDenyXFrameOptions() override; 46 void DisableDenyXFrameOptions() override;
46 47
47 protected: 48 protected:
48 ~WebUIDataSourceImpl() override; 49 ~WebUIDataSourceImpl() override;
49 50
50 // Completes a request by sending our dictionary of localized strings. 51 // Completes a request by sending our dictionary of localized strings.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 bool deny_xframe_options_; 95 bool deny_xframe_options_;
95 bool disable_set_font_strings_; 96 bool disable_set_font_strings_;
96 bool replace_existing_source_; 97 bool replace_existing_source_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(WebUIDataSourceImpl); 99 DISALLOW_COPY_AND_ASSIGN(WebUIDataSourceImpl);
99 }; 100 };
100 101
101 } // content 102 } // content
102 103
103 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_ 104 #endif // CONTENT_BROWSER_WEBUI_WEB_UI_DATA_SOURCE_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/omnibox/omnibox_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