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

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

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 #ifndef CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 5 #ifndef CHROME_TEST_AUTOMATION_TAB_PROXY_H_
6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" // NOLINT 9 #include "build/build_config.h" // NOLINT
10 10
11 #if defined(OS_WIN) 11 #if defined(OS_WIN)
12 #include <wtypes.h> // NOLINT 12 #include <wtypes.h> // NOLINT
13 #endif 13 #endif
14 14
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "base/compiler_specific.h" 18 #include "base/compiler_specific.h"
19 #include "base/observer_list.h" 19 #include "base/observer_list.h"
20 #include "chrome/browser/download/save_package.h" 20 #include "chrome/browser/download/save_package.h"
21 #include "chrome/common/automation_constants.h" 21 #include "chrome/common/automation_constants.h"
22 #include "chrome/common/content_settings_types.h"
22 #include "chrome/common/page_type.h" 23 #include "chrome/common/page_type.h"
23 #include "chrome/common/security_style.h" 24 #include "chrome/common/security_style.h"
24 #include "chrome/test/automation/automation_handle_tracker.h" 25 #include "chrome/test/automation/automation_handle_tracker.h"
25 #include "chrome/test/automation/dom_element_proxy.h" 26 #include "chrome/test/automation/dom_element_proxy.h"
26 #include "chrome/test/automation/javascript_execution_controller.h" 27 #include "chrome/test/automation/javascript_execution_controller.h"
27 28
28 class GURL; 29 class GURL;
29 class Value; 30 class Value;
30 namespace IPC { 31 namespace IPC {
31 class Message; 32 class Message;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 FindInPageCase match_case, bool find_next, int* ordinal); 241 FindInPageCase match_case, bool find_next, int* ordinal);
241 242
242 bool GetCookies(const GURL& url, std::string* cookies) WARN_UNUSED_RESULT; 243 bool GetCookies(const GURL& url, std::string* cookies) WARN_UNUSED_RESULT;
243 bool GetCookieByName(const GURL& url, 244 bool GetCookieByName(const GURL& url,
244 const std::string& name, 245 const std::string& name,
245 std::string* cookies) WARN_UNUSED_RESULT; 246 std::string* cookies) WARN_UNUSED_RESULT;
246 bool SetCookie(const GURL& url, const std::string& value) WARN_UNUSED_RESULT; 247 bool SetCookie(const GURL& url, const std::string& value) WARN_UNUSED_RESULT;
247 bool DeleteCookie(const GURL& url, 248 bool DeleteCookie(const GURL& url,
248 const std::string& name) WARN_UNUSED_RESULT; 249 const std::string& name) WARN_UNUSED_RESULT;
249 250
251 // Checks whether the given |content_type| is blocked in the current tab.
252 bool IsContentBlocked(ContentSettingsType content_type,
253 bool* is_blocked) WARN_UNUSED_RESULT;
254 // Checks whether the given |content_type| is accessed in the current tab.
255 bool IsContentAccessed(ContentSettingsType content_type,
256 bool* is_accessed) WARN_UNUSED_RESULT;
257
250 // Opens the collected cookies dialog for the current tab. This function can 258 // Opens the collected cookies dialog for the current tab. This function can
251 // be invoked on any valid tab. 259 // be invoked on any valid tab.
252 bool ShowCollectedCookiesDialog() WARN_UNUSED_RESULT; 260 bool ShowCollectedCookiesDialog() WARN_UNUSED_RESULT;
253 261
254 // Sends a InspectElement message for the current tab. |x| and |y| are the 262 // Sends a InspectElement message for the current tab. |x| and |y| are the
255 // coordinates that we want to simulate that the user is trying to inspect. 263 // coordinates that we want to simulate that the user is trying to inspect.
256 int InspectElement(int x, int y); 264 int InspectElement(int x, int y);
257 265
258 // Block the thread until the constrained(child) window count changes. 266 // Block the thread until the constrained(child) window count changes.
259 // First parameter is the original child window count 267 // First parameter is the original child window count
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 // purposes. 439 // purposes.
432 void LastObjectRemoved(); 440 void LastObjectRemoved();
433 441
434 private: 442 private:
435 Lock list_lock_; // Protects the observers_list_. 443 Lock list_lock_; // Protects the observers_list_.
436 ObserverList<TabProxyDelegate> observers_list_; 444 ObserverList<TabProxyDelegate> observers_list_;
437 DISALLOW_COPY_AND_ASSIGN(TabProxy); 445 DISALLOW_COPY_AND_ASSIGN(TabProxy);
438 }; 446 };
439 447
440 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 448 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698