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

Side by Side Diff: chrome/browser/automation/automation_window_tracker.cc

Issue 10553010: Rename IPC::Channel and IPC::Sender in src/chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
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 #include "chrome/browser/automation/automation_window_tracker.h" 5 #include "chrome/browser/automation/automation_window_tracker.h"
6 6
7 #include "chrome/browser/native_window_notification_source.h" 7 #include "chrome/browser/native_window_notification_source.h"
8 #include "chrome/common/chrome_notification_types.h" 8 #include "chrome/common/chrome_notification_types.h"
9 9
10 AutomationWindowTracker::AutomationWindowTracker( 10 AutomationWindowTracker::AutomationWindowTracker(IPC::Sender* automation)
11 IPC::Message::Sender* automation)
12 : AutomationResourceTracker<gfx::NativeWindow>(automation) { 11 : AutomationResourceTracker<gfx::NativeWindow>(automation) {
13 } 12 }
14 13
15 AutomationWindowTracker::~AutomationWindowTracker() { 14 AutomationWindowTracker::~AutomationWindowTracker() {
16 } 15 }
17 16
18 void AutomationWindowTracker::AddObserver(gfx::NativeWindow resource) { 17 void AutomationWindowTracker::AddObserver(gfx::NativeWindow resource) {
19 registrar_.Add(this, chrome::NOTIFICATION_WINDOW_CLOSED, 18 registrar_.Add(this, chrome::NOTIFICATION_WINDOW_CLOSED,
20 content::Source<gfx::NativeWindow>(resource)); 19 content::Source<gfx::NativeWindow>(resource));
21 } 20 }
22 21
23 void AutomationWindowTracker::RemoveObserver(gfx::NativeWindow resource) { 22 void AutomationWindowTracker::RemoveObserver(gfx::NativeWindow resource) {
24 registrar_.Remove(this, chrome::NOTIFICATION_WINDOW_CLOSED, 23 registrar_.Remove(this, chrome::NOTIFICATION_WINDOW_CLOSED,
25 content::Source<gfx::NativeWindow>(resource)); 24 content::Source<gfx::NativeWindow>(resource));
26 } 25 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_window_tracker.h ('k') | chrome/browser/automation/chrome_frame_automation_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698