| Index: chrome/renderer/extensions/render_view_observer_natives.h
|
| diff --git a/chrome/renderer/extensions/render_view_observer_natives.h b/chrome/renderer/extensions/render_view_observer_natives.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e411d26a6379fd74b58ac5ead7a99406d9a3b35d
|
| --- /dev/null
|
| +++ b/chrome/renderer/extensions/render_view_observer_natives.h
|
| @@ -0,0 +1,36 @@
|
| +// Copyright 2013 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_RENDER_VIEW_OBSERVER_NATIVES_H_
|
| +#define CHROME_RENDERER_EXTENSIONS_RENDER_VIEW_OBSERVER_NATIVES_H_
|
| +
|
| +#include "chrome/renderer/extensions/chrome_v8_extension.h"
|
| +#include "v8/include/v8.h"
|
| +
|
| +class ChromeV8Context;
|
| +
|
| +namespace extensions {
|
| +
|
| +class Dispatcher;
|
| +
|
| +// Native functions for JS to get access to the schemas for extension APIs.
|
| +class RenderViewObserverNatives : public ChromeV8Extension {
|
| + public:
|
| + RenderViewObserverNatives(Dispatcher* dispatcher, ChromeV8Context* context);
|
| +
|
| + private:
|
| + // Runs a callback upon creation of new document element inside a render view.
|
| + // Deletes itself when done.
|
| + v8::Handle<v8::Value> OnDocumentCreated(const v8::Arguments& args);
|
| + // Runs a callback upon creation of new document element inside current render
|
| + // view.
|
| + // Deletes itself when done.
|
| + v8::Handle<v8::Value> OnDocumentCreatedForCurrentContext(
|
| + const v8::Arguments& args);
|
| + DISALLOW_COPY_AND_ASSIGN(RenderViewObserverNatives);
|
| +};
|
| +
|
| +} // namespace extensions
|
| +
|
| +#endif // CHROME_RENDERER_EXTENSIONS_RENDER_VIEW_OBSERVER_NATIVES_H_
|
|
|