OLD | NEW |
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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 #include "content/public/browser/download_item.h" | 49 #include "content/public/browser/download_item.h" |
50 #include "content/public/browser/download_manager.h" | 50 #include "content/public/browser/download_manager.h" |
51 #include "content/public/browser/notification_observer.h" | 51 #include "content/public/browser/notification_observer.h" |
52 #include "content/public/browser/notification_registrar.h" | 52 #include "content/public/browser/notification_registrar.h" |
53 #include "content/public/browser/notification_types.h" | 53 #include "content/public/browser/notification_types.h" |
54 #include "ui/gfx/size.h" | 54 #include "ui/gfx/size.h" |
55 | 55 |
56 class AutomationProvider; | 56 class AutomationProvider; |
57 class BalloonCollection; | 57 class BalloonCollection; |
58 class Browser; | 58 class Browser; |
59 class Extension; | |
60 class ExtensionProcessManager; | 59 class ExtensionProcessManager; |
61 class ExtensionService; | 60 class ExtensionService; |
62 class InfoBarTabHelper; | 61 class InfoBarTabHelper; |
63 class Notification; | 62 class Notification; |
64 class Profile; | 63 class Profile; |
65 class SavePackage; | 64 class SavePackage; |
66 class TranslateInfoBarDelegate; | 65 class TranslateInfoBarDelegate; |
67 | 66 |
68 #if defined(OS_CHROMEOS) | 67 #if defined(OS_CHROMEOS) |
69 namespace chromeos { | 68 namespace chromeos { |
70 class ExistingUserController; | 69 class ExistingUserController; |
71 } | 70 } |
72 #endif // defined(OS_CHROMEOS) | 71 #endif // defined(OS_CHROMEOS) |
73 | 72 |
74 namespace IPC { | 73 namespace IPC { |
75 class Message; | 74 class Message; |
76 } | 75 } |
77 | 76 |
78 namespace content { | 77 namespace content { |
79 class NavigationController; | 78 class NavigationController; |
80 class RenderViewHost; | 79 class RenderViewHost; |
81 class WebContents; | 80 class WebContents; |
82 } | 81 } |
83 | 82 |
| 83 namespace extensions { |
| 84 class Extension; |
| 85 } |
| 86 |
84 namespace history { | 87 namespace history { |
85 class TopSites; | 88 class TopSites; |
86 } | 89 } |
87 | 90 |
88 namespace policy { | 91 namespace policy { |
89 class BrowserPolicyConnector; | 92 class BrowserPolicyConnector; |
90 } | 93 } |
91 | 94 |
92 class InitialLoadObserver : public content::NotificationObserver { | 95 class InitialLoadObserver : public content::NotificationObserver { |
93 public: | 96 public: |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 const content::NotificationDetails& details); | 360 const content::NotificationDetails& details); |
358 | 361 |
359 private: | 362 private: |
360 void Init(); | 363 void Init(); |
361 | 364 |
362 content::NotificationRegistrar registrar_; | 365 content::NotificationRegistrar registrar_; |
363 ExtensionProcessManager* manager_; | 366 ExtensionProcessManager* manager_; |
364 ExtensionService* service_; | 367 ExtensionService* service_; |
365 base::WeakPtr<AutomationProvider> automation_; | 368 base::WeakPtr<AutomationProvider> automation_; |
366 scoped_ptr<IPC::Message> reply_message_; | 369 scoped_ptr<IPC::Message> reply_message_; |
367 const Extension* extension_; | 370 const extensions::Extension* extension_; |
368 | 371 |
369 DISALLOW_COPY_AND_ASSIGN(ExtensionReadyNotificationObserver); | 372 DISALLOW_COPY_AND_ASSIGN(ExtensionReadyNotificationObserver); |
370 }; | 373 }; |
371 | 374 |
372 class ExtensionUnloadNotificationObserver | 375 class ExtensionUnloadNotificationObserver |
373 : public content::NotificationObserver { | 376 : public content::NotificationObserver { |
374 public: | 377 public: |
375 ExtensionUnloadNotificationObserver(); | 378 ExtensionUnloadNotificationObserver(); |
376 virtual ~ExtensionUnloadNotificationObserver(); | 379 virtual ~ExtensionUnloadNotificationObserver(); |
377 | 380 |
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1793 private: | 1796 private: |
1794 base::WeakPtr<AutomationProvider> automation_; | 1797 base::WeakPtr<AutomationProvider> automation_; |
1795 scoped_ptr<IPC::Message> reply_message_; | 1798 scoped_ptr<IPC::Message> reply_message_; |
1796 std::string extension_id_; | 1799 std::string extension_id_; |
1797 content::NotificationRegistrar registrar_; | 1800 content::NotificationRegistrar registrar_; |
1798 | 1801 |
1799 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); | 1802 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); |
1800 }; | 1803 }; |
1801 | 1804 |
1802 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1805 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
OLD | NEW |