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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 class WebEmbeddedWorkerImpl FINAL : | 50 class WebEmbeddedWorkerImpl FINAL : |
51 public WebEmbeddedWorker, | 51 public WebEmbeddedWorker, |
52 public WebFrameClient { | 52 public WebFrameClient { |
53 WTF_MAKE_NONCOPYABLE(WebEmbeddedWorkerImpl); | 53 WTF_MAKE_NONCOPYABLE(WebEmbeddedWorkerImpl); |
54 public: | 54 public: |
55 WebEmbeddedWorkerImpl( | 55 WebEmbeddedWorkerImpl( |
56 PassOwnPtr<WebServiceWorkerContextClient>, | 56 PassOwnPtr<WebServiceWorkerContextClient>, |
57 PassOwnPtr<WebWorkerPermissionClientProxy>); | 57 PassOwnPtr<WebWorkerPermissionClientProxy>); |
58 virtual ~WebEmbeddedWorkerImpl(); | 58 virtual ~WebEmbeddedWorkerImpl(); |
59 | 59 |
60 // Terminate all WebEmbeddedWorkerImpl for testing purposes. | |
61 // Note that this only schedules termination and does not synchronously wait for it to complete. | |
tkent
2014/07/28 00:42:48
nit: I recommend to wrap code comments in 80 colu
| |
62 static void terminateAll(); | |
63 | |
60 // WebEmbeddedWorker overrides. | 64 // WebEmbeddedWorker overrides. |
61 virtual void startWorkerContext(const WebEmbeddedWorkerStartData&) OVERRIDE; | 65 virtual void startWorkerContext(const WebEmbeddedWorkerStartData&) OVERRIDE; |
62 virtual void resumeAfterDownload() OVERRIDE; | 66 virtual void resumeAfterDownload() OVERRIDE; |
63 virtual void terminateWorkerContext() OVERRIDE; | 67 virtual void terminateWorkerContext() OVERRIDE; |
64 virtual void resumeWorkerContext() OVERRIDE; | 68 virtual void resumeWorkerContext() OVERRIDE; |
65 virtual void attachDevTools() OVERRIDE; | 69 virtual void attachDevTools() OVERRIDE; |
66 virtual void reattachDevTools(const WebString& savedState) OVERRIDE; | 70 virtual void reattachDevTools(const WebString& savedState) OVERRIDE; |
67 virtual void detachDevTools() OVERRIDE; | 71 virtual void detachDevTools() OVERRIDE; |
68 virtual void dispatchDevToolsMessage(const WebString&) OVERRIDE; | 72 virtual void dispatchDevToolsMessage(const WebString&) OVERRIDE; |
69 | 73 |
70 | |
71 private: | 74 private: |
72 class Loader; | 75 class Loader; |
73 class LoaderProxy; | 76 class LoaderProxy; |
74 | 77 |
75 void prepareShadowPageForLoader(); | 78 void prepareShadowPageForLoader(); |
76 | 79 |
77 // WebFrameClient overrides. | 80 // WebFrameClient overrides. |
78 virtual void willSendRequest( | 81 virtual void willSendRequest( |
79 WebLocalFrame*, unsigned identifier, WebURLRequest&, | 82 WebLocalFrame*, unsigned identifier, WebURLRequest&, |
80 const WebURLResponse& redirectResponse) OVERRIDE; | 83 const WebURLResponse& redirectResponse) OVERRIDE; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
114 enum { | 117 enum { |
115 DontPauseAfterDownload, | 118 DontPauseAfterDownload, |
116 DoPauseAfterDownload, | 119 DoPauseAfterDownload, |
117 IsPausedAfterDownload | 120 IsPausedAfterDownload |
118 } m_pauseAfterDownloadState; | 121 } m_pauseAfterDownloadState; |
119 }; | 122 }; |
120 | 123 |
121 } // namespace blink | 124 } // namespace blink |
122 | 125 |
123 #endif // WebEmbeddedWorkerImpl_h | 126 #endif // WebEmbeddedWorkerImpl_h |
OLD | NEW |