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

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

Issue 8566028: Cleanup: Remove more forward declarations in various chrome/browser directories. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <map>
9 #include <string> 10 #include <string>
11 #include <vector>
10 12
11 #include "base/basictypes.h" 13 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 14 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
14 #include "chrome/browser/automation/automation_provider.h" 16 #include "chrome/browser/automation/automation_provider.h"
15 #include "chrome/browser/automation/automation_provider_json.h" 17 #include "chrome/browser/automation/automation_provider_json.h"
16 #include "chrome/browser/history/history.h" 18 #include "chrome/browser/history/history.h"
17 #include "chrome/browser/importer/importer_list_observer.h" 19 #include "chrome/browser/importer/importer_list_observer.h"
18 #include "chrome/browser/sync/profile_sync_service_harness.h" 20 #include "chrome/browser/sync/profile_sync_service_harness.h"
19 #include "chrome/browser/ui/browser_list.h" 21 #include "chrome/browser/ui/browser_list.h"
20 #include "content/public/browser/notification_registrar.h" 22 #include "content/public/browser/notification_registrar.h"
21 #include "content/public/common/page_type.h" 23 #include "content/public/common/page_type.h"
22 #include "net/base/cert_status_flags.h" 24 #include "net/base/cert_status_flags.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 25 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
24 26
25 #if defined(OS_CHROMEOS) 27 #if defined(OS_CHROMEOS)
26 // TODO(sque): move to a ChromeOS-specific class. See crosbug.com/22081. 28 // TODO(sque): move to a ChromeOS-specific class. See crosbug.com/22081.
27 #include "chrome/browser/chromeos/dbus/power_manager_client.h" 29 #include "chrome/browser/chromeos/dbus/power_manager_client.h"
28 #endif // defined(OS_CHROMEOS) 30 #endif // defined(OS_CHROMEOS)
29 31
32 class AutofillProfile;
33 class CreditCard;
30 class ImporterList; 34 class ImporterList;
31 class TemplateURLService;
32 35
33 namespace base { 36 namespace base {
34 class DictionaryValue; 37 class DictionaryValue;
35 } 38 }
36 39
37 namespace webkit { 40 namespace webkit {
38 struct WebPluginInfo; 41 struct WebPluginInfo;
39 } 42 }
40 43
41 // This is an automation provider containing testing calls. 44 // This is an automation provider containing testing calls.
42 class TestingAutomationProvider : public AutomationProvider, 45 class TestingAutomationProvider : public AutomationProvider,
43 public BrowserList::Observer, 46 public BrowserList::Observer,
44 public importer::ImporterListObserver, 47 public importer::ImporterListObserver,
45 #if defined(OS_CHROMEOS) 48 #if defined(OS_CHROMEOS)
46 public chromeos::PowerManagerClient::Observer, 49 public chromeos::PowerManagerClient::Observer,
47 #endif // defined(OS_CHROMEOS) 50 #endif // defined(OS_CHROMEOS)
48 public content::NotificationObserver { 51 public content::NotificationObserver {
49
50 public: 52 public:
51 explicit TestingAutomationProvider(Profile* profile); 53 explicit TestingAutomationProvider(Profile* profile);
52 54
53 virtual IPC::Channel::Mode GetChannelMode(bool use_named_interface); 55 virtual IPC::Channel::Mode GetChannelMode(bool use_named_interface);
54 56
55 // IPC::Channel::Listener: 57 // IPC::Channel::Listener:
56 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 58 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
57 virtual void OnChannelError() OVERRIDE; 59 virtual void OnChannelError() OVERRIDE;
58 60
59 private: 61 private:
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 260
259 // Responds to requests to find the location of the Find window. 261 // Responds to requests to find the location of the Find window.
260 void HandleFindWindowLocationRequest(int handle, int* x, int* y); 262 void HandleFindWindowLocationRequest(int handle, int* x, int* y);
261 263
262 // Get the visibility state of the Bookmark bar. 264 // Get the visibility state of the Bookmark bar.
263 void GetBookmarkBarVisibility( 265 void GetBookmarkBarVisibility(
264 int handle, bool* visible, bool* animating, bool* detached); 266 int handle, bool* visible, bool* animating, bool* detached);
265 267
266 // Get the bookmarks as a JSON string. 268 // Get the bookmarks as a JSON string.
267 void GetBookmarksAsJSON(int handle, std::string* bookmarks_as_json, 269 void GetBookmarksAsJSON(int handle, std::string* bookmarks_as_json,
268 bool *success); 270 bool* success);
269 271
270 // Wait for the bookmark model to load. 272 // Wait for the bookmark model to load.
271 void WaitForBookmarkModelToLoad(int handle, IPC::Message* reply_message); 273 void WaitForBookmarkModelToLoad(int handle, IPC::Message* reply_message);
272 274
273 // Set |loaded| to true if the bookmark model has loaded, else false. 275 // Set |loaded| to true if the bookmark model has loaded, else false.
274 void BookmarkModelHasLoaded(int handle, bool* loaded); 276 void BookmarkModelHasLoaded(int handle, bool* loaded);
275 277
276 // Editing, modification, and removal of bookmarks. 278 // Editing, modification, and removal of bookmarks.
277 // Bookmarks are referenced by id. 279 // Bookmarks are referenced by id.
278 void AddBookmarkGroup(int handle, 280 void AddBookmarkGroup(int handle,
(...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 // Used to enumerate browser profiles. 1400 // Used to enumerate browser profiles.
1399 scoped_refptr<ImporterList> importer_list_; 1401 scoped_refptr<ImporterList> importer_list_;
1400 1402
1401 // The stored data for the ImportSettings operation. 1403 // The stored data for the ImportSettings operation.
1402 ImportSettingsData import_settings_data_; 1404 ImportSettingsData import_settings_data_;
1403 1405
1404 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 1406 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
1405 }; 1407 };
1406 1408
1407 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 1409 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698