OLD | NEW |
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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 // in WebSettings. | 259 // in WebSettings. |
260 float default_minimum_page_scale_factor; | 260 float default_minimum_page_scale_factor; |
261 float default_maximum_page_scale_factor; | 261 float default_maximum_page_scale_factor; |
262 | 262 |
263 // Whether download UI should be hidden on this page. | 263 // Whether download UI should be hidden on this page. |
264 bool hide_download_ui; | 264 bool hide_download_ui; |
265 | 265 |
266 // If enabled, disabled video track when the video is in the background. | 266 // If enabled, disabled video track when the video is in the background. |
267 bool background_video_track_optimization_enabled; | 267 bool background_video_track_optimization_enabled; |
268 | 268 |
269 // If background video track optimization is enabled, don't disable video | |
270 // track for videos with the average keyframe distance greater than this | |
271 // value. | |
272 // TODO(avayvod, asvitkine): Query the value directly when it is available in | |
273 // the renderer process. See https://crbug.com/681160. | |
274 base::TimeDelta max_keyframe_distance_to_disable_background_video; | |
275 | |
276 // When memory pressure based garbage collection is enabled for MSE, the | 269 // When memory pressure based garbage collection is enabled for MSE, the |
277 // |enable_instant_source_buffer_gc| flag controls whether the GC is done | 270 // |enable_instant_source_buffer_gc| flag controls whether the GC is done |
278 // immediately on memory pressure notification or during the next SourceBuffer | 271 // immediately on memory pressure notification or during the next SourceBuffer |
279 // append (slower, but is MSE-spec compliant). | 272 // append (slower, but is MSE-spec compliant). |
280 // TODO(servolk, asvitkine): Query the value directly when it is available in | 273 // TODO(servolk, asvitkine): Query the value directly when it is available in |
281 // the renderer process. See https://crbug.com/681160. | 274 // the renderer process. See https://crbug.com/681160. |
282 bool enable_instant_source_buffer_gc; | 275 bool enable_instant_source_buffer_gc; |
283 | 276 |
284 // Whether it is a presentation receiver. | 277 // Whether it is a presentation receiver. |
285 bool presentation_receiver; | 278 bool presentation_receiver; |
(...skipping 11 matching lines...) Expand all Loading... |
297 // chrome, except for the cases where it would require lots of extra work for | 290 // chrome, except for the cases where it would require lots of extra work for |
298 // the embedder to use the same default value. | 291 // the embedder to use the same default value. |
299 WebPreferences(); | 292 WebPreferences(); |
300 WebPreferences(const WebPreferences& other); | 293 WebPreferences(const WebPreferences& other); |
301 ~WebPreferences(); | 294 ~WebPreferences(); |
302 }; | 295 }; |
303 | 296 |
304 } // namespace content | 297 } // namespace content |
305 | 298 |
306 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 299 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
OLD | NEW |