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

Side by Side Diff: content/browser/devtools/protocol/devtools_protocol_client.h

Issue 642263004: [DevTools] Make generated protocol structs wrappers around DictionaryValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix that will be needed for browser protocol Created 6 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
« no previous file with comments | « no previous file | content/browser/devtools/protocol/devtools_protocol_client.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 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_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_PROTOCOL_CLIENT_H_ 5 #ifndef CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_PROTOCOL_CLIENT_H_
6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_PROTOCOL_CLIENT_H_ 6 #define CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_PROTOCOL_CLIENT_H_
7 7
8 #include "content/browser/devtools/devtools_protocol.h" 8 #include "content/browser/devtools/devtools_protocol.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // Sends message to client, the caller is presumed to properly 53 // Sends message to client, the caller is presumed to properly
54 // format the message. Do not use unless you must. 54 // format the message. Do not use unless you must.
55 void SendRawMessage(const std::string& message); 55 void SendRawMessage(const std::string& message);
56 56
57 protected: 57 protected:
58 DevToolsProtocolClient(const RawMessageCallback& raw_message_callback); 58 DevToolsProtocolClient(const RawMessageCallback& raw_message_callback);
59 59
60 virtual ~DevToolsProtocolClient(); 60 virtual ~DevToolsProtocolClient();
61 61
62 void SendNotification(const std::string& method, 62 void SendNotification(const std::string& method,
63 base::DictionaryValue* params); 63 scoped_ptr<base::DictionaryValue> params);
64 64
65 void SendAsyncResponse(scoped_refptr<DevToolsProtocol::Response> response); 65 void SendAsyncResponse(scoped_refptr<DevToolsProtocol::Response> response);
66 66
67 private: 67 private:
68 RawMessageCallback raw_message_callback_; 68 RawMessageCallback raw_message_callback_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(DevToolsProtocolClient); 70 DISALLOW_COPY_AND_ASSIGN(DevToolsProtocolClient);
71 }; 71 };
72 72
73 } // namespace content 73 } // namespace content
74 74
75 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_PROTOCOL_CLIENT_H_ 75 #endif // CONTENT_BROWSER_DEVTOOLS_PROTOCOL_DEVTOOLS_PROTOCOL_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/devtools/protocol/devtools_protocol_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698