Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / automation / automation_tab_tracker.h
blob6afa291d7889c50b7930ee45cdcf0dfbb77ae643
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.
5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_TRACKER_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_TRACKER_H_
8 #include <map>
10 #include "chrome/browser/automation/automation_resource_tracker.h"
12 namespace content {
13 class NavigationController;
16 class AutomationTabTracker
17 : public AutomationResourceTracker<content::NavigationController*> {
18 public:
19 explicit AutomationTabTracker(IPC::Sender* automation);
20 virtual ~AutomationTabTracker();
22 virtual void AddObserver(content::NavigationController* resource);
23 virtual void RemoveObserver(content::NavigationController* resource);
25 virtual void Observe(int type,
26 const content::NotificationSource& source,
27 const content::NotificationDetails& details);
29 private:
30 DISALLOW_COPY_AND_ASSIGN(AutomationTabTracker);
33 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_TAB_TRACKER_H_