Index: chrome/browser/automation/automation_window_tracker.h |
diff --git a/chrome/browser/automation/automation_window_tracker.h b/chrome/browser/automation/automation_window_tracker.h |
index e73b169b7e4450f374413869fb266fc6378eba55..7483f1d522e331a61982ad077b7e7aeb9ffa31a1 100644 |
--- a/chrome/browser/automation/automation_window_tracker.h |
+++ b/chrome/browser/automation/automation_window_tracker.h |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
@@ -8,26 +8,16 @@ |
#include "build/build_config.h" |
#include "chrome/browser/automation/automation_resource_tracker.h" |
-#include "chrome/common/native_window_notification_source.h" |
#include "gfx/native_widget_types.h" |
class AutomationWindowTracker |
: public AutomationResourceTracker<gfx::NativeWindow> { |
public: |
- explicit AutomationWindowTracker(IPC::Message::Sender* automation) |
- : AutomationResourceTracker<gfx::NativeWindow>(automation) { } |
- virtual ~AutomationWindowTracker() { |
- } |
+ explicit AutomationWindowTracker(IPC::Message::Sender* automation); |
+ virtual ~AutomationWindowTracker(); |
- virtual void AddObserver(gfx::NativeWindow resource) { |
- registrar_.Add(this, NotificationType::WINDOW_CLOSED, |
- Source<gfx::NativeWindow>(resource)); |
- } |
- |
- virtual void RemoveObserver(gfx::NativeWindow resource) { |
- registrar_.Remove(this, NotificationType::WINDOW_CLOSED, |
- Source<gfx::NativeWindow>(resource)); |
- } |
+ virtual void AddObserver(gfx::NativeWindow resource); |
+ virtual void RemoveObserver(gfx::NativeWindow resource); |
}; |
#endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_WINDOW_TRACKER_H_ |