OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ |
6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/sequenced_task_runner_helpers.h" | 11 #include "base/sequenced_task_runner_helpers.h" |
12 #include "content/public/browser/browser_message_filter.h" | 12 #include "content/public/browser/browser_message_filter.h" |
13 #include "content/public/browser/notification_observer.h" | 13 #include "content/public/browser/notification_observer.h" |
14 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
15 | 15 |
16 class GURL; | |
17 class Profile; | 16 class Profile; |
18 struct ExtensionHostMsg_APIActionOrEvent_Params; | 17 struct ExtensionHostMsg_APIActionOrEvent_Params; |
19 struct ExtensionHostMsg_DOMAction_Params; | 18 struct ExtensionHostMsg_DOMAction_Params; |
20 struct ExtensionMsg_ExternalConnectionInfo; | 19 struct ExtensionMsg_ExternalConnectionInfo; |
21 struct ExtensionMsg_TabTargetConnectionInfo; | 20 struct ExtensionMsg_TabTargetConnectionInfo; |
22 | 21 |
23 namespace base { | |
24 class FilePath; | |
25 } | |
26 | |
27 namespace extensions { | 22 namespace extensions { |
28 class ActivityLog; | 23 class ActivityLog; |
29 class InfoMap; | 24 class InfoMap; |
30 struct Message; | 25 struct Message; |
31 } | 26 } |
32 | 27 |
33 // This class filters out incoming Chrome-specific IPC messages from the | 28 // This class filters out incoming Chrome-specific IPC messages from the |
34 // extension process on the IPC thread. | 29 // extension process on the IPC thread. |
35 class ChromeExtensionMessageFilter : public content::BrowserMessageFilter, | 30 class ChromeExtensionMessageFilter : public content::BrowserMessageFilter, |
36 public content::NotificationObserver { | 31 public content::NotificationObserver { |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 extensions::ActivityLog* activity_log_; | 126 extensions::ActivityLog* activity_log_; |
132 | 127 |
133 scoped_refptr<extensions::InfoMap> extension_info_map_; | 128 scoped_refptr<extensions::InfoMap> extension_info_map_; |
134 | 129 |
135 content::NotificationRegistrar notification_registrar_; | 130 content::NotificationRegistrar notification_registrar_; |
136 | 131 |
137 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionMessageFilter); | 132 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionMessageFilter); |
138 }; | 133 }; |
139 | 134 |
140 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ | 135 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ |
OLD | NEW |