OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/tab_proxy.h" | 5 #include "chrome/test/automation/tab_proxy.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/json/json_string_value_serializer.h" | 9 #include "base/json/json_string_value_serializer.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/string16.h" | 11 #include "base/strings/string16.h" |
12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
13 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
14 #include "chrome/common/automation_constants.h" | 14 #include "chrome/common/automation_constants.h" |
15 #include "chrome/common/automation_messages.h" | 15 #include "chrome/common/automation_messages.h" |
16 #include "chrome/test/automation/automation_proxy.h" | 16 #include "chrome/test/automation/automation_proxy.h" |
17 #include "chrome/test/automation/browser_proxy.h" | 17 #include "chrome/test/automation/browser_proxy.h" |
18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
19 | 19 |
20 TabProxy::TabProxy(AutomationMessageSender* sender, | 20 TabProxy::TabProxy(AutomationMessageSender* sender, |
21 AutomationHandleTracker* tracker, | 21 AutomationHandleTracker* tracker, |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 | 460 |
461 TabProxy::~TabProxy() {} | 461 TabProxy::~TabProxy() {} |
462 | 462 |
463 void TabProxy::FirstObjectAdded() { | 463 void TabProxy::FirstObjectAdded() { |
464 AddRef(); | 464 AddRef(); |
465 } | 465 } |
466 | 466 |
467 void TabProxy::LastObjectRemoved() { | 467 void TabProxy::LastObjectRemoved() { |
468 Release(); | 468 Release(); |
469 } | 469 } |
OLD | NEW |