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

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

Issue 5875005: Cleanup: Remove unneeded includes of notification_service.h.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: put includes in right order Created 10 years 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) 2006-2008 The Chromium Authors. All rights reserved. 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 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_resource_tracker.h" 5 #include "chrome/browser/automation/automation_resource_tracker.h"
6 6
7 #include "chrome/common/automation_messages.h" 7 #include "chrome/common/automation_messages.h"
8 #include "chrome/common/notification_service.h"
9 8
10 AutomationResourceTrackerImpl::AutomationResourceTrackerImpl( 9 AutomationResourceTrackerImpl::AutomationResourceTrackerImpl(
11 IPC::Message::Sender* sender) 10 IPC::Message::Sender* sender)
12 : sender_(sender) { 11 : sender_(sender) {
13 } 12 }
14 13
15 AutomationResourceTrackerImpl::~AutomationResourceTrackerImpl() { 14 AutomationResourceTrackerImpl::~AutomationResourceTrackerImpl() {
16 } 15 }
17 16
18 int AutomationResourceTrackerImpl::AddImpl(const void* resource) { 17 int AutomationResourceTrackerImpl::AddImpl(const void* resource) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void AutomationResourceTrackerImpl::HandleCloseNotification( 75 void AutomationResourceTrackerImpl::HandleCloseNotification(
77 const void* resource) { 76 const void* resource) {
78 if (!ContainsResourceImpl(resource)) 77 if (!ContainsResourceImpl(resource))
79 return; 78 return;
80 79
81 sender_->Send( 80 sender_->Send(
82 new AutomationMsg_InvalidateHandle(0, resource_to_handle_[resource])); 81 new AutomationMsg_InvalidateHandle(0, resource_to_handle_[resource]));
83 82
84 RemoveImpl(resource); 83 RemoveImpl(resource);
85 } 84 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider.cc ('k') | chrome/browser/automation/extension_port_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698