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

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

Issue 7969023: For the SSL cert status, convert anonymous enum that gives bit values into a typedefed uint32. Th... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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
« no previous file with comments | « chrome/test/automation/tab_proxy.h ('k') | content/browser/load_from_memory_cache_details.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 bool TabProxy::WaitForTabToBeRestored(uint32 timeout_ms) { 564 bool TabProxy::WaitForTabToBeRestored(uint32 timeout_ms) {
565 if (!is_valid()) 565 if (!is_valid())
566 return false; 566 return false;
567 bool succeeded = false; 567 bool succeeded = false;
568 return sender_->Send( 568 return sender_->Send(
569 new AutomationMsg_WaitForTabToBeRestored(handle_, &succeeded)) && 569 new AutomationMsg_WaitForTabToBeRestored(handle_, &succeeded)) &&
570 succeeded; 570 succeeded;
571 } 571 }
572 572
573 bool TabProxy::GetSecurityState(SecurityStyle* security_style, 573 bool TabProxy::GetSecurityState(SecurityStyle* security_style,
574 int* ssl_cert_status, 574 net::CertStatus* ssl_cert_status,
575 int* insecure_content_status) { 575 int* insecure_content_status) {
576 DCHECK(security_style && ssl_cert_status && insecure_content_status); 576 DCHECK(security_style && ssl_cert_status && insecure_content_status);
577 577
578 if (!is_valid()) 578 if (!is_valid())
579 return false; 579 return false;
580 580
581 bool succeeded = false; 581 bool succeeded = false;
582 582
583 sender_->Send(new AutomationMsg_GetSecurityState( 583 sender_->Send(new AutomationMsg_GetSecurityState(
584 handle_, &succeeded, security_style, ssl_cert_status, 584 handle_, &succeeded, security_style, ssl_cert_status,
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 json)); 835 json));
836 } 836 }
837 837
838 void TabProxy::FirstObjectAdded() { 838 void TabProxy::FirstObjectAdded() {
839 AddRef(); 839 AddRef();
840 } 840 }
841 841
842 void TabProxy::LastObjectRemoved() { 842 void TabProxy::LastObjectRemoved() {
843 Release(); 843 Release();
844 } 844 }
OLDNEW
« no previous file with comments | « chrome/test/automation/tab_proxy.h ('k') | content/browser/load_from_memory_cache_details.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698