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

Side by Side Diff: chrome/browser/service/service_process_control.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
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_SERVICE_SERVICE_PROCESS_CONTROL_H_ 5 #ifndef CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_
6 #define CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_ 6 #define CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // It is OK to pass the same value for |success_task| and |failure_task|. In 61 // It is OK to pass the same value for |success_task| and |failure_task|. In
62 // this case, the task is invoked on success or failure. 62 // this case, the task is invoked on success or failure.
63 // Note that if we are already connected to service process then 63 // Note that if we are already connected to service process then
64 // |success_task| can be invoked in the context of the Launch call. 64 // |success_task| can be invoked in the context of the Launch call.
65 // Takes ownership of |success_task| and |failure_task|. 65 // Takes ownership of |success_task| and |failure_task|.
66 void Launch(Task* success_task, Task* failure_task); 66 void Launch(Task* success_task, Task* failure_task);
67 // Disconnect the IPC channel from the service process. 67 // Disconnect the IPC channel from the service process.
68 void Disconnect(); 68 void Disconnect();
69 69
70 // IPC::Channel::Listener implementation. 70 // IPC::Channel::Listener implementation.
71 virtual bool OnMessageReceived(const IPC::Message& message); 71 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
72 virtual void OnChannelConnected(int32 peer_pid); 72 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE;
73 virtual void OnChannelError(); 73 virtual void OnChannelError() OVERRIDE;
74 74
75 // IPC::Channel::Sender implementation 75 // IPC::Channel::Sender implementation
76 virtual bool Send(IPC::Message* message); 76 virtual bool Send(IPC::Message* message);
77 77
78 // NotificationObserver implementation. 78 // NotificationObserver implementation.
79 virtual void Observe(int type, 79 virtual void Observe(int type,
80 const NotificationSource& source, 80 const NotificationSource& source,
81 const NotificationDetails& details); 81 const NotificationDetails& details);
82 82
83 // Message handlers 83 // Message handlers
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 TaskList connect_failure_tasks_; 158 TaskList connect_failure_tasks_;
159 159
160 // Callback that gets invoked when a status message is received from 160 // Callback that gets invoked when a status message is received from
161 // the cloud print proxy. 161 // the cloud print proxy.
162 scoped_ptr<CloudPrintProxyInfoHandler> cloud_print_info_callback_; 162 scoped_ptr<CloudPrintProxyInfoHandler> cloud_print_info_callback_;
163 163
164 NotificationRegistrar registrar_; 164 NotificationRegistrar registrar_;
165 }; 165 };
166 166
167 #endif // CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_ 167 #endif // CHROME_BROWSER_SERVICE_SERVICE_PROCESS_CONTROL_H_
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_resource_message_filter.h ('k') | chrome/nacl/broker_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698