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 1086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1097 DISALLOW_COPY_AND_ASSIGN(AllDownloadsCompleteObserver); | 1097 DISALLOW_COPY_AND_ASSIGN(AllDownloadsCompleteObserver); |
1098 }; | 1098 }; |
1099 | 1099 |
1100 // Allows automation provider to wait until TemplateURLService has loaded | 1100 // Allows automation provider to wait until TemplateURLService has loaded |
1101 // before looking up/returning search engine info. | 1101 // before looking up/returning search engine info. |
1102 class AutomationProviderSearchEngineObserver | 1102 class AutomationProviderSearchEngineObserver |
1103 : public TemplateURLServiceObserver { | 1103 : public TemplateURLServiceObserver { |
1104 public: | 1104 public: |
1105 AutomationProviderSearchEngineObserver( | 1105 AutomationProviderSearchEngineObserver( |
1106 AutomationProvider* provider, | 1106 AutomationProvider* provider, |
| 1107 Profile* profile, |
1107 IPC::Message* reply_message); | 1108 IPC::Message* reply_message); |
1108 virtual ~AutomationProviderSearchEngineObserver(); | 1109 virtual ~AutomationProviderSearchEngineObserver(); |
1109 | 1110 |
1110 virtual void OnTemplateURLServiceChanged(); | 1111 virtual void OnTemplateURLServiceChanged(); |
1111 | 1112 |
1112 private: | 1113 private: |
1113 base::WeakPtr<AutomationProvider> provider_; | 1114 base::WeakPtr<AutomationProvider> provider_; |
| 1115 Profile* profile_; |
1114 scoped_ptr<IPC::Message> reply_message_; | 1116 scoped_ptr<IPC::Message> reply_message_; |
1115 | 1117 |
1116 DISALLOW_COPY_AND_ASSIGN(AutomationProviderSearchEngineObserver); | 1118 DISALLOW_COPY_AND_ASSIGN(AutomationProviderSearchEngineObserver); |
1117 }; | 1119 }; |
1118 | 1120 |
1119 // Allows the automation provider to wait for history queries to finish. | 1121 // Allows the automation provider to wait for history queries to finish. |
1120 class AutomationProviderHistoryObserver { | 1122 class AutomationProviderHistoryObserver { |
1121 public: | 1123 public: |
1122 AutomationProviderHistoryObserver( | 1124 AutomationProviderHistoryObserver( |
1123 AutomationProvider* provider, | 1125 AutomationProvider* provider, |
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1848 private: | 1850 private: |
1849 base::WeakPtr<AutomationProvider> automation_; | 1851 base::WeakPtr<AutomationProvider> automation_; |
1850 scoped_ptr<IPC::Message> reply_message_; | 1852 scoped_ptr<IPC::Message> reply_message_; |
1851 std::string extension_id_; | 1853 std::string extension_id_; |
1852 content::NotificationRegistrar registrar_; | 1854 content::NotificationRegistrar registrar_; |
1853 | 1855 |
1854 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); | 1856 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupObserver); |
1855 }; | 1857 }; |
1856 | 1858 |
1857 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ | 1859 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ |
OLD | NEW |