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

Side by Side Diff: webkit/tools/test_shell/test_worker/test_webworker.h

Issue 173193: Updating Worker.postMessage(), DOMWindow.postMessage(), and... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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 | Annotate | Revision Log
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 CHROME_TEST_WORKER_TEST_WEBWORKER_H_ 5 #ifndef CHROME_TEST_WORKER_TEST_WEBWORKER_H_
6 #define CHROME_TEST_WORKER_TEST_WEBWORKER_H_ 6 #define CHROME_TEST_WORKER_TEST_WEBWORKER_H_
7 7
8 #if ENABLE(WORKERS) 8 #if ENABLE(WORKERS)
9 9
10 #include <vector> 10 #include <vector>
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 TestWebWorker(WebWorkerClient* client, TestWebWorkerHelper* webworker_helper); 25 TestWebWorker(WebWorkerClient* client, TestWebWorkerHelper* webworker_helper);
26 26
27 // WebWorker methods: 27 // WebWorker methods:
28 virtual void startWorkerContext(const WebKit::WebURL& script_url, 28 virtual void startWorkerContext(const WebKit::WebURL& script_url,
29 const WebKit::WebString& user_agent, 29 const WebKit::WebString& user_agent,
30 const WebKit::WebString& source_code); 30 const WebKit::WebString& source_code);
31 virtual void terminateWorkerContext(); 31 virtual void terminateWorkerContext();
32 virtual void postMessageToWorkerContext( 32 virtual void postMessageToWorkerContext(
33 const WebKit::WebString& message, 33 const WebKit::WebString& message,
34 WebKit::WebMessagePortChannel* channel); 34 const WebKit::WebMessagePortChannelArray& channel);
35 virtual void workerObjectDestroyed(); 35 virtual void workerObjectDestroyed();
36 36
37 // WebWorkerClient methods: 37 // WebWorkerClient methods:
38 virtual void postMessageToWorkerObject( 38 virtual void postMessageToWorkerObject(
39 const WebKit::WebString& message, 39 const WebKit::WebString& message,
40 WebKit::WebMessagePortChannel* channel); 40 const WebKit::WebMessagePortChannelArray& channel);
41 virtual void postExceptionToWorkerObject( 41 virtual void postExceptionToWorkerObject(
42 const WebKit::WebString& error_message, 42 const WebKit::WebString& error_message,
43 int line_number, 43 int line_number,
44 const WebKit::WebString& source_url); 44 const WebKit::WebString& source_url);
45 virtual void postConsoleMessageToWorkerObject( 45 virtual void postConsoleMessageToWorkerObject(
46 int destination_id, 46 int destination_id,
47 int source_id, 47 int source_id,
48 int message_type, 48 int message_type,
49 int message_level, 49 int message_level,
50 const WebKit::WebString& message, 50 const WebKit::WebString& message,
(...skipping 16 matching lines...) Expand all
67 WebKit::WebWorker* webworker_impl_; 67 WebKit::WebWorker* webworker_impl_;
68 TestWebWorkerHelper* webworker_helper_; 68 TestWebWorkerHelper* webworker_helper_;
69 std::vector<string16> queued_messages_; 69 std::vector<string16> queued_messages_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(TestWebWorker); 71 DISALLOW_COPY_AND_ASSIGN(TestWebWorker);
72 }; 72 };
73 73
74 #endif 74 #endif
75 75
76 #endif // CHROME_TEST_WORKER_TEST_WEBWORKER_H_ 76 #endif // CHROME_TEST_WORKER_TEST_WEBWORKER_H_
OLDNEW
« no previous file with comments | « webkit/glue/webworkerclient_impl.cc ('k') | webkit/tools/test_shell/test_worker/test_webworker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698