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

Side by Side Diff: third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.h

Issue 2290233007: Move convertViewportToWindow and convertWindowToViewport from (Closed)
Patch Set: Created 4 years, 3 months 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
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 28 matching lines...) Expand all
39 #include "public/web/WebEmbeddedWorker.h" 39 #include "public/web/WebEmbeddedWorker.h"
40 #include "public/web/WebEmbeddedWorkerStartData.h" 40 #include "public/web/WebEmbeddedWorkerStartData.h"
41 #include "public/web/WebFrameClient.h" 41 #include "public/web/WebFrameClient.h"
42 #include <memory> 42 #include <memory>
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class ParentFrameTaskRunners; 46 class ParentFrameTaskRunners;
47 class ServiceWorkerGlobalScopeProxy; 47 class ServiceWorkerGlobalScopeProxy;
48 class WebLocalFrameImpl; 48 class WebLocalFrameImpl;
49 class WebFrameWidget;
49 class WebServiceWorkerNetworkProvider; 50 class WebServiceWorkerNetworkProvider;
50 class WebView; 51 class WebView;
51 class WorkerInspectorProxy; 52 class WorkerInspectorProxy;
52 class WorkerScriptLoader; 53 class WorkerScriptLoader;
53 class WorkerThread; 54 class WorkerThread;
54 55
55 class WebEmbeddedWorkerImpl final 56 class WebEmbeddedWorkerImpl final
56 : public WebEmbeddedWorker 57 : public WebEmbeddedWorker
57 , public WebFrameClient 58 , public WebFrameClient
58 , public WebDevToolsAgentClient 59 , public WebDevToolsAgentClient
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 RefPtr<WorkerScriptLoader> m_mainScriptLoader; 111 RefPtr<WorkerScriptLoader> m_mainScriptLoader;
111 112
112 Persistent<ParentFrameTaskRunners> m_mainThreadTaskRunners; 113 Persistent<ParentFrameTaskRunners> m_mainThreadTaskRunners;
113 114
114 std::unique_ptr<WorkerThread> m_workerThread; 115 std::unique_ptr<WorkerThread> m_workerThread;
115 RefPtr<WorkerLoaderProxy> m_loaderProxy; 116 RefPtr<WorkerLoaderProxy> m_loaderProxy;
116 Persistent<ServiceWorkerGlobalScopeProxy> m_workerGlobalScopeProxy; 117 Persistent<ServiceWorkerGlobalScopeProxy> m_workerGlobalScopeProxy;
117 Persistent<WorkerInspectorProxy> m_workerInspectorProxy; 118 Persistent<WorkerInspectorProxy> m_workerInspectorProxy;
118 119
119 // 'shadow page' - created to proxy loading requests from the worker. 120 // 'shadow page' - created to proxy loading requests from the worker.
120 // Both WebView and WebFrame objects are close()'ed (where they're 121 // WebView, WebFrameWidget and WebFrame objects are close()'ed (where
121 // deref'ed) when this EmbeddedWorkerImpl is destructed, therefore they 122 // they're deref'ed) when this EmbeddedWorkerImpl is destructed, therefore
122 // are guaranteed to exist while this object is around. 123 // they are guaranteed to exist while this object is around.
123 WebView* m_webView; 124 WebView* m_webView;
125 WebFrameWidget* m_webFrameWidget;
124 Persistent<WebLocalFrameImpl> m_mainFrame; 126 Persistent<WebLocalFrameImpl> m_mainFrame;
125 127
126 bool m_loadingShadowPage; 128 bool m_loadingShadowPage;
127 bool m_askedToTerminate; 129 bool m_askedToTerminate;
128 130
129 enum WaitingForDebuggerState { 131 enum WaitingForDebuggerState {
130 WaitingForDebugger, 132 WaitingForDebugger,
131 NotWaitingForDebugger 133 NotWaitingForDebugger
132 }; 134 };
133 135
134 enum { 136 enum {
135 DontPauseAfterDownload, 137 DontPauseAfterDownload,
136 DoPauseAfterDownload, 138 DoPauseAfterDownload,
137 IsPausedAfterDownload 139 IsPausedAfterDownload
138 } m_pauseAfterDownloadState; 140 } m_pauseAfterDownloadState;
139 141
140 WaitingForDebuggerState m_waitingForDebuggerState; 142 WaitingForDebuggerState m_waitingForDebuggerState;
141 }; 143 };
142 144
143 } // namespace blink 145 } // namespace blink
144 146
145 #endif // WebEmbeddedWorkerImpl_h 147 #endif // WebEmbeddedWorkerImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698