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

Side by Side Diff: webkit/glue/webworker_impl.h

Issue 293001: Delete glue/webview{_delegate}.h (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webview_unittest.cc ('k') | webkit/glue/webworker_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WEBKIT_GLUE_WEBWORKER_IMPL_H_ 5 #ifndef WEBKIT_GLUE_WEBWORKER_IMPL_H_
6 #define WEBKIT_GLUE_WEBWORKER_IMPL_H_ 6 #define WEBKIT_GLUE_WEBWORKER_IMPL_H_
7 7
8 #include "webkit/api/public/WebWorker.h" 8 #include "webkit/api/public/WebWorker.h"
9 9
10 #if ENABLE(WORKERS) 10 #if ENABLE(WORKERS)
11 11
12 #include "ScriptExecutionContext.h" 12 #include "ScriptExecutionContext.h"
13 #include "WorkerLoaderProxy.h" 13 #include "WorkerLoaderProxy.h"
14 #include "WorkerObjectProxy.h" 14 #include "WorkerObjectProxy.h"
15 #include <wtf/PassOwnPtr.h> 15 #include <wtf/PassOwnPtr.h>
16 #include <wtf/RefPtr.h> 16 #include <wtf/RefPtr.h>
17 17
18 namespace WebCore { 18 namespace WebCore {
19 class WorkerThread; 19 class WorkerThread;
20 }; 20 }
21 21
22 namespace WebKit {
22 class WebView; 23 class WebView;
24 }
23 25
24 // This class is used by the worker process code to talk to the WebCore::Worker 26 // This class is used by the worker process code to talk to the WebCore::Worker
25 // implementation. It can't use it directly since it uses WebKit types, so this 27 // implementation. It can't use it directly since it uses WebKit types, so this
26 // class converts the data types. When the WebCore::Worker object wants to call 28 // class converts the data types. When the WebCore::Worker object wants to call
27 // WebCore::WorkerObjectProxy, this class will conver to Chrome data types first 29 // WebCore::WorkerObjectProxy, this class will conver to Chrome data types first
28 // and then call the supplied WebWorkerClient. 30 // and then call the supplied WebWorkerClient.
29 class WebWorkerImpl: public WebCore::WorkerObjectProxy, 31 class WebWorkerImpl: public WebCore::WorkerObjectProxy,
30 public WebCore::WorkerLoaderProxy, 32 public WebCore::WorkerLoaderProxy,
31 public WebKit::WebWorker { 33 public WebKit::WebWorker {
32 public: 34 public:
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 WebWorkerImpl* this_ptr, 122 WebWorkerImpl* this_ptr,
121 bool has_pending_activity); 123 bool has_pending_activity);
122 static void WorkerContextDestroyedTask( 124 static void WorkerContextDestroyedTask(
123 WebCore::ScriptExecutionContext* context, 125 WebCore::ScriptExecutionContext* context,
124 WebWorkerImpl* this_ptr); 126 WebWorkerImpl* this_ptr);
125 127
126 WebKit::WebWorkerClient* client_; 128 WebKit::WebWorkerClient* client_;
127 129
128 // 'shadow page' - created to proxy loading requests from the worker. 130 // 'shadow page' - created to proxy loading requests from the worker.
129 WTF::RefPtr<WebCore::ScriptExecutionContext> loading_document_; 131 WTF::RefPtr<WebCore::ScriptExecutionContext> loading_document_;
130 WebView* web_view_; 132 WebKit::WebView* web_view_;
131 bool asked_to_terminate_; 133 bool asked_to_terminate_;
132 134
133 WTF::RefPtr<WebCore::WorkerThread> worker_thread_; 135 WTF::RefPtr<WebCore::WorkerThread> worker_thread_;
134 136
135 DISALLOW_COPY_AND_ASSIGN(WebWorkerImpl); 137 DISALLOW_COPY_AND_ASSIGN(WebWorkerImpl);
136 }; 138 };
137 139
138 #endif 140 #endif
139 141
140 #endif // WEBKIT_GLUE_WEBWORKER_IMPL_H_ 142 #endif // WEBKIT_GLUE_WEBWORKER_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/webview_unittest.cc ('k') | webkit/glue/webworker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698