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

Side by Side Diff: chrome/browser/automation/automation_provider_observers.h

Issue 131743021: app_shell: Extract extension runtime data from ExtensionService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, RuntimeDataTest tweak, win warning Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 #include "content/public/browser/download_item.h" 45 #include "content/public/browser/download_item.h"
46 #include "content/public/browser/download_manager.h" 46 #include "content/public/browser/download_manager.h"
47 #include "content/public/browser/notification_observer.h" 47 #include "content/public/browser/notification_observer.h"
48 #include "content/public/browser/notification_registrar.h" 48 #include "content/public/browser/notification_registrar.h"
49 #include "content/public/browser/notification_types.h" 49 #include "content/public/browser/notification_types.h"
50 #include "ui/gfx/point.h" 50 #include "ui/gfx/point.h"
51 #include "ui/gfx/size.h" 51 #include "ui/gfx/size.h"
52 52
53 class AutomationProvider; 53 class AutomationProvider;
54 class Browser; 54 class Browser;
55 class ExtensionService;
56 class Notification; 55 class Notification;
57 class Profile; 56 class Profile;
58 class SavePackage; 57 class SavePackage;
59 58
60 namespace automation { 59 namespace automation {
61 class Error; 60 class Error;
62 } 61 }
63 62
64 #if defined(OS_CHROMEOS) 63 #if defined(OS_CHROMEOS)
65 namespace chromeos { 64 namespace chromeos {
66 class ExistingUserController; 65 class ExistingUserController;
67 class WizardScreen; 66 class WizardScreen;
68 } 67 }
69 #endif // defined(OS_CHROMEOS) 68 #endif // defined(OS_CHROMEOS)
70 69
71 namespace content { 70 namespace content {
72 class NavigationController; 71 class NavigationController;
73 class RenderViewHost; 72 class RenderViewHost;
74 class WebContents; 73 class WebContents;
75 } 74 }
76 75
77 namespace extensions { 76 namespace extensions {
78 class Extension; 77 class Extension;
78 class ExtensionSystem;
79 class ProcessManager; 79 class ProcessManager;
80 } 80 }
81 81
82 namespace history { 82 namespace history {
83 class TopSites; 83 class TopSites;
84 } 84 }
85 85
86 namespace IPC { 86 namespace IPC {
87 class Message; 87 class Message;
88 } 88 }
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 320
321 DISALLOW_COPY_AND_ASSIGN(ExtensionUninstallObserver); 321 DISALLOW_COPY_AND_ASSIGN(ExtensionUninstallObserver);
322 }; 322 };
323 323
324 // Observes when an extension has finished loading and is ready for use. Also 324 // Observes when an extension has finished loading and is ready for use. Also
325 // checks for possible install errors. 325 // checks for possible install errors.
326 class ExtensionReadyNotificationObserver 326 class ExtensionReadyNotificationObserver
327 : public content::NotificationObserver { 327 : public content::NotificationObserver {
328 public: 328 public:
329 // Creates an observer that replies using the JSON automation interface. 329 // Creates an observer that replies using the JSON automation interface.
330 ExtensionReadyNotificationObserver(extensions::ProcessManager* manager, 330 ExtensionReadyNotificationObserver(
331 ExtensionService* service, 331 extensions::ExtensionSystem* extension_system,
332 AutomationProvider* automation, 332 AutomationProvider* automation,
333 IPC::Message* reply_message); 333 IPC::Message* reply_message);
334 virtual ~ExtensionReadyNotificationObserver(); 334 virtual ~ExtensionReadyNotificationObserver();
335 335
336 // Overridden from content::NotificationObserver: 336 // Overridden from content::NotificationObserver:
337 virtual void Observe(int type, 337 virtual void Observe(int type,
338 const content::NotificationSource& source, 338 const content::NotificationSource& source,
339 const content::NotificationDetails& details) OVERRIDE; 339 const content::NotificationDetails& details) OVERRIDE;
340 340
341 private: 341 private:
342 void Init(); 342 void Init();
343 343
344 content::NotificationRegistrar registrar_; 344 content::NotificationRegistrar registrar_;
345 extensions::ProcessManager* manager_; 345 extensions::ExtensionSystem* extension_system_;
346 ExtensionService* service_;
347 base::WeakPtr<AutomationProvider> automation_; 346 base::WeakPtr<AutomationProvider> automation_;
348 scoped_ptr<IPC::Message> reply_message_; 347 scoped_ptr<IPC::Message> reply_message_;
349 const extensions::Extension* extension_; 348 const extensions::Extension* extension_;
350 349
351 DISALLOW_COPY_AND_ASSIGN(ExtensionReadyNotificationObserver); 350 DISALLOW_COPY_AND_ASSIGN(ExtensionReadyNotificationObserver);
352 }; 351 };
353 352
354 class ExtensionUnloadNotificationObserver 353 class ExtensionUnloadNotificationObserver
355 : public content::NotificationObserver { 354 : public content::NotificationObserver {
356 public: 355 public:
(...skipping 1024 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 base::WeakPtr<AutomationProvider> automation_; 1380 base::WeakPtr<AutomationProvider> automation_;
1382 scoped_ptr<IPC::Message> reply_message_; 1381 scoped_ptr<IPC::Message> reply_message_;
1383 int new_window_id_; 1382 int new_window_id_;
1384 int num_loads_; 1383 int num_loads_;
1385 1384
1386 DISALLOW_COPY_AND_ASSIGN( 1385 DISALLOW_COPY_AND_ASSIGN(
1387 BrowserOpenedWithExistingProfileNotificationObserver); 1386 BrowserOpenedWithExistingProfileNotificationObserver);
1388 }; 1387 };
1389 1388
1390 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 1389 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
OLDNEW
« no previous file with comments | « apps/shell/shell_extensions_browser_client.cc ('k') | chrome/browser/automation/automation_provider_observers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698