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

Side by Side Diff: headless/public/internal/message_dispatcher.h

Issue 1805983002: headless: Implement client API generation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make PendingMessage moveable Created 4 years, 8 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 2016 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 #ifndef HEADLESS_PUBLIC_INTERNAL_MESSAGE_DISPATCHER_H_
6 #define HEADLESS_PUBLIC_INTERNAL_MESSAGE_DISPATCHER_H_
7
8 namespace headless {
9 namespace internal {
10
11 // An internal interface for sending DevTools messages from the domain agents.
12 class MessageDispatcher {
13 public:
14 virtual void SendMessage(
15 const char* method,
16 std::unique_ptr<base::Value> params,
17 base::Callback<void(const base::Value&)> callback) = 0;
18 virtual void SendMessage(const char* method,
19 std::unique_ptr<base::Value> params,
20 base::Callback<void()> callback) = 0;
21 virtual void SendMessage(
22 const char* method,
23 base::Callback<void(const base::Value&)> callback) = 0;
24 virtual void SendMessage(const char* method,
25 base::Callback<void()> callback) = 0;
26 };
27
28 } // namespace internal
29 } // namespace headless
30
31 #endif // HEADLESS_PUBLIC_INTERNAL_MESSAGE_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698