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

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

Issue 628083002: Replacing the OVERRIDE with override and FINAL with final in chrome/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include <vector> 9 #include <vector>
10 10
(...skipping 13 matching lines...) Expand all
24 24
25 // This class handles IPC commands for the service process. 25 // This class handles IPC commands for the service process.
26 class ServiceIPCServer : public IPC::Listener, public IPC::Sender { 26 class ServiceIPCServer : public IPC::Listener, public IPC::Sender {
27 public: 27 public:
28 explicit ServiceIPCServer(const IPC::ChannelHandle& handle); 28 explicit ServiceIPCServer(const IPC::ChannelHandle& handle);
29 virtual ~ServiceIPCServer(); 29 virtual ~ServiceIPCServer();
30 30
31 bool Init(); 31 bool Init();
32 32
33 // IPC::Sender implementation. 33 // IPC::Sender implementation.
34 virtual bool Send(IPC::Message* msg) OVERRIDE; 34 virtual bool Send(IPC::Message* msg) override;
35 35
36 IPC::SyncChannel* channel() { return channel_.get(); } 36 IPC::SyncChannel* channel() { return channel_.get(); }
37 37
38 // Safe to call on any thread, as long as it's guaranteed that the thread's 38 // Safe to call on any thread, as long as it's guaranteed that the thread's
39 // lifetime is less than the main thread. 39 // lifetime is less than the main thread.
40 IPC::SyncMessageFilter* sync_message_filter() { 40 IPC::SyncMessageFilter* sync_message_filter() {
41 return sync_message_filter_.get(); 41 return sync_message_filter_.get();
42 } 42 }
43 43
44 bool is_client_connected() const { return client_connected_; } 44 bool is_client_connected() const { return client_connected_; }
45 45
46 46
47 private: 47 private:
48 friend class MockServiceIPCServer; 48 friend class MockServiceIPCServer;
49 49
50 // IPC::Listener implementation. 50 // IPC::Listener implementation.
51 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; 51 virtual bool OnMessageReceived(const IPC::Message& msg) override;
52 virtual void OnChannelConnected(int32 peer_pid) OVERRIDE; 52 virtual void OnChannelConnected(int32 peer_pid) override;
53 virtual void OnChannelError() OVERRIDE; 53 virtual void OnChannelError() override;
54 54
55 // IPC message handlers. 55 // IPC message handlers.
56 void OnEnableCloudPrintProxyWithRobot( 56 void OnEnableCloudPrintProxyWithRobot(
57 const std::string& robot_auth_code, 57 const std::string& robot_auth_code,
58 const std::string& robot_email, 58 const std::string& robot_email,
59 const std::string& user_email, 59 const std::string& user_email,
60 const base::DictionaryValue& user_settings); 60 const base::DictionaryValue& user_settings);
61 void OnGetCloudPrintProxyInfo(); 61 void OnGetCloudPrintProxyInfo();
62 void OnGetHistograms(); 62 void OnGetHistograms();
63 void OnGetPrinters(); 63 void OnGetPrinters();
(...skipping 13 matching lines...) Expand all
77 // Allows threads other than the main thread to send sync messages. 77 // Allows threads other than the main thread to send sync messages.
78 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; 78 scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_;
79 79
80 // Calculates histograms deltas. 80 // Calculates histograms deltas.
81 scoped_ptr<base::HistogramDeltaSerialization> histogram_delta_serializer_; 81 scoped_ptr<base::HistogramDeltaSerialization> histogram_delta_serializer_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer); 83 DISALLOW_COPY_AND_ASSIGN(ServiceIPCServer);
84 }; 84 };
85 85
86 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_ 86 #endif // CHROME_SERVICE_SERVICE_IPC_SERVER_H_
OLDNEW
« no previous file with comments | « chrome/service/net/service_url_request_context_getter.h ('k') | chrome/service/service_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698