| 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> |
| 11 | 11 |
| 12 #include "base/strings/string16.h" | 12 #include "base/strings/string16.h" |
| 13 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 14 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 15 #include "content/common/content_export.h" | 15 #include "content/common/content_export.h" |
| 16 #include "third_party/WebKit/public/web/WebDataSaverFlag.h" |
| 16 #include "ui/base/touch/touch_device.h" | 17 #include "ui/base/touch/touch_device.h" |
| 17 #include "url/gurl.h" | 18 #include "url/gurl.h" |
| 18 | 19 |
| 19 namespace blink { | 20 namespace blink { |
| 20 class WebView; | 21 class WebView; |
| 21 } | 22 } |
| 22 | 23 |
| 23 namespace content { | 24 namespace content { |
| 24 | 25 |
| 25 // Map of ISO 15924 four-letter script code to font family. For example, | 26 // Map of ISO 15924 four-letter script code to font family. For example, |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 bool remote_fonts_enabled; | 114 bool remote_fonts_enabled; |
| 114 bool javascript_can_access_clipboard; | 115 bool javascript_can_access_clipboard; |
| 115 bool xslt_enabled; | 116 bool xslt_enabled; |
| 116 bool xss_auditor_enabled; | 117 bool xss_auditor_enabled; |
| 117 // We don't use dns_prefetching_enabled to disable DNS prefetching. Instead, | 118 // We don't use dns_prefetching_enabled to disable DNS prefetching. Instead, |
| 118 // we disable the feature at a lower layer so that we catch non-WebKit uses | 119 // we disable the feature at a lower layer so that we catch non-WebKit uses |
| 119 // of DNS prefetch as well. | 120 // of DNS prefetch as well. |
| 120 bool dns_prefetching_enabled; | 121 bool dns_prefetching_enabled; |
| 121 // Preference to save data. When enabled, requests will contain the header | 122 // Preference to save data. When enabled, requests will contain the header |
| 122 // 'Save-Data: on'. | 123 // 'Save-Data: on'. |
| 123 bool data_saver_enabled; | 124 blink::WebDataSaverFlag data_saver_flag; |
| 124 bool local_storage_enabled; | 125 bool local_storage_enabled; |
| 125 bool databases_enabled; | 126 bool databases_enabled; |
| 126 bool application_cache_enabled; | 127 bool application_cache_enabled; |
| 127 bool tabs_to_links; | 128 bool tabs_to_links; |
| 128 bool history_entry_requires_user_gesture; | 129 bool history_entry_requires_user_gesture; |
| 129 bool hyperlink_auditing_enabled; | 130 bool hyperlink_auditing_enabled; |
| 130 bool allow_universal_access_from_file_urls; | 131 bool allow_universal_access_from_file_urls; |
| 131 bool allow_file_access_from_file_urls; | 132 bool allow_file_access_from_file_urls; |
| 132 bool experimental_webgl_enabled; | 133 bool experimental_webgl_enabled; |
| 133 bool pepper_3d_enabled; | 134 bool pepper_3d_enabled; |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 // chrome, except for the cases where it would require lots of extra work for | 303 // chrome, except for the cases where it would require lots of extra work for |
| 303 // the embedder to use the same default value. | 304 // the embedder to use the same default value. |
| 304 WebPreferences(); | 305 WebPreferences(); |
| 305 WebPreferences(const WebPreferences& other); | 306 WebPreferences(const WebPreferences& other); |
| 306 ~WebPreferences(); | 307 ~WebPreferences(); |
| 307 }; | 308 }; |
| 308 | 309 |
| 309 } // namespace content | 310 } // namespace content |
| 310 | 311 |
| 311 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ | 312 #endif // CONTENT_PUBLIC_COMMON_WEB_PREFERENCES_H_ |
| OLD | NEW |