summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions/js_only_v8_extensions.h
blob: a9d46fa7966bb4733bc13683ae783698f07eba63 (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
32
// Copyright (c) 2009 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_JS_ONLY_V8_EXTENSIONS_H_
#define CHROME_RENDERER_EXTENSIONS_JS_ONLY_V8_EXTENSIONS_H_
#pragma once

#include "v8/include/v8.h"

// This file contains various V8 Extensions that are JavaScript only, and
// don't have any C++ native functions.

class BaseJsV8Extension {
 public:
  static const char* kName;
  static v8::Extension* Get();
};

class JsonSchemaJsV8Extension {
 public:
  static const char* kName;
  static v8::Extension* Get();
};

class ExtensionApiTestV8Extension {
 public:
  static const char* kName;
  static v8::Extension* Get();
};

#endif  // CHROME_RENDERER_EXTENSIONS_JS_ONLY_V8_EXTENSIONS_H_