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

Side by Side Diff: content/public/browser/web_ui_data_source.h

Issue 2528903002: Allow the PDF extension for chrome://print pages. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « content/browser/webui/web_ui_data_source_impl.cc ('k') | no next file » | 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 virtual void SetRequestFilter(const HandleRequestCallback& callback) = 0; 80 virtual void SetRequestFilter(const HandleRequestCallback& callback) = 0;
81 81
82 // The following map to methods on URLDataSource. See the documentation there. 82 // The following map to methods on URLDataSource. See the documentation there.
83 // NOTE: it's not acceptable to call DisableContentSecurityPolicy for new 83 // NOTE: it's not acceptable to call DisableContentSecurityPolicy for new
84 // pages, see URLDataSource::ShouldAddContentSecurityPolicy and talk to 84 // pages, see URLDataSource::ShouldAddContentSecurityPolicy and talk to
85 // tsepez. 85 // tsepez.
86 86
87 // Currently only used by embedders for WebUIs with multiple instances. 87 // Currently only used by embedders for WebUIs with multiple instances.
88 virtual void DisableReplaceExistingSource() = 0; 88 virtual void DisableReplaceExistingSource() = 0;
89 virtual void DisableContentSecurityPolicy() = 0; 89 virtual void DisableContentSecurityPolicy() = 0;
90 virtual void OverrideContentSecurityPolicyScriptSrc(
91 const std::string& data) = 0;
90 virtual void OverrideContentSecurityPolicyObjectSrc( 92 virtual void OverrideContentSecurityPolicyObjectSrc(
91 const std::string& data) = 0; 93 const std::string& data) = 0;
92 virtual void OverrideContentSecurityPolicyChildSrc( 94 virtual void OverrideContentSecurityPolicyChildSrc(
93 const std::string& data) = 0; 95 const std::string& data) = 0;
94 virtual void DisableDenyXFrameOptions() = 0; 96 virtual void DisableDenyXFrameOptions() = 0;
95 97
96 // Tells the loading code that resources are gzipped on disk. TODO(dbeam): 98 // Tells the loading code that resources are gzipped on disk. TODO(dbeam):
97 // write a streaming $i18n{} replacer and remove the "DisableI18n" part. 99 // write a streaming $i18n{} replacer and remove the "DisableI18n" part.
98 virtual void DisableI18nAndUseGzipForAllPaths() = 0; 100 virtual void DisableI18nAndUseGzipForAllPaths() = 0;
99 }; 101 };
100 102
101 } // namespace content 103 } // namespace content
102 104
103 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_ 105 #endif // CONTENT_PUBLIC_BROWSER_WEB_UI_DATA_SOURCE_H_
OLDNEW
« no previous file with comments | « content/browser/webui/web_ui_data_source_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698