• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_TRACKER_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_TRACKER_H_
7 
8 #include <map>
9 
10 #include "chrome/browser/automation/automation_resource_tracker.h"
11 
12 namespace content {
13 class NavigationController;
14 }
15 
16 class AutomationTabTracker
17   : public AutomationResourceTracker<content::NavigationController*> {
18  public:
19   explicit AutomationTabTracker(IPC::Sender* automation);
20   virtual ~AutomationTabTracker();
21 
22   virtual void AddObserver(content::NavigationController* resource);
23   virtual void RemoveObserver(content::NavigationController* resource);
24 
25   virtual void Observe(int type,
26                        const content::NotificationSource& source,
27                        const content::NotificationDetails& details);
28 
29  private:
30   DISALLOW_COPY_AND_ASSIGN(AutomationTabTracker);
31 };
32 
33 #endif  // CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_TRACKER_H_
34