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

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

Issue 2881693002: Move more classes to WebLocalFrameBase instead of WebLocalFrameImpl. (Closed)
Patch Set: Created 3 years, 7 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 27 matching lines...) Expand all
38 #include "public/platform/WebContentSecurityPolicy.h" 38 #include "public/platform/WebContentSecurityPolicy.h"
39 #include "public/web/WebDevToolsAgentClient.h" 39 #include "public/web/WebDevToolsAgentClient.h"
40 #include "public/web/WebEmbeddedWorker.h" 40 #include "public/web/WebEmbeddedWorker.h"
41 #include "public/web/WebEmbeddedWorkerStartData.h" 41 #include "public/web/WebEmbeddedWorkerStartData.h"
42 #include "public/web/WebFrameClient.h" 42 #include "public/web/WebFrameClient.h"
43 43
44 namespace blink { 44 namespace blink {
45 45
46 class ThreadableLoadingContext; 46 class ThreadableLoadingContext;
47 class ServiceWorkerGlobalScopeProxy; 47 class ServiceWorkerGlobalScopeProxy;
48 class WebLocalFrameImpl; 48 class WebLocalFrameBase;
49 class WebView; 49 class WebView;
50 class WorkerInspectorProxy; 50 class WorkerInspectorProxy;
51 class WorkerScriptLoader; 51 class WorkerScriptLoader;
52 class WorkerThread; 52 class WorkerThread;
53 53
54 class WebEmbeddedWorkerImpl final : public WebEmbeddedWorker, 54 class WebEmbeddedWorkerImpl final : public WebEmbeddedWorker,
55 public WebFrameClient, 55 public WebFrameClient,
56 public WebDevToolsAgentClient, 56 public WebDevToolsAgentClient,
57 private WorkerLoaderProxyProvider { 57 private WorkerLoaderProxyProvider {
58 WTF_MAKE_NONCOPYABLE(WebEmbeddedWorkerImpl); 58 WTF_MAKE_NONCOPYABLE(WebEmbeddedWorkerImpl);
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 RefPtr<WorkerLoaderProxy> loader_proxy_; 116 RefPtr<WorkerLoaderProxy> loader_proxy_;
117 Persistent<ServiceWorkerGlobalScopeProxy> worker_global_scope_proxy_; 117 Persistent<ServiceWorkerGlobalScopeProxy> worker_global_scope_proxy_;
118 Persistent<WorkerInspectorProxy> worker_inspector_proxy_; 118 Persistent<WorkerInspectorProxy> worker_inspector_proxy_;
119 119
120 // 'shadow page' - created to proxy loading requests from the worker. 120 // 'shadow page' - created to proxy loading requests from the worker.
121 // Both WebView and WebFrame objects are close()'ed (where they're 121 // Both WebView and WebFrame objects are close()'ed (where they're
122 // deref'ed) when this EmbeddedWorkerImpl is destructed, therefore they 122 // deref'ed) when this EmbeddedWorkerImpl is destructed, therefore they
123 // are guaranteed to exist while this object is around. 123 // are guaranteed to exist while this object is around.
124 WebView* web_view_; 124 WebView* web_view_;
125 125
126 Persistent<WebLocalFrameImpl> main_frame_; 126 Persistent<WebLocalFrameBase> main_frame_;
127 Persistent<ThreadableLoadingContext> loading_context_; 127 Persistent<ThreadableLoadingContext> loading_context_;
128 128
129 bool loading_shadow_page_; 129 bool loading_shadow_page_;
130 bool asked_to_terminate_; 130 bool asked_to_terminate_;
131 131
132 enum WaitingForDebuggerState { kWaitingForDebugger, kNotWaitingForDebugger }; 132 enum WaitingForDebuggerState { kWaitingForDebugger, kNotWaitingForDebugger };
133 133
134 enum { 134 enum {
135 kDontPauseAfterDownload, 135 kDontPauseAfterDownload,
136 kDoPauseAfterDownload, 136 kDoPauseAfterDownload,
137 kIsPausedAfterDownload 137 kIsPausedAfterDownload
138 } pause_after_download_state_; 138 } pause_after_download_state_;
139 139
140 WaitingForDebuggerState waiting_for_debugger_state_; 140 WaitingForDebuggerState waiting_for_debugger_state_;
141 }; 141 };
142 142
143 } // namespace blink 143 } // namespace blink
144 144
145 #endif // WebEmbeddedWorkerImpl_h 145 #endif // WebEmbeddedWorkerImpl_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/TextFinder.cpp ('k') | third_party/WebKit/Source/web/WebEmbeddedWorkerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698