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

Side by Side Diff: content/browser/devtools/devtools_protocol.h

Issue 290873002: DevTools: allow embedder handling remote debugger commands. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_
6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 private: 151 private:
152 typedef std::map<std::string, CommandHandler> CommandHandlers; 152 typedef std::map<std::string, CommandHandler> CommandHandlers;
153 153
154 Notifier notifier_; 154 Notifier notifier_;
155 CommandHandlers command_handlers_; 155 CommandHandlers command_handlers_;
156 156
157 DISALLOW_COPY_AND_ASSIGN(Handler); 157 DISALLOW_COPY_AND_ASSIGN(Handler);
158 }; 158 };
159 159
160 CONTENT_EXPORT static base::DictionaryValue* ParseMessage(
161 const std::string& json,
162 std::string* error_response);
163
160 CONTENT_EXPORT static scoped_refptr<Command> ParseCommand( 164 CONTENT_EXPORT static scoped_refptr<Command> ParseCommand(
161 const std::string& json, 165 const std::string& json,
162 std::string* error_response); 166 std::string* error_response);
163 167
168 CONTENT_EXPORT static scoped_refptr<Command> ParseCommand(
169 base::DictionaryValue* command_dict,
170 std::string* error_response);
171
164 CONTENT_EXPORT static scoped_refptr<Command> CreateCommand( 172 CONTENT_EXPORT static scoped_refptr<Command> CreateCommand(
165 int id, 173 int id,
166 const std::string& method, 174 const std::string& method,
167 base::DictionaryValue* params); 175 base::DictionaryValue* params);
168 176
177 CONTENT_EXPORT static scoped_refptr<Response> ParseResponse(
178 base::DictionaryValue* response_dict);
179
169 static scoped_refptr<Notification> ParseNotification( 180 static scoped_refptr<Notification> ParseNotification(
170 const std::string& json); 181 const std::string& json);
171 182
172 static scoped_refptr<Notification> CreateNotification( 183 static scoped_refptr<Notification> CreateNotification(
173 const std::string& method, base::DictionaryValue* params); 184 const std::string& method, base::DictionaryValue* params);
174 185
175 private:
176 static base::DictionaryValue* ParseMessage(const std::string& json,
177 std::string* error_response);
178
179 DevToolsProtocol() {} 186 DevToolsProtocol() {}
180 ~DevToolsProtocol() {} 187 ~DevToolsProtocol() {}
181 }; 188 };
182 189
183 } // namespace content 190 } // namespace content
184 191
185 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_ 192 #endif // CONTENT_BROWSER_DEVTOOLS_DEVTOOLS_PROTOCOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698