| 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 30 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 private: | 42 private: |
| 43 friend class content::BrowserThread; | 43 friend class content::BrowserThread; |
| 44 friend class base::DeleteHelper<ExtensionMessageFilter>; | 44 friend class base::DeleteHelper<ExtensionMessageFilter>; |
| 45 | 45 |
| 46 virtual ~ExtensionMessageFilter(); | 46 virtual ~ExtensionMessageFilter(); |
| 47 | 47 |
| 48 // content::BrowserMessageFilter implementation. | 48 // content::BrowserMessageFilter implementation. |
| 49 virtual void OverrideThreadForMessage( | 49 virtual void OverrideThreadForMessage( |
| 50 const IPC::Message& message, | 50 const IPC::Message& message, |
| 51 content::BrowserThread::ID* thread) OVERRIDE; | 51 content::BrowserThread::ID* thread) override; |
| 52 virtual void OnDestruct() const OVERRIDE; | 52 virtual void OnDestruct() const override; |
| 53 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 53 virtual bool OnMessageReceived(const IPC::Message& message) override; |
| 54 | 54 |
| 55 // Message handlers on the UI thread. | 55 // Message handlers on the UI thread. |
| 56 void OnExtensionAddListener(const std::string& extension_id, | 56 void OnExtensionAddListener(const std::string& extension_id, |
| 57 const GURL& listener_url, | 57 const GURL& listener_url, |
| 58 const std::string& event_name); | 58 const std::string& event_name); |
| 59 void OnExtensionRemoveListener(const std::string& extension_id, | 59 void OnExtensionRemoveListener(const std::string& extension_id, |
| 60 const GURL& listener_url, | 60 const GURL& listener_url, |
| 61 const std::string& event_name); | 61 const std::string& event_name); |
| 62 void OnExtensionAddLazyListener(const std::string& extension_id, | 62 void OnExtensionAddLazyListener(const std::string& extension_id, |
| 63 const std::string& event_name); | 63 const std::string& event_name); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 | 107 |
| 108 // Weak pointers produced by this factory are bound to the IO thread. | 108 // Weak pointers produced by this factory are bound to the IO thread. |
| 109 base::WeakPtrFactory<ExtensionMessageFilter> weak_ptr_factory_; | 109 base::WeakPtrFactory<ExtensionMessageFilter> weak_ptr_factory_; |
| 110 | 110 |
| 111 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageFilter); | 111 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageFilter); |
| 112 }; | 112 }; |
| 113 | 113 |
| 114 } // namespace extensions | 114 } // namespace extensions |
| 115 | 115 |
| 116 #endif // EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_ | 116 #endif // EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_ |
| OLD | NEW |