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

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

Issue 5648004: Add the "virtual" keyword on method overrides that are missing it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing file Created 10 years 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 void Observe(NotificationType type, 137 virtual void Observe(NotificationType 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_browser_event_router.h ('k') | chrome/browser/extensions/extensions_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698