| OLD | NEW |
| 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" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 public ImporterList::Observer, | 26 public ImporterList::Observer, |
| 27 public NotificationObserver { | 27 public NotificationObserver { |
| 28 public: | 28 public: |
| 29 explicit TestingAutomationProvider(Profile* profile); | 29 explicit TestingAutomationProvider(Profile* profile); |
| 30 | 30 |
| 31 // BrowserList::Observer implementation. | 31 // BrowserList::Observer implementation. |
| 32 virtual void OnBrowserAdded(const Browser* browser); | 32 virtual void OnBrowserAdded(const Browser* browser); |
| 33 virtual void OnBrowserRemoved(const Browser* browser); | 33 virtual void OnBrowserRemoved(const Browser* browser); |
| 34 | 34 |
| 35 // IPC::Channel::Listener implementation. | 35 // IPC::Channel::Listener implementation. |
| 36 virtual void OnMessageReceived(const IPC::Message& msg); | 36 virtual bool OnMessageReceived(const IPC::Message& msg); |
| 37 virtual void OnChannelError(); | 37 virtual void OnChannelError(); |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 class PopupMenuWaiter; | 40 class PopupMenuWaiter; |
| 41 | 41 |
| 42 // Storage for ImportSettings() to resume operations after a callback. | 42 // Storage for ImportSettings() to resume operations after a callback. |
| 43 struct ImportSettingsData { | 43 struct ImportSettingsData { |
| 44 string16 browser_name; | 44 string16 browser_name; |
| 45 int import_items; | 45 int import_items; |
| 46 bool first_run; | 46 bool first_run; |
| (...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 806 // Used to import settings from browser profiles. | 806 // Used to import settings from browser profiles. |
| 807 scoped_refptr<ImporterHost> importer_host_; | 807 scoped_refptr<ImporterHost> importer_host_; |
| 808 | 808 |
| 809 // The stored data for the ImportSettings operation. | 809 // The stored data for the ImportSettings operation. |
| 810 ImportSettingsData import_settings_data_; | 810 ImportSettingsData import_settings_data_; |
| 811 | 811 |
| 812 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 812 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
| 813 }; | 813 }; |
| 814 | 814 |
| 815 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 815 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |