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

Side by Side Diff: chrome/browser/extensions/extension_message_service.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 const std::string& tab_json, 127 const std::string& tab_json,
128 const MessagePort& receiver, int receiver_port_id, 128 const MessagePort& receiver, int receiver_port_id,
129 const std::string& source_extension_id, 129 const std::string& source_extension_id,
130 const std::string& target_extension_id, 130 const std::string& target_extension_id,
131 const std::string& channel_name); 131 const std::string& channel_name);
132 132
133 void CloseChannelImpl(MessageChannelMap::iterator channel_iter, int port_id, 133 void CloseChannelImpl(MessageChannelMap::iterator channel_iter, int port_id,
134 bool notify_other_port); 134 bool notify_other_port);
135 135
136 // NotificationObserver interface. 136 // NotificationObserver interface.
137 virtual void Observe(NotificationType type, 137 virtual void Observe(int type,
138 const NotificationSource& source, 138 const NotificationSource& source,
139 const NotificationDetails& details); 139 const NotificationDetails& details);
140 140
141 // An IPC sender that might be in our list of channels has closed. 141 // An IPC sender that might be in our list of channels has closed.
142 void OnSenderClosed(IPC::Message::Sender* sender); 142 void OnSenderClosed(IPC::Message::Sender* sender);
143 143
144 Profile* profile_; 144 Profile* profile_;
145 145
146 NotificationRegistrar registrar_; 146 NotificationRegistrar registrar_;
147 147
148 MessageChannelMap channels_; 148 MessageChannelMap channels_;
149 149
150 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageService); 150 DISALLOW_COPY_AND_ASSIGN(ExtensionMessageService);
151 }; 151 };
152 152
153 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_ 153 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MESSAGE_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_menu_manager_unittest.cc ('k') | chrome/browser/extensions/extension_message_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698