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

Side by Side Diff: content/public/common/web_preferences.h

Issue 2394653002: Disable download for overlay panel content (Closed)
Patch Set: rebase Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COMMON_WEB_PREFERENCES_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 6 #define CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 // String that describes how media element autoplay behavior should be 244 // String that describes how media element autoplay behavior should be
245 // affected by experiment. 245 // affected by experiment.
246 std::string autoplay_experiment_mode; 246 std::string autoplay_experiment_mode;
247 247
248 // Default (used if the page or UA doesn't override these) values for page 248 // Default (used if the page or UA doesn't override these) values for page
249 // scale limits. These are set directly on the WebView so there's no analogue 249 // scale limits. These are set directly on the WebView so there's no analogue
250 // in WebSettings. 250 // in WebSettings.
251 float default_minimum_page_scale_factor; 251 float default_minimum_page_scale_factor;
252 float default_maximum_page_scale_factor; 252 float default_maximum_page_scale_factor;
253 253
254 // Whether download UI should be hidden on this page.
255 bool hide_download_ui;
256
254 // We try to keep the default values the same as the default values in 257 // We try to keep the default values the same as the default values in
255 // chrome, except for the cases where it would require lots of extra work for 258 // chrome, except for the cases where it would require lots of extra work for
256 // the embedder to use the same default value. 259 // the embedder to use the same default value.
257 WebPreferences(); 260 WebPreferences();
258 WebPreferences(const WebPreferences& other); 261 WebPreferences(const WebPreferences& other);
259 ~WebPreferences(); 262 ~WebPreferences();
260 }; 263 };
261 264
262 } // namespace content 265 } // namespace content
263 266
264 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ 267 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_
OLDNEW
« no previous file with comments | « content/public/common/common_param_traits_macros.h ('k') | content/public/common/web_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698