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

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

Issue 149575: Roll WebKit DEPS from 45738 to 45840. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/webworker_impl.cc ('k') | webkit/glue/webworkerclient_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_WEBWORKERCLIENT_IMPL_H_ 5 #ifndef WEBKIT_GLUE_WEBWORKERCLIENT_IMPL_H_
6 #define WEBKIT_GLUE_WEBWORKERCLIENT_IMPL_H_ 6 #define WEBKIT_GLUE_WEBWORKERCLIENT_IMPL_H_
7 7
8 #if ENABLE(WORKERS) 8 #if ENABLE(WORKERS)
9 9
10 #include "webkit/api/public/WebWorkerClient.h" 10 #include "webkit/api/public/WebWorkerClient.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // WebWorkerClient methods: 49 // WebWorkerClient methods:
50 // These are called on the main WebKit thread. 50 // These are called on the main WebKit thread.
51 virtual void postMessageToWorkerObject(const WebKit::WebString& message); 51 virtual void postMessageToWorkerObject(const WebKit::WebString& message);
52 virtual void postExceptionToWorkerObject( 52 virtual void postExceptionToWorkerObject(
53 const WebKit::WebString& error_message, 53 const WebKit::WebString& error_message,
54 int line_number, 54 int line_number,
55 const WebKit::WebString& source_url); 55 const WebKit::WebString& source_url);
56 virtual void postConsoleMessageToWorkerObject( 56 virtual void postConsoleMessageToWorkerObject(
57 int destination_id, 57 int destination_id,
58 int source_id, 58 int source_id,
59 int message_type,
59 int message_level, 60 int message_level,
60 const WebKit::WebString& message, 61 const WebKit::WebString& message,
61 int line_number, 62 int line_number,
62 const WebKit::WebString& source_url); 63 const WebKit::WebString& source_url);
63 virtual void confirmMessageFromWorkerObject(bool has_pending_activity); 64 virtual void confirmMessageFromWorkerObject(bool has_pending_activity);
64 virtual void reportPendingActivity(bool has_pending_activity); 65 virtual void reportPendingActivity(bool has_pending_activity);
65 virtual void workerContextDestroyed(); 66 virtual void workerContextDestroyed();
66 virtual WebKit::WebWorker* createWorker(WebKit::WebWorkerClient* client) { 67 virtual WebKit::WebWorker* createWorker(WebKit::WebWorkerClient* client) {
67 return NULL; 68 return NULL;
68 } 69 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 WebCore::ScriptExecutionContext* context, 104 WebCore::ScriptExecutionContext* context,
104 WebWorkerClientImpl* this_ptr, 105 WebWorkerClientImpl* this_ptr,
105 const WebCore::String& error_message, 106 const WebCore::String& error_message,
106 int line_number, 107 int line_number,
107 const WebCore::String& source_url); 108 const WebCore::String& source_url);
108 static void PostConsoleMessageToWorkerObjectTask( 109 static void PostConsoleMessageToWorkerObjectTask(
109 WebCore::ScriptExecutionContext* context, 110 WebCore::ScriptExecutionContext* context,
110 WebWorkerClientImpl* this_ptr, 111 WebWorkerClientImpl* this_ptr,
111 int destination_id, 112 int destination_id,
112 int source_id, 113 int source_id,
114 int message_type,
113 int message_level, 115 int message_level,
114 const WebCore::String& message, 116 const WebCore::String& message,
115 int line_number, 117 int line_number,
116 const WebCore::String& source_url); 118 const WebCore::String& source_url);
117 static void ConfirmMessageFromWorkerObjectTask( 119 static void ConfirmMessageFromWorkerObjectTask(
118 WebCore::ScriptExecutionContext* context, 120 WebCore::ScriptExecutionContext* context,
119 WebWorkerClientImpl* this_ptr); 121 WebWorkerClientImpl* this_ptr);
120 static void ReportPendingActivityTask( 122 static void ReportPendingActivityTask(
121 WebCore::ScriptExecutionContext* context, 123 WebCore::ScriptExecutionContext* context,
122 WebWorkerClientImpl* this_ptr, 124 WebWorkerClientImpl* this_ptr,
123 bool has_pending_activity); 125 bool has_pending_activity);
124 126
125 // Guard against context from being destroyed before a worker exits. 127 // Guard against context from being destroyed before a worker exits.
126 WTF::RefPtr<WebCore::ScriptExecutionContext> script_execution_context_; 128 WTF::RefPtr<WebCore::ScriptExecutionContext> script_execution_context_;
127 129
128 WebCore::Worker* worker_; 130 WebCore::Worker* worker_;
129 WebKit::WebWorker* webworker_; 131 WebKit::WebWorker* webworker_;
130 bool asked_to_terminate_; 132 bool asked_to_terminate_;
131 uint32 unconfirmed_message_count_; 133 uint32 unconfirmed_message_count_;
132 bool worker_context_had_pending_activity_; 134 bool worker_context_had_pending_activity_;
133 WTF::ThreadIdentifier worker_thread_id_; 135 WTF::ThreadIdentifier worker_thread_id_;
134 }; 136 };
135 137
136 #endif 138 #endif
137 139
138 #endif // WEBKIT_GLUE_WEBWORKERCLIENT_IMPL_H_ 140 #endif // WEBKIT_GLUE_WEBWORKERCLIENT_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/glue/webworker_impl.cc ('k') | webkit/glue/webworkerclient_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698