summaryrefslogtreecommitdiffstats
path: root/chrome/browser/sync/js/js_reply_handler.h
blob: 4118cd9d4addf34a3bc49ca74318dbddf927eaf5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_SYNC_JS_JS_REPLY_HANDLER_H_
#define CHROME_BROWSER_SYNC_JS_JS_REPLY_HANDLER_H_
#pragma once

// See README.js for design comments.

#include <string>

namespace browser_sync {

class JsArgList;

// An interface for objects that handle Javascript message replies
// (e.g., WebUIs).
class JsReplyHandler {
 public:
  virtual void HandleJsReply(
      const std::string& name, const JsArgList& args) = 0;

 protected:
  virtual ~JsReplyHandler() {}
};

}  // namespace browser_sync

#endif  // CHROME_BROWSER_SYNC_JS_JS_REPLY_HANDLER_H_