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

Side by Side Diff: chrome/test/automation/automation_handle_tracker.cc

Issue 4758001: Part 2 of reapplying r64637. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Window recompile after rebase? Created 10 years, 1 month 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/test/automation/automation_handle_tracker.h" 5 #include "chrome/test/automation/automation_handle_tracker.h"
6 6
7 #include "chrome/test/automation/automation_messages.h" 7 #include "chrome/common/automation_messages.h"
8 #include "chrome/test/automation/automation_proxy.h" 8 #include "chrome/test/automation/automation_proxy.h"
9 9
10 AutomationResourceProxy::AutomationResourceProxy( 10 AutomationResourceProxy::AutomationResourceProxy(
11 AutomationHandleTracker* tracker, AutomationMessageSender* sender, 11 AutomationHandleTracker* tracker, AutomationMessageSender* sender,
12 AutomationHandle handle) 12 AutomationHandle handle)
13 : handle_(handle), 13 : handle_(handle),
14 tracker_(tracker), 14 tracker_(tracker),
15 sender_(sender), 15 sender_(sender),
16 is_valid_(true) { 16 is_valid_(true) {
17 tracker_->Add(this); 17 tracker_->Add(this);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 AutomationResourceProxy* AutomationHandleTracker::GetResource( 63 AutomationResourceProxy* AutomationHandleTracker::GetResource(
64 AutomationHandle handle) { 64 AutomationHandle handle) {
65 AutoLock lock(map_lock_); 65 AutoLock lock(map_lock_);
66 HandleToObjectMap::iterator iter = handle_to_object_.find(handle); 66 HandleToObjectMap::iterator iter = handle_to_object_.find(handle);
67 if (iter == handle_to_object_.end()) 67 if (iter == handle_to_object_.end())
68 return NULL; 68 return NULL;
69 69
70 iter->second->AddRef(); 70 iter->second->AddRef();
71 return iter->second; 71 return iter->second;
72 } 72 }
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_constants.h ('k') | chrome/test/automation/automation_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698