| 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 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 int render_process_id() { return render_process_id_; } | 37 int render_process_id() { return render_process_id_; } |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 virtual ~ExtensionMessageFilter(); | 40 virtual ~ExtensionMessageFilter(); |
| 41 | 41 |
| 42 // content::BrowserMessageFilter implementation. | 42 // content::BrowserMessageFilter implementation. |
| 43 virtual void OverrideThreadForMessage( | 43 virtual void OverrideThreadForMessage( |
| 44 const IPC::Message& message, | 44 const IPC::Message& message, |
| 45 content::BrowserThread::ID* thread) OVERRIDE; | 45 content::BrowserThread::ID* thread) OVERRIDE; |
| 46 virtual bool OnMessageReceived(const IPC::Message& message, | 46 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 47 bool* message_was_ok) OVERRIDE; | |
| 48 | 47 |
| 49 // Message handlers on the UI thread. | 48 // Message handlers on the UI thread. |
| 50 void OnExtensionAddListener(const std::string& extension_id, | 49 void OnExtensionAddListener(const std::string& extension_id, |
| 51 const std::string& event_name); | 50 const std::string& event_name); |
| 52 void OnExtensionRemoveListener(const std::string& extension_id, | 51 void OnExtensionRemoveListener(const std::string& extension_id, |
| 53 const std::string& event_name); | 52 const std::string& event_name); |
| 54 void OnExtensionAddLazyListener(const std::string& extension_id, | 53 void OnExtensionAddLazyListener(const std::string& extension_id, |
| 55 const std::string& event_name); | 54 const std::string& event_name); |
| 56 void OnExtensionRemoveLazyListener(const std::string& extension_id, | 55 void OnExtensionRemoveLazyListener(const std::string& extension_id, |
| 57 const std::string& event_name); | 56 const std::string& event_name); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 82 scoped_refptr<extensions::InfoMap> extension_info_map_; | 81 scoped_refptr<extensions::InfoMap> extension_info_map_; |
| 83 | 82 |
| 84 base::WeakPtrFactory<ExtensionMessageFilter> weak_ptr_factory_; | 83 base::WeakPtrFactory<ExtensionMessageFilter> weak_ptr_factory_; |
| 85 | 84 |
| 86 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageFilter); | 85 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageFilter); |
| 87 }; | 86 }; |
| 88 | 87 |
| 89 } // namespace extensions | 88 } // namespace extensions |
| 90 | 89 |
| 91 #endif // EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_ | 90 #endif // EXTENSIONS_BROWSER_EXTENSION_MESSAGE_FILTER_H_ |
| OLD | NEW |