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

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

Issue 2858043003: [DevTools] Pass session id in detach request (Closed)
Patch Set: test compile Created 3 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
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/macros.h" 10 #include "base/macros.h"
(...skipping 19 matching lines...) Expand all
30 void SendDevToolsMessage(int session_id, 30 void SendDevToolsMessage(int session_id,
31 int call_id, 31 int call_id,
32 const blink::WebString& message, 32 const blink::WebString& message,
33 const blink::WebString& post_state); 33 const blink::WebString& post_state);
34 34
35 private: 35 private:
36 void OnAttach(const std::string& host_id, int session_id); 36 void OnAttach(const std::string& host_id, int session_id);
37 void OnReattach(const std::string& host_id, 37 void OnReattach(const std::string& host_id,
38 int session_id, 38 int session_id,
39 const std::string& state); 39 const std::string& state);
40 void OnDetach(); 40 void OnDetach(int session_id);
41 void OnDispatchOnInspectorBackend( 41 void OnDispatchOnInspectorBackend(
42 int session_id, 42 int session_id,
43 int call_id, 43 int call_id,
44 const std::string& method, 44 const std::string& method,
45 const std::string& message); 45 const std::string& message);
46 46
47 bool Send(IPC::Message* message); 47 bool Send(IPC::Message* message);
48 const int route_id_; 48 const int route_id_;
49 blink::WebSharedWorker* webworker_; 49 blink::WebSharedWorker* webworker_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(SharedWorkerDevToolsAgent); 51 DISALLOW_COPY_AND_ASSIGN(SharedWorkerDevToolsAgent);
52 }; 52 };
53 53
54 } // namespace content 54 } // namespace content
55 55
56 #endif // CONTENT_CHILD_SHARED_WORKER_DEVTOOLS_AGENT_H_ 56 #endif // CONTENT_CHILD_SHARED_WORKER_DEVTOOLS_AGENT_H_
OLDNEW
« no previous file with comments | « content/browser/devtools/worker_devtools_agent_host.cc ('k') | content/child/shared_worker_devtools_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698