| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #ifndef WebEmbeddedWorkerStartData_h | 31 #ifndef WebEmbeddedWorkerStartData_h |
| 32 #define WebEmbeddedWorkerStartData_h | 32 #define WebEmbeddedWorkerStartData_h |
| 33 | 33 |
| 34 #include "WebContentSecurityPolicy.h" | 34 #include "WebContentSecurityPolicy.h" |
| 35 #include "public/platform/WebString.h" | 35 #include "public/platform/WebString.h" |
| 36 #include "public/platform/WebURL.h" | 36 #include "public/platform/WebURL.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 // FIXME: delete after waitForDebugger is in use in both chrome and blink. | |
| 41 enum WebEmbeddedWorkerStartMode { | |
| 42 WebEmbeddedWorkerStartModeDontPauseOnStart, | |
| 43 WebEmbeddedWorkerStartModePauseOnStart | |
| 44 }; | |
| 45 | |
| 46 struct WebEmbeddedWorkerStartData { | 40 struct WebEmbeddedWorkerStartData { |
| 47 enum PauseAfterDownloadMode { | 41 enum PauseAfterDownloadMode { |
| 48 DontPauseAfterDownload, | 42 DontPauseAfterDownload, |
| 49 PauseAfterDownload, | 43 PauseAfterDownload, |
| 50 }; | 44 }; |
| 51 enum WaitForDebuggerMode { | 45 enum WaitForDebuggerMode { |
| 52 DontWaitForDebugger, | 46 DontWaitForDebugger, |
| 53 WaitForDebugger | 47 WaitForDebugger |
| 54 }; | 48 }; |
| 55 | 49 |
| 56 WebURL scriptURL; | 50 WebURL scriptURL; |
| 57 WebString userAgent; | 51 WebString userAgent; |
| 58 WebEmbeddedWorkerStartMode startMode; // FIXME: ditto delete | |
| 59 PauseAfterDownloadMode pauseAfterDownloadMode; | 52 PauseAfterDownloadMode pauseAfterDownloadMode; |
| 60 WaitForDebuggerMode waitForDebuggerMode; | 53 WaitForDebuggerMode waitForDebuggerMode; |
| 61 | 54 |
| 62 WebEmbeddedWorkerStartData() | 55 WebEmbeddedWorkerStartData() |
| 63 : startMode(WebEmbeddedWorkerStartModeDontPauseOnStart) | 56 : pauseAfterDownloadMode(DontPauseAfterDownload) |
| 64 , pauseAfterDownloadMode(DontPauseAfterDownload) | |
| 65 , waitForDebuggerMode(DontWaitForDebugger) { } | 57 , waitForDebuggerMode(DontWaitForDebugger) { } |
| 66 }; | 58 }; |
| 67 | 59 |
| 68 } // namespace blink | 60 } // namespace blink |
| 69 | 61 |
| 70 #endif // WebEmbeddedWorkerStartData_h | 62 #endif // WebEmbeddedWorkerStartData_h |
| OLD | NEW |