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

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

Issue 5254005: Do not reset the content settings delegate's cookies when a network error occurred. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser/tab_contents
Patch Set: updates 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) 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 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 &response_value)); 460 &response_value));
461 } 461 }
462 462
463 bool TabProxy::DeleteCookie(const GURL& url, const std::string& name) { 463 bool TabProxy::DeleteCookie(const GURL& url, const std::string& name) {
464 bool succeeded; 464 bool succeeded;
465 sender_->Send(new AutomationMsg_DeleteCookie(0, url, name, handle_, 465 sender_->Send(new AutomationMsg_DeleteCookie(0, url, name, handle_,
466 &succeeded)); 466 &succeeded));
467 return succeeded; 467 return succeeded;
468 } 468 }
469 469
470 bool TabProxy::IsContentBlocked(ContentSettingsType content_type,
471 bool* is_blocked) {
472 bool succeeded;
473 return sender_->Send(new AutomationMsg_IsContentBlocked(
474 0, handle_, content_type, is_blocked, &succeeded)) && succeeded;
475 }
476
477 bool TabProxy::IsContentAccessed(ContentSettingsType content_type,
478 bool* is_accessed) {
479 bool succeeded;
480 return sender_->Send(new AutomationMsg_IsContentAccessed(
481 0, handle_, content_type, is_accessed, &succeeded)) && succeeded;
482 }
483
470 bool TabProxy::ShowCollectedCookiesDialog() { 484 bool TabProxy::ShowCollectedCookiesDialog() {
471 bool succeeded = false; 485 bool succeeded = false;
472 return sender_->Send(new AutomationMsg_ShowCollectedCookiesDialog( 486 return sender_->Send(new AutomationMsg_ShowCollectedCookiesDialog(
473 0, handle_, &succeeded)) && succeeded; 487 0, handle_, &succeeded)) && succeeded;
474 } 488 }
475 489
476 int TabProxy::InspectElement(int x, int y) { 490 int TabProxy::InspectElement(int x, int y) {
477 if (!is_valid()) 491 if (!is_valid())
478 return -1; 492 return -1;
479 493
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 json)); 853 json));
840 } 854 }
841 855
842 void TabProxy::FirstObjectAdded() { 856 void TabProxy::FirstObjectAdded() {
843 AddRef(); 857 AddRef();
844 } 858 }
845 859
846 void TabProxy::LastObjectRemoved() { 860 void TabProxy::LastObjectRemoved() {
847 Release(); 861 Release();
848 } 862 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698