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

Side by Side Diff: content/child/shared_worker_devtools_agent.h

Issue 1408363004: [DevTools] Filter any messages from previous sessions in DevToolsAgentHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_CHILD_SHARED_WORKER_DEVTOOLS_AGENT_H_ 5 #ifndef CONTENT_CHILD_SHARED_WORKER_DEVTOOLS_AGENT_H_
6 #define CONTENT_CHILD_SHARED_WORKER_DEVTOOLS_AGENT_H_ 6 #define CONTENT_CHILD_SHARED_WORKER_DEVTOOLS_AGENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 14 matching lines...) Expand all
25 SharedWorkerDevToolsAgent(int route_id, blink::WebSharedWorker*); 25 SharedWorkerDevToolsAgent(int route_id, blink::WebSharedWorker*);
26 ~SharedWorkerDevToolsAgent(); 26 ~SharedWorkerDevToolsAgent();
27 27
28 // Called on the Worker thread. 28 // Called on the Worker thread.
29 bool OnMessageReceived(const IPC::Message& message); 29 bool OnMessageReceived(const IPC::Message& message);
30 void SendDevToolsMessage(int call_id, 30 void SendDevToolsMessage(int call_id,
31 const blink::WebString& message, 31 const blink::WebString& message,
32 const blink::WebString& post_state); 32 const blink::WebString& post_state);
33 33
34 private: 34 private:
35 void OnAttach(const std::string& host_id); 35 void OnAttach(const std::string& host_id, int session_id);
36 void OnReattach(const std::string& host_id, const std::string& state); 36 void OnReattach(const std::string& host_id,
37 int session_id,
38 const std::string& state);
37 void OnDetach(); 39 void OnDetach();
38 void OnDispatchOnInspectorBackend(const std::string& message); 40 void OnDispatchOnInspectorBackend(int session_id, const std::string& message);
39 41
40 bool Send(IPC::Message* message); 42 bool Send(IPC::Message* message);
41 const int route_id_; 43 const int route_id_;
42 blink::WebSharedWorker* webworker_; 44 blink::WebSharedWorker* webworker_;
43 45
44 DISALLOW_COPY_AND_ASSIGN(SharedWorkerDevToolsAgent); 46 DISALLOW_COPY_AND_ASSIGN(SharedWorkerDevToolsAgent);
45 }; 47 };
46 48
47 } // namespace content 49 } // namespace content
48 50
49 #endif // CONTENT_CHILD_SHARED_WORKER_DEVTOOLS_AGENT_H_ 51 #endif // CONTENT_CHILD_SHARED_WORKER_DEVTOOLS_AGENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698