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 #include <vector> |
9 | 10 |
10 #include "base/macros.h" | 11 #include "base/macros.h" |
11 #include "base/sequenced_task_runner_helpers.h" | 12 #include "base/sequenced_task_runner_helpers.h" |
12 #include "content/public/browser/browser_message_filter.h" | 13 #include "content/public/browser/browser_message_filter.h" |
13 #include "content/public/browser/notification_observer.h" | 14 #include "content/public/browser/notification_observer.h" |
14 #include "content/public/browser/notification_registrar.h" | 15 #include "content/public/browser/notification_registrar.h" |
15 | 16 |
16 class Profile; | 17 class Profile; |
17 struct ExtensionHostMsg_APIActionOrEvent_Params; | 18 struct ExtensionHostMsg_APIActionOrEvent_Params; |
18 struct ExtensionHostMsg_DOMAction_Params; | 19 struct ExtensionHostMsg_DOMAction_Params; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 const extensions::PortId& port_id); | 65 const extensions::PortId& port_id); |
65 void OnOpenMessagePort(int routing_id, const extensions::PortId& port_id); | 66 void OnOpenMessagePort(int routing_id, const extensions::PortId& port_id); |
66 void OnCloseMessagePort(int routing_id, | 67 void OnCloseMessagePort(int routing_id, |
67 const extensions::PortId& port_id, | 68 const extensions::PortId& port_id, |
68 bool force_close); | 69 bool force_close); |
69 void OnPostMessage(const extensions::PortId& port_id, | 70 void OnPostMessage(const extensions::PortId& port_id, |
70 const extensions::Message& message); | 71 const extensions::Message& message); |
71 void OnGetExtMessageBundle(const std::string& extension_id, | 72 void OnGetExtMessageBundle(const std::string& extension_id, |
72 IPC::Message* reply_msg); | 73 IPC::Message* reply_msg); |
73 void OnGetExtMessageBundleOnBlockingPool( | 74 void OnGetExtMessageBundleOnBlockingPool( |
74 const std::string& extension_id, | 75 const std::vector<base::FilePath>& extension_paths, |
| 76 const std::string& main_extension_id, |
| 77 const std::string& default_locale, |
75 IPC::Message* reply_msg); | 78 IPC::Message* reply_msg); |
76 void OnAddAPIActionToExtensionActivityLog( | 79 void OnAddAPIActionToExtensionActivityLog( |
77 const std::string& extension_id, | 80 const std::string& extension_id, |
78 const ExtensionHostMsg_APIActionOrEvent_Params& params); | 81 const ExtensionHostMsg_APIActionOrEvent_Params& params); |
79 void OnAddBlockedCallToExtensionActivityLog( | 82 void OnAddBlockedCallToExtensionActivityLog( |
80 const std::string& extension_id, | 83 const std::string& extension_id, |
81 const std::string& function_name); | 84 const std::string& function_name); |
82 void OnAddDOMActionToExtensionActivityLog( | 85 void OnAddDOMActionToExtensionActivityLog( |
83 const std::string& extension_id, | 86 const std::string& extension_id, |
84 const ExtensionHostMsg_DOMAction_Params& params); | 87 const ExtensionHostMsg_DOMAction_Params& params); |
(...skipping 22 matching lines...) Expand all Loading... |
107 extensions::ActivityLog* activity_log_; | 110 extensions::ActivityLog* activity_log_; |
108 | 111 |
109 scoped_refptr<extensions::InfoMap> extension_info_map_; | 112 scoped_refptr<extensions::InfoMap> extension_info_map_; |
110 | 113 |
111 content::NotificationRegistrar notification_registrar_; | 114 content::NotificationRegistrar notification_registrar_; |
112 | 115 |
113 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionMessageFilter); | 116 DISALLOW_COPY_AND_ASSIGN(ChromeExtensionMessageFilter); |
114 }; | 117 }; |
115 | 118 |
116 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ | 119 #endif // CHROME_BROWSER_RENDERER_HOST_CHROME_EXTENSION_MESSAGE_FILTER_H_ |
OLD | NEW |