Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(391)

Side by Side Diff: chrome/browser/automation/testing_automation_provider.h

Issue 3412016: FBTF: Move a bunch of code to the headers and remove includes. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rebase + fixed windows issues locally Created 10 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_window_tracker.cc ('k') | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698