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

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

Issue 4697005: Part 3 of reapplying r64637. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Prune dead files from gyp Created 10 years, 1 month 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 | « no previous file | chrome/browser/automation/testing_automation_provider.cc » ('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) 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/notification_registrar.h" 15 #include "chrome/common/notification_registrar.h"
16 #include "chrome/common/page_type.h"
16 17
17 class DictionaryValue; 18 class DictionaryValue;
18 class TemplateURLModel; 19 class TemplateURLModel;
19 20
20 // This is an automation provider containing testing calls. 21 // This is an automation provider containing testing calls.
21 class TestingAutomationProvider : public AutomationProvider, 22 class TestingAutomationProvider : public AutomationProvider,
22 public BrowserList::Observer, 23 public BrowserList::Observer,
23 public NotificationObserver { 24 public NotificationObserver {
24 public: 25 public:
25 explicit TestingAutomationProvider(Profile* profile); 26 explicit TestingAutomationProvider(Profile* profile);
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 void HideInterstitialPage(int tab_handle, bool* success); 193 void HideInterstitialPage(int tab_handle, bool* success);
193 194
194 void WaitForTabToBeRestored(int tab_handle, IPC::Message* reply_message); 195 void WaitForTabToBeRestored(int tab_handle, IPC::Message* reply_message);
195 196
196 // Gets the security state for the tab associated to the specified |handle|. 197 // Gets the security state for the tab associated to the specified |handle|.
197 void GetSecurityState(int handle, bool* success, 198 void GetSecurityState(int handle, bool* success,
198 SecurityStyle* security_style, int* ssl_cert_status, 199 SecurityStyle* security_style, int* ssl_cert_status,
199 int* insecure_content_status); 200 int* insecure_content_status);
200 201
201 // Gets the page type for the tab associated to the specified |handle|. 202 // Gets the page type for the tab associated to the specified |handle|.
202 void GetPageType(int handle, bool* success, 203 void GetPageType(int handle, bool* success, PageType* page_type);
203 NavigationEntry::PageType* page_type);
204 204
205 // Gets the duration in ms of the last event matching |event_name|. 205 // Gets the duration in ms of the last event matching |event_name|.
206 // |duration_ms| is -1 if the event hasn't occurred yet. 206 // |duration_ms| is -1 if the event hasn't occurred yet.
207 void GetMetricEventDuration(const std::string& event_name, int* duration_ms); 207 void GetMetricEventDuration(const std::string& event_name, int* duration_ms);
208 208
209 // Simulates an action on the SSL blocking page at the tab specified by 209 // Simulates an action on the SSL blocking page at the tab specified by
210 // |handle|. If |proceed| is true, it is equivalent to the user pressing the 210 // |handle|. If |proceed| is true, it is equivalent to the user pressing the
211 // 'Proceed' button, if false the 'Get me out of there button'. 211 // 'Proceed' button, if false the 'Get me out of there button'.
212 // Not that this fails if the tab is not displaying a SSL blocking page. 212 // Not that this fails if the tab is not displaying a SSL blocking page.
213 void ActionOnSSLBlockingPage(int handle, 213 void ActionOnSSLBlockingPage(int handle,
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after
742 // for the results) so there is only one handle. When non-0, indicates a 742 // for the results) so there is only one handle. When non-0, indicates a
743 // query in progress. 743 // query in progress.
744 HistoryService::Handle redirect_query_; 744 HistoryService::Handle redirect_query_;
745 745
746 NotificationRegistrar registrar_; 746 NotificationRegistrar registrar_;
747 747
748 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 748 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
749 }; 749 };
750 750
751 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 751 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698