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

Unified Diff: chrome/browser/automation/automation_provider_observers.h

Issue 8649004: Allow chromedriver to install an extension and get all installed extension IDs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 9 years, 1 month 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/browser/automation/automation_provider_observers.h
diff --git a/chrome/browser/automation/automation_provider_observers.h b/chrome/browser/automation/automation_provider_observers.h
index 48b2cc41adf4d93188344363eccd0ce38a40188c..0fb745be1e25d0eb587e6274dd58b944536e5969 100644
--- a/chrome/browser/automation/automation_provider_observers.h
+++ b/chrome/browser/automation/automation_provider_observers.h
@@ -336,11 +336,17 @@ class ExtensionUninstallObserver : public content::NotificationObserver {
class ExtensionReadyNotificationObserver
: public content::NotificationObserver {
public:
+ // Creates an observer that replies using the old IPC automation method.
ExtensionReadyNotificationObserver(ExtensionProcessManager* manager,
dennis_jeffrey 2011/11/22 23:32:16 Do we still need this old version of the function?
kkania 2011/11/23 17:31:23 Yes, there is an install extension func in automat
ExtensionService* service,
AutomationProvider* automation,
int id,
IPC::Message* reply_message);
+ // Creates an observer that replies using the JSON automation interface.
+ ExtensionReadyNotificationObserver(ExtensionProcessManager* manager,
+ ExtensionService* service,
+ AutomationProvider* automation,
+ IPC::Message* reply_message);
virtual ~ExtensionReadyNotificationObserver();
// Implementation of NotificationObserver.
@@ -349,11 +355,14 @@ class ExtensionReadyNotificationObserver
const content::NotificationDetails& details);
private:
+ void Init();
+
content::NotificationRegistrar registrar_;
ExtensionProcessManager* manager_;
ExtensionService* service_;
base::WeakPtr<AutomationProvider> automation_;
int id_;
+ bool use_json_;
dennis_jeffrey 2011/11/22 23:32:16 nit: Should we move this down below the definition
kkania 2011/11/23 17:31:23 Done.
scoped_ptr<IPC::Message> reply_message_;
const Extension* extension_;

Powered by Google App Engine
This is Rietveld 408576698