OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef WebEmbeddedWorkerStartData_h | 31 #ifndef WebEmbeddedWorkerStartData_h |
32 #define WebEmbeddedWorkerStartData_h | 32 #define WebEmbeddedWorkerStartData_h |
33 | 33 |
34 #include "public/platform/WebAddressSpace.h" | 34 #include "public/platform/WebAddressSpace.h" |
35 #include "public/platform/WebContentSecurityPolicy.h" | 35 #include "public/platform/WebContentSecurityPolicy.h" |
36 #include "public/platform/WebString.h" | 36 #include "public/platform/WebString.h" |
37 #include "public/platform/WebURL.h" | 37 #include "public/platform/WebURL.h" |
| 38 #include "public/web/WebDataSaverFlag.h" |
38 #include "public/web/WebSettings.h" | 39 #include "public/web/WebSettings.h" |
39 | 40 |
40 namespace blink { | 41 namespace blink { |
41 | 42 |
42 struct WebEmbeddedWorkerStartData { | 43 struct WebEmbeddedWorkerStartData { |
43 enum PauseAfterDownloadMode { | 44 enum PauseAfterDownloadMode { |
44 kDontPauseAfterDownload, | 45 kDontPauseAfterDownload, |
45 kPauseAfterDownload, | 46 kPauseAfterDownload, |
46 }; | 47 }; |
47 enum WaitForDebuggerMode { kDontWaitForDebugger, kWaitForDebugger }; | 48 enum WaitForDebuggerMode { kDontWaitForDebugger, kWaitForDebugger }; |
48 | 49 |
49 WebURL script_url; | 50 WebURL script_url; |
50 WebString user_agent; | 51 WebString user_agent; |
51 PauseAfterDownloadMode pause_after_download_mode; | 52 PauseAfterDownloadMode pause_after_download_mode; |
52 WaitForDebuggerMode wait_for_debugger_mode; | 53 WaitForDebuggerMode wait_for_debugger_mode; |
53 WebSettings::V8CacheOptions v8_cache_options; | 54 WebSettings::V8CacheOptions v8_cache_options; |
54 bool data_saver_enabled; | 55 WebDataSaverFlag data_saver_flag; |
55 | 56 |
56 WebAddressSpace address_space; | 57 WebAddressSpace address_space; |
57 | 58 |
58 WebEmbeddedWorkerStartData() | 59 WebEmbeddedWorkerStartData() |
59 : pause_after_download_mode(kDontPauseAfterDownload), | 60 : pause_after_download_mode(kDontPauseAfterDownload), |
60 wait_for_debugger_mode(kDontWaitForDebugger), | 61 wait_for_debugger_mode(kDontWaitForDebugger), |
61 v8_cache_options(WebSettings::kV8CacheOptionsDefault), | 62 v8_cache_options(WebSettings::kV8CacheOptionsDefault), |
62 data_saver_enabled(false) {} | 63 data_saver_flag(WebDataSaverFlag::kDisabled) {} |
63 }; | 64 }; |
64 | 65 |
65 } // namespace blink | 66 } // namespace blink |
66 | 67 |
67 #endif // WebEmbeddedWorkerStartData_h | 68 #endif // WebEmbeddedWorkerStartData_h |
OLD | NEW |