| OLD | NEW |
| 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/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/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 | 598 |
| 599 bool succeeded = false; | 599 bool succeeded = false; |
| 600 | 600 |
| 601 sender_->Send(new AutomationMsg_GetSecurityState( | 601 sender_->Send(new AutomationMsg_GetSecurityState( |
| 602 0, handle_, &succeeded, security_style, ssl_cert_status, | 602 0, handle_, &succeeded, security_style, ssl_cert_status, |
| 603 insecure_content_status)); | 603 insecure_content_status)); |
| 604 | 604 |
| 605 return succeeded; | 605 return succeeded; |
| 606 } | 606 } |
| 607 | 607 |
| 608 bool TabProxy::GetPageType(NavigationEntry::PageType* type) { | 608 bool TabProxy::GetPageType(PageType* type) { |
| 609 DCHECK(type); | 609 DCHECK(type); |
| 610 | 610 |
| 611 if (!is_valid()) | 611 if (!is_valid()) |
| 612 return false; | 612 return false; |
| 613 | 613 |
| 614 bool succeeded = false; | 614 bool succeeded = false; |
| 615 sender_->Send(new AutomationMsg_GetPageType(0, handle_, &succeeded, type)); | 615 sender_->Send(new AutomationMsg_GetPageType(0, handle_, &succeeded, type)); |
| 616 return succeeded; | 616 return succeeded; |
| 617 } | 617 } |
| 618 | 618 |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 json)); | 829 json)); |
| 830 } | 830 } |
| 831 | 831 |
| 832 void TabProxy::FirstObjectAdded() { | 832 void TabProxy::FirstObjectAdded() { |
| 833 AddRef(); | 833 AddRef(); |
| 834 } | 834 } |
| 835 | 835 |
| 836 void TabProxy::LastObjectRemoved() { | 836 void TabProxy::LastObjectRemoved() { |
| 837 Release(); | 837 Release(); |
| 838 } | 838 } |
| OLD | NEW |