summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/extensions/app_bindings.h
diff options
context:
space:
mode:
authorrockot@chromium.org <rockot@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-17 19:17:59 +0000
committerrockot@chromium.org <rockot@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-04-17 19:17:59 +0000
commitbcd9580f779a42ad9079a4d3ced1b080da088837 (patch)
tree093756a9faba74c454b52869ed2c0e0b8f26ac42 /chrome/renderer/extensions/app_bindings.h
parent3cb3ff0a4668800acd64bbf91a237c3344622f0f (diff)
downloadchromium_src-bcd9580f779a42ad9079a4d3ced1b080da088837.zip
chromium_src-bcd9580f779a42ad9079a4d3ced1b080da088837.tar.gz
chromium_src-bcd9580f779a42ad9079a4d3ced1b080da088837.tar.bz2
Remove ChromeV8Extension & most of ChromeV8Context
This replaces all ChromeV8Extension usage with ObjectBackedNativeHandler and in the process changes most ChromeV8Context references into ScriptContext references. Also, since it would be ugly and confusing otherwise, ChromeV8ContextSet is now ScriptContextSet and is moved to //extensions/renderer. BUG=359836 TBR=sky@chromium.org for //c/test and ChromeContentRendererCilent TBR=bbudge@chromium.org for //c/r/pepper Review URL: https://codereview.chromium.org/240603003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@264605 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/extensions/app_bindings.h')
-rw-r--r--chrome/renderer/extensions/app_bindings.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome/renderer/extensions/app_bindings.h b/chrome/renderer/extensions/app_bindings.h
index 76e3c4f..4634dfb 100644
--- a/chrome/renderer/extensions/app_bindings.h
+++ b/chrome/renderer/extensions/app_bindings.h
@@ -12,19 +12,20 @@
#define CHROME_RENDERER_EXTENSIONS_APP_BINDINGS_H_
#include "base/compiler_specific.h"
-#include "chrome/renderer/extensions/chrome_v8_extension.h"
+#include "chrome/renderer/extensions/chrome_v8_extension_handler.h"
+#include "extensions/renderer/object_backed_native_handler.h"
#include "third_party/WebKit/public/web/WebFrame.h"
namespace extensions {
-class ChromeV8Context;
+class Dispatcher;
// Implements the chrome.app JavaScript object.
//
// TODO(aa): Add unit testing for this class.
-class AppBindings : public ChromeV8Extension,
+class AppBindings : public ObjectBackedNativeHandler,
public ChromeV8ExtensionHandler {
public:
- AppBindings(Dispatcher* dispatcher, ChromeV8Context* context);
+ AppBindings(Dispatcher* dispatcher, ScriptContext* context);
private:
// IPC::Listener
@@ -40,6 +41,9 @@ class AppBindings : public ChromeV8Extension,
void OnAppInstallStateResponse(const std::string& state, int callback_id);
+ // Dispatcher handle. Not owned.
+ Dispatcher* dispatcher_;
+
DISALLOW_COPY_AND_ASSIGN(AppBindings);
};