Aajwong@chromium.orgRemove #pragma once from sync
7751eaed创建于 2012年7月11日历史提交
// Copyright (c) 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>

namespace syncer {

class JsEventDetails;

// An interface for objects that handle Javascript events (e.g.,
// WebUIs).
class 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_