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

Side by Side Diff: chrome/browser/devtools/devtools_embedder_message_dispatcher.h

Issue 2421913003: DevTools: allow reattaching main target live. (Closed)
Patch Set: link fixed Created 4 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_embedder_message_dispatcher.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ 5 #ifndef CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_
6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ 6 #define CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 virtual void RemovePreference(const std::string& name) = 0; 81 virtual void RemovePreference(const std::string& name) = 0;
82 virtual void ClearPreferences() = 0; 82 virtual void ClearPreferences() = 0;
83 virtual void DispatchProtocolMessageFromDevToolsFrontend( 83 virtual void DispatchProtocolMessageFromDevToolsFrontend(
84 const std::string& message) = 0; 84 const std::string& message) = 0;
85 virtual void RecordEnumeratedHistogram(const std::string& name, 85 virtual void RecordEnumeratedHistogram(const std::string& name,
86 int sample, 86 int sample,
87 int boundary_value) = 0; 87 int boundary_value) = 0;
88 virtual void SendJsonRequest(const DispatchCallback& callback, 88 virtual void SendJsonRequest(const DispatchCallback& callback,
89 const std::string& browser_id, 89 const std::string& browser_id,
90 const std::string& url) = 0; 90 const std::string& url) = 0;
91 virtual void Reattach(const DispatchCallback& callback) = 0;
91 virtual void ReadyForTest() = 0; 92 virtual void ReadyForTest() = 0;
92 }; 93 };
93 94
94 using DispatchCallback = Delegate::DispatchCallback; 95 using DispatchCallback = Delegate::DispatchCallback;
95 96
96 virtual ~DevToolsEmbedderMessageDispatcher() {} 97 virtual ~DevToolsEmbedderMessageDispatcher() {}
97 virtual bool Dispatch(const DispatchCallback& callback, 98 virtual bool Dispatch(const DispatchCallback& callback,
98 const std::string& method, 99 const std::string& method,
99 const base::ListValue* params) = 0; 100 const base::ListValue* params) = 0;
100 101
101 static DevToolsEmbedderMessageDispatcher* CreateForDevToolsFrontend( 102 static DevToolsEmbedderMessageDispatcher* CreateForDevToolsFrontend(
102 Delegate* delegate); 103 Delegate* delegate);
103 }; 104 };
104 105
105 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_ 106 #endif // CHROME_BROWSER_DEVTOOLS_DEVTOOLS_EMBEDDER_MESSAGE_DISPATCHER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/devtools/devtools_embedder_message_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698