Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5633)

Unified Diff: chrome/renderer/extensions/app_bindings.h

Issue 240603003: Remove ChromeV8Extension & most of ChromeV8Context (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/extensions/app_bindings.h
diff --git a/chrome/renderer/extensions/app_bindings.h b/chrome/renderer/extensions/app_bindings.h
index 76e3c4fc98aa89bb996f1ab4ead77bebfae290dc..4634dfb77e8b2e80395e5d0ac98f906648e74c39 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);
};

Powered by Google App Engine
This is Rietveld 408576698