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

Side by Side Diff: chrome/browser/extensions/api/automation_internal/automation_event_router.h

Issue 2530053003: chrome: Cleanup class/struct forward declarations (Closed)
Patch Set: Rebase + address comment Created 4 years 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_EVENT_ROUTE R_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_EVENT_ROUTE R_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_EVENT_ROUTE R_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_EVENT_ROUTE R_H_
7 7
8 #include <set> 8 #include <set>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/singleton.h" 12 #include "base/memory/singleton.h"
13 #include "chrome/common/extensions/api/automation_internal.h" 13 #include "chrome/common/extensions/api/automation_internal.h"
14 #include "content/public/browser/ax_event_notification_details.h" 14 #include "content/public/browser/ax_event_notification_details.h"
15 #include "content/public/browser/notification_observer.h" 15 #include "content/public/browser/notification_observer.h"
16 #include "content/public/browser/notification_registrar.h" 16 #include "content/public/browser/notification_registrar.h"
17 #include "extensions/common/extension_id.h" 17 #include "extensions/common/extension_id.h"
18 18
19 class Profile; 19 class Profile;
20 20
21 namespace content { 21 namespace content {
22 class BrowserContext; 22 class BrowserContext;
23 } // namespace content 23 } // namespace content
24 24
25 struct ExtensionMsg_AccessibilityEventParams; 25 struct ExtensionMsg_AccessibilityEventParams;
26 struct ExtensionMsg_AccessibilityLocationChangeParams; 26 struct ExtensionMsg_AccessibilityLocationChangeParams;
27 27
28 namespace extensions { 28 namespace extensions {
29 struct AutomationListener; 29 struct AutomationListener;
30 class Extension;
31 30
32 class AutomationEventRouter : public content::NotificationObserver { 31 class AutomationEventRouter : public content::NotificationObserver {
33 public: 32 public:
34 static AutomationEventRouter* GetInstance(); 33 static AutomationEventRouter* GetInstance();
35 34
36 // Indicates that the listener at |listener_process_id|, |listener_routing_id| 35 // Indicates that the listener at |listener_process_id|, |listener_routing_id|
37 // wants to receive automation events from the accessibility tree indicated 36 // wants to receive automation events from the accessibility tree indicated
38 // by |source_ax_tree_id|. Automation events are forwarded from now on 37 // by |source_ax_tree_id|. Automation events are forwarded from now on
39 // until the listener process dies. 38 // until the listener process dies.
40 void RegisterListenerForOneTree(const ExtensionId& extension_id, 39 void RegisterListenerForOneTree(const ExtensionId& extension_id,
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 Profile* active_profile_; 107 Profile* active_profile_;
109 108
110 friend struct base::DefaultSingletonTraits<AutomationEventRouter>; 109 friend struct base::DefaultSingletonTraits<AutomationEventRouter>;
111 110
112 DISALLOW_COPY_AND_ASSIGN(AutomationEventRouter); 111 DISALLOW_COPY_AND_ASSIGN(AutomationEventRouter);
113 }; 112 };
114 113
115 } // namespace extensions 114 } // namespace extensions
116 115
117 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_EVENT_RO UTER_H_ 116 #endif // CHROME_BROWSER_EXTENSIONS_API_AUTOMATION_INTERNAL_AUTOMATION_EVENT_RO UTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698