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

Side by Side Diff: chrome/browser/automation/testing_automation_provider.h

Issue 3191015: GTTF: next batch of automation separation. (Closed)
Patch Set: tryservers Created 10 years, 4 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
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 "chrome/browser/automation/automation_provider.h" 10 #include "chrome/browser/automation/automation_provider.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void Reload(int handle, IPC::Message* reply_message); 63 void Reload(int handle, IPC::Message* reply_message);
64 void SetAuth(int tab_handle, const std::wstring& username, 64 void SetAuth(int tab_handle, const std::wstring& username,
65 const std::wstring& password, IPC::Message* reply_message); 65 const std::wstring& password, IPC::Message* reply_message);
66 void CancelAuth(int tab_handle, IPC::Message* reply_message); 66 void CancelAuth(int tab_handle, IPC::Message* reply_message);
67 void NeedsAuth(int tab_handle, bool* needs_auth); 67 void NeedsAuth(int tab_handle, bool* needs_auth);
68 void GetRedirectsFrom(int tab_handle, 68 void GetRedirectsFrom(int tab_handle,
69 const GURL& source_url, 69 const GURL& source_url,
70 IPC::Message* reply_message); 70 IPC::Message* reply_message);
71 void GetBrowserWindowCount(int* window_count); 71 void GetBrowserWindowCount(int* window_count);
72 void GetNormalBrowserWindowCount(int* window_count); 72 void GetNormalBrowserWindowCount(int* window_count);
73 // Be aware that the browser window returned might be of non TYPE_NORMAL
74 // or in incognito mode.
75 void GetBrowserWindow(int index, int* handle);
76 void FindNormalBrowserWindow(int* handle);
77 void GetLastActiveBrowserWindow(int* handle);
78 void GetActiveWindow(int* handle);
79 void ExecuteBrowserCommandAsync(int handle, int command, bool* success);
80 void ExecuteBrowserCommand(int handle, int command,
81 IPC::Message* reply_message);
82 void GetBrowserLocale(string16* locale);
83 void IsWindowActive(int handle, bool* success, bool* is_active);
84 void ActivateWindow(int handle);
85 void IsWindowMaximized(int handle, bool* is_maximized, bool* success);
73 86
74 // Callback for history redirect queries. 87 // Callback for history redirect queries.
75 virtual void OnRedirectQueryComplete( 88 virtual void OnRedirectQueryComplete(
76 HistoryService::Handle request_handle, 89 HistoryService::Handle request_handle,
77 GURL from_url, 90 GURL from_url,
78 bool success, 91 bool success,
79 history::RedirectList* redirects); 92 history::RedirectList* redirects);
80 93
81 virtual void Observe(NotificationType type, 94 virtual void Observe(NotificationType type,
82 const NotificationSource& source, 95 const NotificationSource& source,
83 const NotificationDetails& details); 96 const NotificationDetails& details);
84 97
85 void OnRemoveProvider(); // Called via PostTask 98 void OnRemoveProvider(); // Called via PostTask
86 99
87 // Handle for an in-process redirect query. We expect only one redirect query 100 // Handle for an in-process redirect query. We expect only one redirect query
88 // at a time (we should have only one caller, and it will block while waiting 101 // at a time (we should have only one caller, and it will block while waiting
89 // for the results) so there is only one handle. When non-0, indicates a 102 // for the results) so there is only one handle. When non-0, indicates a
90 // query in progress. 103 // query in progress.
91 HistoryService::Handle redirect_query_; 104 HistoryService::Handle redirect_query_;
92 105
93 NotificationRegistrar registrar_; 106 NotificationRegistrar registrar_;
94 107
95 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 108 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
96 }; 109 };
97 110
98 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 111 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider_win.cc ('k') | chrome/browser/automation/testing_automation_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698