summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions/extension_bindings.h
blob: a4b86cc3da1000fce0f9693537f3d10cb52f0063 (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
// Copyright (c) 2006-2008 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_RENDERER_EXTENSIONS_EXTENSION_BINDINGS_H__
#define CHROME_RENDERER_EXTENSIONS_EXTENSION_BINDINGS_H__

#include "chrome/common/ipc_message.h"
#include "chrome/renderer/dom_ui_bindings.h"

// ExtensionBindings is the class backing the "extension" object
// accessible from JavaScript.
class ExtensionBindings : public DOMBoundBrowserObject {
 public:
  ExtensionBindings();
  virtual ~ExtensionBindings() {}

  // Methods exposed to JavaScript.
  void getTestString(const CppArgumentList& args, CppVariant* result);

 private:
  DISALLOW_COPY_AND_ASSIGN(ExtensionBindings);
};

#endif  // CHROME_RENDERER_EXTENSIONS_EXTENSION_BINDINGS_H__