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

Side by Side Diff: content/browser/devtools/devtools_protocol_frontend.cc

Issue 508973003: DevTools: Protocol handler generator for content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "content/browser/devtools/devtools_protocol_frontend.h"
6
7 namespace content {
8
9 DevToolsProtocolFrontend::DevToolsProtocolFrontend(
10 const EventCallback& event_callback)
11 : event_callback_(event_callback) {
12 }
13
14 DevToolsProtocolFrontend::~DevToolsProtocolFrontend() {
15 }
16
17 void DevToolsProtocolFrontend::SendNotification(const std::string& method,
18 base::DictionaryValue* params) {
19 event_callback_.Run(method, params);
20 }
21
22 DevToolsProtocolFrontend::Response::Response(ResponseStatus status,
23 const std::string& message)
24 : status_(status),
25 message_(message) {
26 }
27
28 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698