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

Side by Side Diff: public/web/WebEmbeddedWorkerStartData.h

Issue 686353003: ServiceWorker: Remove unused startMode field from WebEmbeddedWorkerStartData [2/2] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698