| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 class AutomationProvider; | 57 class AutomationProvider; |
| 58 class BalloonCollection; | 58 class BalloonCollection; |
| 59 class Browser; | 59 class Browser; |
| 60 class Extension; | 60 class Extension; |
| 61 class ExtensionProcessManager; | 61 class ExtensionProcessManager; |
| 62 class ExtensionService; | 62 class ExtensionService; |
| 63 class InfoBarTabHelper; | 63 class InfoBarTabHelper; |
| 64 class Notification; | 64 class Notification; |
| 65 class Profile; | 65 class Profile; |
| 66 class RenderViewHost; | |
| 67 class SavePackage; | 66 class SavePackage; |
| 68 class TabContents; | 67 class TabContents; |
| 69 class TranslateInfoBarDelegate; | 68 class TranslateInfoBarDelegate; |
| 70 | 69 |
| 71 #if defined(OS_CHROMEOS) | 70 #if defined(OS_CHROMEOS) |
| 72 namespace chromeos { | 71 namespace chromeos { |
| 73 class ExistingUserController; | 72 class ExistingUserController; |
| 74 } | 73 } |
| 75 #endif // defined(OS_CHROMEOS) | 74 #endif // defined(OS_CHROMEOS) |
| 76 | 75 |
| 77 namespace IPC { | 76 namespace IPC { |
| 78 class Message; | 77 class Message; |
| 79 } | 78 } |
| 80 | 79 |
| 81 namespace content { | 80 namespace content { |
| 82 class NavigationController; | 81 class NavigationController; |
| 82 class RenderViewHost; |
| 83 class WebContents; | 83 class WebContents; |
| 84 } | 84 } |
| 85 | 85 |
| 86 namespace history { | 86 namespace history { |
| 87 class TopSites; | 87 class TopSites; |
| 88 } | 88 } |
| 89 | 89 |
| 90 namespace policy { | 90 namespace policy { |
| 91 class BrowserPolicyConnector; | 91 class BrowserPolicyConnector; |
| 92 } | 92 } |
| (...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1425 }; | 1425 }; |
| 1426 | 1426 |
| 1427 // Observes when Autofill information is displayed in the renderer. This can | 1427 // Observes when Autofill information is displayed in the renderer. This can |
| 1428 // happen in two different ways: (1) a popup containing Autofill suggestions | 1428 // happen in two different ways: (1) a popup containing Autofill suggestions |
| 1429 // has been shown in the renderer; (2) a webpage form is filled or previewed | 1429 // has been shown in the renderer; (2) a webpage form is filled or previewed |
| 1430 // with Autofill suggestions. A constructor argument specifies the appropriate | 1430 // with Autofill suggestions. A constructor argument specifies the appropriate |
| 1431 // notification to wait for. | 1431 // notification to wait for. |
| 1432 class AutofillDisplayedObserver : public content::NotificationObserver { | 1432 class AutofillDisplayedObserver : public content::NotificationObserver { |
| 1433 public: | 1433 public: |
| 1434 AutofillDisplayedObserver(int notification, | 1434 AutofillDisplayedObserver(int notification, |
| 1435 RenderViewHost* render_view_host, | 1435 content::RenderViewHost* render_view_host, |
| 1436 AutomationProvider* automation, | 1436 AutomationProvider* automation, |
| 1437 IPC::Message* reply_message); | 1437 IPC::Message* reply_message); |
| 1438 virtual ~AutofillDisplayedObserver(); | 1438 virtual ~AutofillDisplayedObserver(); |
| 1439 | 1439 |
| 1440 // content::NotificationObserver interface. | 1440 // content::NotificationObserver interface. |
| 1441 virtual void Observe(int type, | 1441 virtual void Observe(int type, |
| 1442 const content::NotificationSource& source, | 1442 const content::NotificationSource& source, |
| 1443 const content::NotificationDetails& details); | 1443 const content::NotificationDetails& details); |
| 1444 | 1444 |
| 1445 private: | 1445 private: |
| 1446 int notification_; | 1446 int notification_; |
| 1447 RenderViewHost* render_view_host_; | 1447 content::RenderViewHost* render_view_host_; |
| 1448 base::WeakPtr<AutomationProvider> automation_; | 1448 base::WeakPtr<AutomationProvider> automation_; |
| 1449 scoped_ptr<IPC::Message> reply_message_; | 1449 scoped_ptr<IPC::Message> reply_message_; |
| 1450 content::NotificationRegistrar registrar_; | 1450 content::NotificationRegistrar registrar_; |
| 1451 | 1451 |
| 1452 DISALLOW_COPY_AND_ASSIGN(AutofillDisplayedObserver); | 1452 DISALLOW_COPY_AND_ASSIGN(AutofillDisplayedObserver); |
| 1453 }; | 1453 }; |
| 1454 | 1454 |
| 1455 // Observes when a specified number of autofill profiles and credit cards have | 1455 // Observes when a specified number of autofill profiles and credit cards have |
| 1456 // been changed in the WebDataService. The notifications are sent on the DB | 1456 // been changed in the WebDataService. The notifications are sent on the DB |
| 1457 // thread, the thread that interacts with the database. | 1457 // thread, the thread that interacts with the database. |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1907 private: | 1907 private: |
| 1908 base::WeakPtr<AutomationProvider> automation_; | 1908 base::WeakPtr<AutomationProvider> automation_; |
| 1909 scoped_ptr<IPC::Message> reply_message_; | 1909 scoped_ptr<IPC::Message> reply_message_; |
| 1910 std::string extension_id_; | 1910 std::string extension_id_; |
| 1911 content::NotificationRegistrar registrar_; | 1911 content::NotificationRegistrar registrar_; |
| 1912 | 1912 |
| 1913 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); | 1913 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); |
| 1914 }; | 1914 }; |
| 1915 | 1915 |
| 1916 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1916 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
| OLD | NEW |