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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
356 const content::NotificationDetails& details); | 359 const content::NotificationDetails& details); |
357 | 360 |
358 private: | 361 private: |
359 void Init(); | 362 void Init(); |
360 | 363 |
361 content::NotificationRegistrar registrar_; | 364 content::NotificationRegistrar registrar_; |
362 ExtensionProcessManager* manager_; | 365 ExtensionProcessManager* manager_; |
363 ExtensionService* service_; | 366 ExtensionService* service_; |
364 base::WeakPtr<AutomationProvider> automation_; | 367 base::WeakPtr<AutomationProvider> automation_; |
365 scoped_ptr<IPC::Message> reply_message_; | 368 scoped_ptr<IPC::Message> reply_message_; |
366 const Extension* extension_; | 369 const extensions::Extension* extension_; |
367 | 370 |
368 DISALLOW_COPY_AND_ASSIGN(ExtensionReadyNotificationObserver); | 371 DISALLOW_COPY_AND_ASSIGN(ExtensionReadyNotificationObserver); |
369 }; | 372 }; |
370 | 373 |
371 class ExtensionUnloadNotificationObserver | 374 class ExtensionUnloadNotificationObserver |
372 : public content::NotificationObserver { | 375 : public content::NotificationObserver { |
373 public: | 376 public: |
374 ExtensionUnloadNotificationObserver(); | 377 ExtensionUnloadNotificationObserver(); |
375 virtual ~ExtensionUnloadNotificationObserver(); | 378 virtual ~ExtensionUnloadNotificationObserver(); |
376 | 379 |
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1810 private: | 1813 private: |
1811 base::WeakPtr<AutomationProvider> automation_; | 1814 base::WeakPtr<AutomationProvider> automation_; |
1812 scoped_ptr<IPC::Message> reply_message_; | 1815 scoped_ptr<IPC::Message> reply_message_; |
1813 std::string extension_id_; | 1816 std::string extension_id_; |
1814 content::NotificationRegistrar registrar_; | 1817 content::NotificationRegistrar registrar_; |
1815 | 1818 |
1816 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); | 1819 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); |
1817 }; | 1820 }; |
1818 | 1821 |
1819 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1822 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
OLD | NEW |