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 EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_ | 5 #ifndef EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_ |
6 #define EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_ | 6 #define EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 void OnExtensionRemoveFilteredListener(const std::string& extension_id, | 73 void OnExtensionRemoveFilteredListener(const std::string& extension_id, |
74 const std::string& event_name, | 74 const std::string& event_name, |
75 const base::DictionaryValue& filter, | 75 const base::DictionaryValue& filter, |
76 bool lazy); | 76 bool lazy); |
77 void OnExtensionShouldSuspendAck(const std::string& extension_id, | 77 void OnExtensionShouldSuspendAck(const std::string& extension_id, |
78 int sequence_id); | 78 int sequence_id); |
79 void OnExtensionSuspendAck(const std::string& extension_id); | 79 void OnExtensionSuspendAck(const std::string& extension_id); |
80 void OnExtensionTransferBlobsAck(const std::vector<std::string>& blob_uuids); | 80 void OnExtensionTransferBlobsAck(const std::vector<std::string>& blob_uuids); |
81 void OnExtensionWakeEventPage(int request_id, | 81 void OnExtensionWakeEventPage(int request_id, |
82 const std::string& extension_id); | 82 const std::string& extension_id); |
| 83 void OnExtensionNotifyBadExtensionApiSchema(const std::string& api); |
83 | 84 |
84 // Responds to the ExtensionHostMsg_WakeEventPage message. | 85 // Responds to the ExtensionHostMsg_WakeEventPage message. |
85 void SendWakeEventPageResponse(int request_id, bool success); | 86 void SendWakeEventPageResponse(int request_id, bool success); |
86 | 87 |
87 const int render_process_id_; | 88 const int render_process_id_; |
88 | 89 |
89 std::unique_ptr<KeyedServiceShutdownNotifier::Subscription> | 90 std::unique_ptr<KeyedServiceShutdownNotifier::Subscription> |
90 shutdown_notifier_; | 91 shutdown_notifier_; |
91 | 92 |
92 // Only access from the UI thread. | 93 // Only access from the UI thread. |
93 content::BrowserContext* browser_context_; | 94 content::BrowserContext* browser_context_; |
94 | 95 |
95 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageFilter); | 96 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageFilter); |
96 }; | 97 }; |
97 | 98 |
98 } // namespace extensions | 99 } // namespace extensions |
99 | 100 |
100 #endif // EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_ | 101 #endif // EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_ |
OLD | NEW |