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

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

Issue 7976016: New pyauto automation hook to get browser process information. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor style edit. 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_AUTOMATION_PROVIDER_OBSERVERS_H_ 5 #ifndef CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 6 #define CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 19 matching lines...) Expand all
30 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_view.h" 30 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_view.h"
31 #include "chrome/browser/chromeos/login/login_status_consumer.h" 31 #include "chrome/browser/chromeos/login/login_status_consumer.h"
32 #include "chrome/browser/chromeos/login/user_manager.h" 32 #include "chrome/browser/chromeos/login/user_manager.h"
33 #include "chrome/browser/chromeos/login/wizard_controller.h" 33 #include "chrome/browser/chromeos/login/wizard_controller.h"
34 #include "chrome/browser/chromeos/options/take_photo_dialog.h" 34 #include "chrome/browser/chromeos/options/take_photo_dialog.h"
35 #endif // defined(OS_CHROMEOS) 35 #endif // defined(OS_CHROMEOS)
36 #include "chrome/browser/history/history.h" 36 #include "chrome/browser/history/history.h"
37 #include "chrome/browser/history/history_types.h" 37 #include "chrome/browser/history/history_types.h"
38 #include "chrome/browser/importer/importer_data_types.h" 38 #include "chrome/browser/importer/importer_data_types.h"
39 #include "chrome/browser/importer/importer_progress_observer.h" 39 #include "chrome/browser/importer/importer_progress_observer.h"
40 #include "chrome/browser/memory_details.h"
40 #include "chrome/browser/password_manager/password_store_change.h" 41 #include "chrome/browser/password_manager/password_store_change.h"
41 #include "chrome/browser/password_manager/password_store_consumer.h" 42 #include "chrome/browser/password_manager/password_store_consumer.h"
42 #include "chrome/browser/policy/browser_policy_connector.h" 43 #include "chrome/browser/policy/browser_policy_connector.h"
43 #include "chrome/browser/policy/cloud_policy_subsystem.h" 44 #include "chrome/browser/policy/cloud_policy_subsystem.h"
44 #include "chrome/browser/search_engines/template_url_service_observer.h" 45 #include "chrome/browser/search_engines/template_url_service_observer.h"
45 #include "chrome/browser/tabs/tab_strip_model.h" 46 #include "chrome/browser/tabs/tab_strip_model.h"
46 #include "chrome/common/automation_constants.h" 47 #include "chrome/common/automation_constants.h"
47 #include "chrome/common/extensions/extension_constants.h" 48 #include "chrome/common/extensions/extension_constants.h"
48 #include "content/browser/cancelable_request.h" 49 #include "content/browser/cancelable_request.h"
49 #include "content/browser/download/download_item.h" 50 #include "content/browser/download/download_item.h"
(...skipping 1650 matching lines...) Expand 10 before | Expand all | Expand 10 after
1700 const NotificationDetails& details); 1701 const NotificationDetails& details);
1701 1702
1702 private: 1703 private:
1703 NotificationRegistrar registrar_; 1704 NotificationRegistrar registrar_;
1704 base::WeakPtr<AutomationProvider> automation_; 1705 base::WeakPtr<AutomationProvider> automation_;
1705 scoped_ptr<IPC::Message> reply_message_; 1706 scoped_ptr<IPC::Message> reply_message_;
1706 1707
1707 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver); 1708 DISALLOW_COPY_AND_ASSIGN(DragTargetDropAckNotificationObserver);
1708 }; 1709 };
1709 1710
1711 // Allows the automation provider to wait for process memory details to be
1712 // available before sending this information to the client.
1713 class ProcessInfoObserver : public MemoryDetails {
1714 public:
1715 ProcessInfoObserver(AutomationProvider* automation,
1716 IPC::Message* reply_message);
1717
1718 virtual void OnDetailsAvailable() OVERRIDE;
1719
1720 private:
1721 ~ProcessInfoObserver() {}
1722 base::WeakPtr<AutomationProvider> automation_;
1723 scoped_ptr<IPC::Message> reply_message_;
1724
1725 DISALLOW_COPY_AND_ASSIGN(ProcessInfoObserver);
1726 };
1727
1710 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_ 1728 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_OBSERVERS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/automation/automation_provider_observers.cc » ('j') | chrome/test/pyautolib/pyauto.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698