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

Side by Side Diff: chrome/browser/automation/testing_automation_provider.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_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
11 #include "chrome/browser/automation/automation_provider.h" 11 #include "chrome/browser/automation/automation_provider.h"
12 #include "chrome/browser/browser_list.h" 12 #include "chrome/browser/browser_list.h"
13 #include "chrome/browser/history/history.h" 13 #include "chrome/browser/history/history.h"
14 #include "chrome/browser/sync/profile_sync_service_harness.h" 14 #include "chrome/browser/sync/profile_sync_service_harness.h"
15 #include "chrome/common/content_settings_types.h"
15 #include "chrome/common/notification_registrar.h" 16 #include "chrome/common/notification_registrar.h"
16 #include "chrome/common/page_type.h" 17 #include "chrome/common/page_type.h"
17 18
18 class DictionaryValue; 19 class DictionaryValue;
19 class TemplateURLModel; 20 class TemplateURLModel;
20 21
21 // This is an automation provider containing testing calls. 22 // This is an automation provider containing testing calls.
22 class TestingAutomationProvider : public AutomationProvider, 23 class TestingAutomationProvider : public AutomationProvider,
23 public BrowserList::Observer, 24 public BrowserList::Observer,
24 public NotificationObserver { 25 public NotificationObserver {
(...skipping 22 matching lines...) Expand all
47 void CloseTab(int tab_handle, bool wait_until_closed, 48 void CloseTab(int tab_handle, bool wait_until_closed,
48 IPC::Message* reply_message); 49 IPC::Message* reply_message);
49 void GetCookies(const GURL& url, int handle, int* value_size, 50 void GetCookies(const GURL& url, int handle, int* value_size,
50 std::string* value); 51 std::string* value);
51 void SetCookie(const GURL& url, 52 void SetCookie(const GURL& url,
52 const std::string value, 53 const std::string value,
53 int handle, 54 int handle,
54 int* response_value); 55 int* response_value);
55 void DeleteCookie(const GURL& url, const std::string& cookie_name, 56 void DeleteCookie(const GURL& url, const std::string& cookie_name,
56 int handle, bool* success); 57 int handle, bool* success);
58 void IsContentBlocked(int handle,
59 ContentSettingsType content_type,
60 bool* is_blocked,
61 bool* success);
62 void IsContentAccessed(int handle,
63 ContentSettingsType content_type,
64 bool* is_accessed,
65 bool* success);
57 void ShowCollectedCookiesDialog(int handle, bool* success); 66 void ShowCollectedCookiesDialog(int handle, bool* success);
58 void NavigateToURL(int handle, const GURL& url, IPC::Message* reply_message); 67 void NavigateToURL(int handle, const GURL& url, IPC::Message* reply_message);
59 void NavigateToURLBlockUntilNavigationsComplete(int handle, const GURL& url, 68 void NavigateToURLBlockUntilNavigationsComplete(int handle, const GURL& url,
60 int number_of_navigations, 69 int number_of_navigations,
61 IPC::Message* reply_message); 70 IPC::Message* reply_message);
62 void NavigationAsync(int handle, const GURL& url, bool* status); 71 void NavigationAsync(int handle, const GURL& url, bool* status);
63 void NavigationAsyncWithDisposition(int handle, 72 void NavigationAsyncWithDisposition(int handle,
64 const GURL& url, 73 const GURL& url,
65 WindowOpenDisposition disposition, 74 WindowOpenDisposition disposition,
66 bool* status); 75 bool* status);
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 // for the results) so there is only one handle. When non-0, indicates a 788 // for the results) so there is only one handle. When non-0, indicates a
780 // query in progress. 789 // query in progress.
781 HistoryService::Handle redirect_query_; 790 HistoryService::Handle redirect_query_;
782 791
783 NotificationRegistrar registrar_; 792 NotificationRegistrar registrar_;
784 793
785 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 794 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
786 }; 795 };
787 796
788 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 797 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('j') | chrome/common/automation_messages_internal.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698