summaryrefslogtreecommitdiffstats
path: root/sync/js/js_event_handler.h
blob: 2e2213efefbbbb30932a81c28e16a20ccbfcc5f7 (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
31
// Copyright 2012 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 SYNC_JS_JS_EVENT_HANDLER_H_
#define SYNC_JS_JS_EVENT_HANDLER_H_

// See README.js for design comments.

#include <string>

#include "sync/base/sync_export.h"

namespace syncer {

class JsEventDetails;

// An interface for objects that handle Javascript events (e.g.,
// WebUIs).
class SYNC_EXPORT JsEventHandler {
 public:
  virtual void HandleJsEvent(
      const std::string& name, const JsEventDetails& details) = 0;

 protected:
  virtual ~JsEventHandler() {}
};

}  // namespace syncer

#endif  // SYNC_JS_JS_EVENT_HANDLER_H_