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

Side by Side Diff: chrome/browser/automation/automation_browser_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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_browser_tracker.h" 5 #include "chrome/browser/automation/automation_browser_tracker.h"
6 6
7 #include "chrome/common/chrome_notification_types.h" 7 #include "chrome/common/chrome_notification_types.h"
8 #include "content/public/browser/notification_source.h" 8 #include "content/public/browser/notification_source.h"
9 9
10 AutomationBrowserTracker::AutomationBrowserTracker( 10 AutomationBrowserTracker::AutomationBrowserTracker(IPC::Sender* automation)
11 IPC::Message::Sender* automation)
12 : AutomationResourceTracker<Browser*>(automation) { 11 : AutomationResourceTracker<Browser*>(automation) {
13 } 12 }
14 13
15 AutomationBrowserTracker::~AutomationBrowserTracker() {} 14 AutomationBrowserTracker::~AutomationBrowserTracker() {}
16 15
17 void AutomationBrowserTracker::AddObserver(Browser* resource) { 16 void AutomationBrowserTracker::AddObserver(Browser* resource) {
18 registrar_.Add(this, chrome::NOTIFICATION_BROWSER_CLOSED, 17 registrar_.Add(this, chrome::NOTIFICATION_BROWSER_CLOSED,
19 content::Source<Browser>(resource)); 18 content::Source<Browser>(resource));
20 } 19 }
21 20
22 void AutomationBrowserTracker::RemoveObserver(Browser* resource) { 21 void AutomationBrowserTracker::RemoveObserver(Browser* resource) {
23 registrar_.Remove(this, chrome::NOTIFICATION_BROWSER_CLOSED, 22 registrar_.Remove(this, chrome::NOTIFICATION_BROWSER_CLOSED,
24 content::Source<Browser>(resource)); 23 content::Source<Browser>(resource));
25 } 24 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_browser_tracker.h ('k') | chrome/browser/automation/automation_resource_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698