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

Side by Side Diff: chrome/service/service_ipc_server.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 | « chrome/nacl/broker_thread.h ('k') | chrome_frame/cfproxy_private.h » ('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 CHROME_SERVICE_SERVICE_IPC_SERVER_H_ 5 #ifndef CHROME_SERVICE_SERVICE_IPC_SERVER_H_
6 #define CHROME_SERVICE_SERVICE_IPC_SERVER_H_ 6 #define CHROME_SERVICE_SERVICE_IPC_SERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 17 matching lines...) Expand all
28 IPC::SyncChannel* channel() { return channel_.get(); } 28 IPC::SyncChannel* channel() { return channel_.get(); }
29 29
30 // Safe to call on any thread, as long as it's guaranteed that the thread's 30 // Safe to call on any thread, as long as it's guaranteed that the thread's
31 // lifetime is less than the main thread. 31 // lifetime is less than the main thread.
32 IPC::SyncMessageFilter* sync_message_filter() { return sync_message_filter_; } 32 IPC::SyncMessageFilter* sync_message_filter() { return sync_message_filter_; }
33 33
34 bool is_client_connected() const { return client_connected_; } 34 bool is_client_connected() const { return client_connected_; }
35 35
36 36
37 private: 37 private:
38 // IPC::Channel::Listener implementation: 38 // IPC::Channel::Listener implementation.
39 virtual bool OnMessageReceived(const IPC::Message& msg); 39 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
40 virtual void OnChannelConnected(int32 peer_pid); 40 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
41 virtual void OnChannelError(); 41 virtual void OnChannelError() OVERRIDE;
42 42
43 // IPC message handlers. 43 // IPC message handlers.
44 void OnEnableCloudPrintProxy(const std::string& lsid); 44 void OnEnableCloudPrintProxy(const std::string& lsid);
45 void OnEnableCloudPrintProxyWithRobot( 45 void OnEnableCloudPrintProxyWithRobot(
46 const std::string& robot_auth_code, 46 const std::string& robot_auth_code,
47 const std::string& robot_email, 47 const std::string& robot_email,
48 const std::string& user_email); 48 const std::string& user_email);
49 void OnGetCloudPrintProxyInfo(); 49 void OnGetCloudPrintProxyInfo();
50 void OnDisableCloudPrintProxy(); 50 void OnDisableCloudPrintProxy();
51 void OnEnableVirtualDriver(); 51 void OnEnableVirtualDriver();
(...skipping 11 matching lines...) Expand all
63 bool client_connected_; 63 bool client_connected_;
64 64
65 // Allows threads other than the main thread to send sync messages. 65 // Allows threads other than the main thread to send sync messages.
66 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; 66 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
67 67
68 68
69 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer); 69 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer);
70 }; 70 };
71 71
72 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_ 72 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_
OLDNEW
« no previous file with comments | « chrome/nacl/broker_thread.h ('k') | chrome_frame/cfproxy_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698