| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 // content::BrowserMessageFilter implementation: | 48 // content::BrowserMessageFilter implementation: |
| 49 void OverrideThreadForMessage(const IPC::Message& message, | 49 void OverrideThreadForMessage(const IPC::Message& message, |
| 50 content::BrowserThread::ID* thread) override; | 50 content::BrowserThread::ID* thread) override; |
| 51 void OnDestruct() const override; | 51 void OnDestruct() const override; |
| 52 bool OnMessageReceived(const IPC::Message& message) override; | 52 bool OnMessageReceived(const IPC::Message& message) override; |
| 53 | 53 |
| 54 // Message handlers on the UI thread. | 54 // Message handlers on the UI thread. |
| 55 void OnExtensionAddListener(const std::string& extension_id, | 55 void OnExtensionAddListener(const std::string& extension_id, |
| 56 const GURL& listener_url, | 56 const GURL& listener_url, |
| 57 const std::string& event_name); | 57 const std::string& event_name, |
| 58 int worker_thread_id); |
| 58 void OnExtensionRemoveListener(const std::string& extension_id, | 59 void OnExtensionRemoveListener(const std::string& extension_id, |
| 59 const GURL& listener_url, | 60 const GURL& listener_url, |
| 60 const std::string& event_name); | 61 const std::string& event_name, |
| 62 int worker_thread_id); |
| 61 void OnExtensionAddLazyListener(const std::string& extension_id, | 63 void OnExtensionAddLazyListener(const std::string& extension_id, |
| 62 const std::string& event_name); | 64 const std::string& event_name, |
| 65 int worker_thread_id); |
| 63 void OnExtensionRemoveLazyListener(const std::string& extension_id, | 66 void OnExtensionRemoveLazyListener(const std::string& extension_id, |
| 64 const std::string& event_name); | 67 const std::string& event_name, |
| 68 int worker_thread_id); |
| 65 void OnExtensionAddFilteredListener(const std::string& extension_id, | 69 void OnExtensionAddFilteredListener(const std::string& extension_id, |
| 66 const std::string& event_name, | 70 const std::string& event_name, |
| 67 const base::DictionaryValue& filter, | 71 const base::DictionaryValue& filter, |
| 68 bool lazy); | 72 bool lazy); |
| 69 void OnExtensionRemoveFilteredListener(const std::string& extension_id, | 73 void OnExtensionRemoveFilteredListener(const std::string& extension_id, |
| 70 const std::string& event_name, | 74 const std::string& event_name, |
| 71 const base::DictionaryValue& filter, | 75 const base::DictionaryValue& filter, |
| 72 bool lazy); | 76 bool lazy); |
| 73 void OnExtensionShouldSuspendAck(const std::string& extension_id, | 77 void OnExtensionShouldSuspendAck(const std::string& extension_id, |
| 74 int sequence_id); | 78 int sequence_id); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 87 | 91 |
| 88 // Only access from the UI thread. | 92 // Only access from the UI thread. |
| 89 content::BrowserContext* browser_context_; | 93 content::BrowserContext* browser_context_; |
| 90 | 94 |
| 91 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageFilter); | 95 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageFilter); |
| 92 }; | 96 }; |
| 93 | 97 |
| 94 } // namespace extensions | 98 } // namespace extensions |
| 95 | 99 |
| 96 #endif // EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_ | 100 #endif // EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_ |
| OLD | NEW |