Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(257)

Side by Side Diff: extensions/browser/extension_message_filter.h

Issue 292443004: Remove IPC_BEGIN_MESSAGE_MAP_EX macro since r270839 made all bad IPCs kill their child processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/shell/browser/shell_message_filter.cc ('k') | extensions/browser/extension_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698