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

Side by Side Diff: ipc/ipc_channel_proxy.h

Issue 7661031: Tag IPC::Channel::Listener implementations with OVERRIDE (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
« no previous file with comments | « ipc/ipc_channel_posix_unittest.cc ('k') | ipc/ipc_tests.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 IPC_IPC_CHANNEL_PROXY_H_ 5 #ifndef IPC_IPC_CHANNEL_PROXY_H_
6 #define IPC_IPC_CHANNEL_PROXY_H_ 6 #define IPC_IPC_CHANNEL_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 const std::string& channel_id() const { return channel_id_; } 184 const std::string& channel_id() const { return channel_id_; }
185 185
186 // Dispatches a message on the listener thread. 186 // Dispatches a message on the listener thread.
187 void OnDispatchMessage(const Message& message); 187 void OnDispatchMessage(const Message& message);
188 188
189 protected: 189 protected:
190 friend class base::RefCountedThreadSafe<Context>; 190 friend class base::RefCountedThreadSafe<Context>;
191 virtual ~Context(); 191 virtual ~Context();
192 192
193 // IPC::Channel::Listener methods: 193 // IPC::Channel::Listener methods:
194 virtual bool OnMessageReceived(const Message& message); 194 virtual bool OnMessageReceived(const Message& message) OVERRIDE;
195 virtual void OnChannelConnected(int32 peer_pid); 195 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
196 virtual void OnChannelError(); 196 virtual void OnChannelError() OVERRIDE;
197 197
198 // Like OnMessageReceived but doesn't try the filters. 198 // Like OnMessageReceived but doesn't try the filters.
199 bool OnMessageReceivedNoFilter(const Message& message); 199 bool OnMessageReceivedNoFilter(const Message& message);
200 200
201 // Gives the filters a chance at processing |message|. 201 // Gives the filters a chance at processing |message|.
202 // Returns true if the message was processed, false otherwise. 202 // Returns true if the message was processed, false otherwise.
203 bool TryFilters(const Message& message); 203 bool TryFilters(const Message& message);
204 204
205 // Like Open and Close, but called on the IPC thread. 205 // Like Open and Close, but called on the IPC thread.
206 virtual void OnChannelOpened(); 206 virtual void OnChannelOpened();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 // can safely be destroyed while the background thread continues to do stuff 263 // can safely be destroyed while the background thread continues to do stuff
264 // that involves this data. 264 // that involves this data.
265 scoped_refptr<Context> context_; 265 scoped_refptr<Context> context_;
266 266
267 OutgoingMessageFilter* outgoing_message_filter_; 267 OutgoingMessageFilter* outgoing_message_filter_;
268 }; 268 };
269 269
270 } // namespace IPC 270 } // namespace IPC
271 271
272 #endif // IPC_IPC_CHANNEL_PROXY_H_ 272 #endif // IPC_IPC_CHANNEL_PROXY_H_
OLDNEW
« no previous file with comments | « ipc/ipc_channel_posix_unittest.cc ('k') | ipc/ipc_tests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698