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

Side by Side Diff: content/renderer/webworker_proxy.h

Issue 6990059: DevTools: devtools message plumbing between worker and page processes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Moved worker devtools login under content/ Created 9 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 | 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 CONTENT_RENDERER_WEBWORKER_PROXY_H_ 5 #ifndef CONTENT_RENDERER_WEBWORKER_PROXY_H_
6 #define CONTENT_RENDERER_WEBWORKER_PROXY_H_ 6 #define CONTENT_RENDERER_WEBWORKER_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 24 matching lines...) Expand all
35 virtual void startWorkerContext(const WebKit::WebURL& script_url, 35 virtual void startWorkerContext(const WebKit::WebURL& script_url,
36 const WebKit::WebString& user_agent, 36 const WebKit::WebString& user_agent,
37 const WebKit::WebString& source_code); 37 const WebKit::WebString& source_code);
38 virtual void terminateWorkerContext(); 38 virtual void terminateWorkerContext();
39 virtual void postMessageToWorkerContext( 39 virtual void postMessageToWorkerContext(
40 const WebKit::WebString& message, 40 const WebKit::WebString& message,
41 const WebKit::WebMessagePortChannelArray& channel_array); 41 const WebKit::WebMessagePortChannelArray& channel_array);
42 virtual void workerObjectDestroyed(); 42 virtual void workerObjectDestroyed();
43 virtual void clientDestroyed(); 43 virtual void clientDestroyed();
44 44
45 virtual void attachDevTools();
46 virtual void detachDevTools();
47 virtual void dispatchDevToolsMessage(const WebKit::WebString&);
48
45 // IPC::Channel::Listener implementation. 49 // IPC::Channel::Listener implementation.
46 virtual bool OnMessageReceived(const IPC::Message& message); 50 virtual bool OnMessageReceived(const IPC::Message& message);
47 51
48 private: 52 private:
49 void CancelCreation(); 53 void CancelCreation();
50 void OnWorkerCreated(); 54 void OnWorkerCreated();
51 void OnWorkerContextDestroyed(); 55 void OnWorkerContextDestroyed();
52 void OnPostMessage(const string16& message, 56 void OnPostMessage(const string16& message,
53 const std::vector<int>& sent_message_port_ids, 57 const std::vector<int>& sent_message_port_ids,
54 const std::vector<int>& new_routing_ids); 58 const std::vector<int>& new_routing_ids);
55 void OnPostConsoleMessageToWorkerObject( 59 void OnPostConsoleMessageToWorkerObject(
56 const WorkerHostMsg_PostConsoleMessageToWorkerObject_Params& params); 60 const WorkerHostMsg_PostConsoleMessageToWorkerObject_Params& params);
57 61
58 62
59 // Used to communicate to the WebCore::Worker object in response to IPC 63 // Used to communicate to the WebCore::Worker object in response to IPC
60 // messages. 64 // messages.
61 WebKit::WebWorkerClient* client_; 65 WebKit::WebWorkerClient* client_;
62 66
63 DISALLOW_COPY_AND_ASSIGN(WebWorkerProxy); 67 DISALLOW_COPY_AND_ASSIGN(WebWorkerProxy);
64 }; 68 };
65 69
66 #endif // CONTENT_RENDERER_WEBWORKER_PROXY_H_ 70 #endif // CONTENT_RENDERER_WEBWORKER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698