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

Side by Side Diff: chrome/service/service_ipc_server.h

Issue 5978003: Make IPC::Channel::Listener:OnMessageReceived have a return value indicating ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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
« no previous file with comments | « chrome/renderer/webworker_proxy.cc ('k') | chrome/service/service_ipc_server.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) 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_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/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 17 matching lines...) Expand all
28 28
29 // Safe to call on any thread, as long as it's guaranteed that the thread's 29 // Safe to call on any thread, as long as it's guaranteed that the thread's
30 // lifetime is less than the main thread. 30 // lifetime is less than the main thread.
31 IPC::SyncMessageFilter* sync_message_filter() { return sync_message_filter_; } 31 IPC::SyncMessageFilter* sync_message_filter() { return sync_message_filter_; }
32 32
33 bool is_client_connected() const { return client_connected_; } 33 bool is_client_connected() const { return client_connected_; }
34 34
35 35
36 private: 36 private:
37 // IPC::Channel::Listener implementation: 37 // IPC::Channel::Listener implementation:
38 virtual void OnMessageReceived(const IPC::Message& msg); 38 virtual bool OnMessageReceived(const IPC::Message& msg);
39 virtual void OnChannelConnected(int32 peer_pid); 39 virtual void OnChannelConnected(int32 peer_pid);
40 virtual void OnChannelError(); 40 virtual void OnChannelError();
41 41
42 // IPC message handlers. 42 // IPC message handlers.
43 void OnEnableCloudPrintProxy(const std::string& lsid); 43 void OnEnableCloudPrintProxy(const std::string& lsid);
44 void OnEnableCloudPrintProxyWithTokens(const std::string& cloud_print_token, 44 void OnEnableCloudPrintProxyWithTokens(const std::string& cloud_print_token,
45 const std::string& talk_token); 45 const std::string& talk_token);
46 void OnIsCloudPrintProxyEnabled(); 46 void OnIsCloudPrintProxyEnabled();
47 void OnDisableCloudPrintProxy(); 47 void OnDisableCloudPrintProxy();
48 48
(...skipping 18 matching lines...) Expand all
67 bool client_connected_; 67 bool client_connected_;
68 68
69 // Allows threads other than the main thread to send sync messages. 69 // Allows threads other than the main thread to send sync messages.
70 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; 70 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
71 71
72 72
73 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer); 73 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer);
74 }; 74 };
75 75
76 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_ 76 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/webworker_proxy.cc ('k') | chrome/service/service_ipc_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698