| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 #include "content/common/notification_registrar.h" | 50 #include "content/common/notification_registrar.h" |
| 51 #include "ui/gfx/size.h" | 51 #include "ui/gfx/size.h" |
| 52 | 52 |
| 53 class AutocompleteEditModel; | 53 class AutocompleteEditModel; |
| 54 class AutomationProvider; | 54 class AutomationProvider; |
| 55 class BalloonCollection; | 55 class BalloonCollection; |
| 56 class Browser; | 56 class Browser; |
| 57 class Extension; | 57 class Extension; |
| 58 class ExtensionProcessManager; | 58 class ExtensionProcessManager; |
| 59 class NavigationController; | 59 class NavigationController; |
| 60 class Profile; |
| 60 class RenderViewHost; | 61 class RenderViewHost; |
| 61 class SavePackage; | 62 class SavePackage; |
| 62 class TabContents; | 63 class TabContents; |
| 63 class TranslateInfoBarDelegate; | 64 class TranslateInfoBarDelegate; |
| 64 | 65 |
| 65 #if defined(OS_CHROMEOS) | 66 #if defined(OS_CHROMEOS) |
| 66 namespace chromeos { | 67 namespace chromeos { |
| 67 class ExistingUserController; | 68 class ExistingUserController; |
| 68 } | 69 } |
| 69 #endif // defined(OS_CHROMEOS) | 70 #endif // defined(OS_CHROMEOS) |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 private: | 127 private: |
| 127 base::WeakPtr<AutomationProvider> automation_; | 128 base::WeakPtr<AutomationProvider> automation_; |
| 128 | 129 |
| 129 DISALLOW_COPY_AND_ASSIGN(NetworkManagerInitObserver); | 130 DISALLOW_COPY_AND_ASSIGN(NetworkManagerInitObserver); |
| 130 }; | 131 }; |
| 131 #endif // defined(OS_CHROMEOS) | 132 #endif // defined(OS_CHROMEOS) |
| 132 | 133 |
| 133 // Watches for NewTabUI page loads for performance timing purposes. | 134 // Watches for NewTabUI page loads for performance timing purposes. |
| 134 class NewTabUILoadObserver : public NotificationObserver { | 135 class NewTabUILoadObserver : public NotificationObserver { |
| 135 public: | 136 public: |
| 136 explicit NewTabUILoadObserver(AutomationProvider* automation); | 137 explicit NewTabUILoadObserver(AutomationProvider* automation, |
| 138 Profile* profile); |
| 137 virtual ~NewTabUILoadObserver(); | 139 virtual ~NewTabUILoadObserver(); |
| 138 | 140 |
| 139 virtual void Observe(int type, | 141 virtual void Observe(int type, |
| 140 const NotificationSource& source, | 142 const NotificationSource& source, |
| 141 const NotificationDetails& details); | 143 const NotificationDetails& details); |
| 142 | 144 |
| 143 private: | 145 private: |
| 144 NotificationRegistrar registrar_; | 146 NotificationRegistrar registrar_; |
| 145 base::WeakPtr<AutomationProvider> automation_; | 147 base::WeakPtr<AutomationProvider> automation_; |
| 146 | 148 |
| (...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1646 | 1648 |
| 1647 private: | 1649 private: |
| 1648 NotificationRegistrar registrar_; | 1650 NotificationRegistrar registrar_; |
| 1649 base::WeakPtr<AutomationProvider> automation_; | 1651 base::WeakPtr<AutomationProvider> automation_; |
| 1650 scoped_ptr<IPC::Message> reply_message_; | 1652 scoped_ptr<IPC::Message> reply_message_; |
| 1651 | 1653 |
| 1652 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); | 1654 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); |
| 1653 }; | 1655 }; |
| 1654 | 1656 |
| 1655 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1657 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
| OLD | NEW |