| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_TESTING_AUTOMATION_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "chrome/browser/automation/automation_provider.h" | 10 #include "chrome/browser/automation/automation_provider.h" |
| 11 #include "chrome/browser/browser_list.h" | 11 #include "chrome/browser/browser_list.h" |
| 12 #include "chrome/browser/history/history.h" | 12 #include "chrome/browser/history/history.h" |
| 13 #include "chrome/browser/search_engines/template_url_model.h" | |
| 14 #include "chrome/common/notification_registrar.h" | 13 #include "chrome/common/notification_registrar.h" |
| 15 | 14 |
| 15 class TemplateURLModel; |
| 16 |
| 16 // This is an automation provider containing testing calls. | 17 // This is an automation provider containing testing calls. |
| 17 class TestingAutomationProvider : public AutomationProvider, | 18 class TestingAutomationProvider : public AutomationProvider, |
| 18 public BrowserList::Observer, | 19 public BrowserList::Observer, |
| 19 public NotificationObserver { | 20 public NotificationObserver { |
| 20 public: | 21 public: |
| 21 explicit TestingAutomationProvider(Profile* profile); | 22 explicit TestingAutomationProvider(Profile* profile); |
| 22 | 23 |
| 23 // BrowserList::Observer implementation | 24 // BrowserList::Observer implementation |
| 24 // Called immediately after a browser is added to the list | 25 // Called immediately after a browser is added to the list |
| 25 virtual void OnBrowserAdded(const Browser* browser); | 26 virtual void OnBrowserAdded(const Browser* browser); |
| (...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 // for the results) so there is only one handle. When non-0, indicates a | 658 // for the results) so there is only one handle. When non-0, indicates a |
| 658 // query in progress. | 659 // query in progress. |
| 659 HistoryService::Handle redirect_query_; | 660 HistoryService::Handle redirect_query_; |
| 660 | 661 |
| 661 NotificationRegistrar registrar_; | 662 NotificationRegistrar registrar_; |
| 662 | 663 |
| 663 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 664 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
| 664 }; | 665 }; |
| 665 | 666 |
| 666 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 667 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |