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

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

Issue 7980011: Convert the PluginService interface to be an async wrapper around PluginList. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Revert to PS3 and rebase Created 9 years, 3 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 | 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 <string> 9 #include <string>
10 10
(...skipping 10 matching lines...) Expand all
21 #include "content/common/page_type.h" 21 #include "content/common/page_type.h"
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h"
23 23
24 class ImporterList; 24 class ImporterList;
25 class TemplateURLService; 25 class TemplateURLService;
26 26
27 namespace base { 27 namespace base {
28 class DictionaryValue; 28 class DictionaryValue;
29 } 29 }
30 30
31 namespace webkit {
32 struct WebPluginInfo;
33 }
34
31 // This is an automation provider containing testing calls. 35 // This is an automation provider containing testing calls.
32 class TestingAutomationProvider : public AutomationProvider, 36 class TestingAutomationProvider : public AutomationProvider,
33 public BrowserList::Observer, 37 public BrowserList::Observer,
34 public importer::ImporterListObserver, 38 public importer::ImporterListObserver,
35 public NotificationObserver { 39 public NotificationObserver {
36 public: 40 public:
37 explicit TestingAutomationProvider(Profile* profile); 41 explicit TestingAutomationProvider(Profile* profile);
38 42
39 virtual IPC::Channel::Mode GetChannelMode(bool use_named_interface); 43 virtual IPC::Channel::Mode GetChannelMode(bool use_named_interface);
40 44
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 // for example response. 489 // for example response.
486 void GetInitialLoadTimes(Browser* browser, 490 void GetInitialLoadTimes(Browser* browser,
487 base::DictionaryValue* args, 491 base::DictionaryValue* args,
488 IPC::Message* reply_message); 492 IPC::Message* reply_message);
489 493
490 // Get info about plugins. 494 // Get info about plugins.
491 // Uses the JSON interface for input/output. 495 // Uses the JSON interface for input/output.
492 void GetPluginsInfo(Browser* browser, 496 void GetPluginsInfo(Browser* browser,
493 base::DictionaryValue* args, 497 base::DictionaryValue* args,
494 IPC::Message* reply_message); 498 IPC::Message* reply_message);
499 void GetPluginsInfoCallback(Browser* browser,
500 base::DictionaryValue* args,
501 IPC::Message* reply_message,
502 const std::vector<webkit::WebPluginInfo>& plugins);
495 503
496 // Enable a plugin. 504 // Enable a plugin.
497 // Uses the JSON interface for input/output. 505 // Uses the JSON interface for input/output.
498 void EnablePlugin(Browser* browser, 506 void EnablePlugin(Browser* browser,
499 base::DictionaryValue* args, 507 base::DictionaryValue* args,
500 IPC::Message* reply_message); 508 IPC::Message* reply_message);
501 509
502 // Disable a plugin. 510 // Disable a plugin.
503 // Uses the JSON interface for input/output. 511 // Uses the JSON interface for input/output.
504 void DisablePlugin(Browser* browser, 512 void DisablePlugin(Browser* browser,
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
1342 // Used to enumerate browser profiles. 1350 // Used to enumerate browser profiles.
1343 scoped_refptr<ImporterList> importer_list_; 1351 scoped_refptr<ImporterList> importer_list_;
1344 1352
1345 // The stored data for the ImportSettings operation. 1353 // The stored data for the ImportSettings operation.
1346 ImportSettingsData import_settings_data_; 1354 ImportSettingsData import_settings_data_;
1347 1355
1348 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); 1356 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider);
1349 }; 1357 };
1350 1358
1351 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ 1359 #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/browser/pdf_unsupported_feature.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698