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

Side by Side Diff: remoting/host/setup/me2me_native_messaging_host.h

Issue 667123002: Standardize usage of virtual/override/final in remoting/ (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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ 5 #ifndef REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_
6 #define REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ 6 #define REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 26 matching lines...) Expand all
37 class Me2MeNativeMessagingHost 37 class Me2MeNativeMessagingHost
38 : public extensions::NativeMessagingChannel::EventHandler { 38 : public extensions::NativeMessagingChannel::EventHandler {
39 public: 39 public:
40 Me2MeNativeMessagingHost( 40 Me2MeNativeMessagingHost(
41 bool needs_elevation, 41 bool needs_elevation,
42 intptr_t parent_window_handle, 42 intptr_t parent_window_handle,
43 scoped_ptr<extensions::NativeMessagingChannel> channel, 43 scoped_ptr<extensions::NativeMessagingChannel> channel,
44 scoped_refptr<DaemonController> daemon_controller, 44 scoped_refptr<DaemonController> daemon_controller,
45 scoped_refptr<protocol::PairingRegistry> pairing_registry, 45 scoped_refptr<protocol::PairingRegistry> pairing_registry,
46 scoped_ptr<OAuthClient> oauth_client); 46 scoped_ptr<OAuthClient> oauth_client);
47 virtual ~Me2MeNativeMessagingHost(); 47 ~Me2MeNativeMessagingHost() override;
48 48
49 void Start(const base::Closure& quit_closure); 49 void Start(const base::Closure& quit_closure);
50 50
51 // extensions::NativeMessagingChannel::EventHandler implementation 51 // extensions::NativeMessagingChannel::EventHandler implementation
52 virtual void OnMessage(scoped_ptr<base::Value> message) override; 52 void OnMessage(scoped_ptr<base::Value> message) override;
53 virtual void OnDisconnect() override; 53 void OnDisconnect() override;
54 54
55 private: 55 private:
56 // These "Process.." methods handle specific request types. The |response| 56 // These "Process.." methods handle specific request types. The |response|
57 // dictionary is pre-filled by ProcessMessage() with the parts of the 57 // dictionary is pre-filled by ProcessMessage() with the parts of the
58 // response already known ("id" and "type" fields). 58 // response already known ("id" and "type" fields).
59 void ProcessHello( 59 void ProcessHello(
60 scoped_ptr<base::DictionaryValue> message, 60 scoped_ptr<base::DictionaryValue> message,
61 scoped_ptr<base::DictionaryValue> response); 61 scoped_ptr<base::DictionaryValue> response);
62 void ProcessClearPairedClients( 62 void ProcessClearPairedClients(
63 scoped_ptr<base::DictionaryValue> message, 63 scoped_ptr<base::DictionaryValue> message,
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 base::WeakPtr<Me2MeNativeMessagingHost> weak_ptr_; 183 base::WeakPtr<Me2MeNativeMessagingHost> weak_ptr_;
184 base::WeakPtrFactory<Me2MeNativeMessagingHost> weak_factory_; 184 base::WeakPtrFactory<Me2MeNativeMessagingHost> weak_factory_;
185 185
186 DISALLOW_COPY_AND_ASSIGN(Me2MeNativeMessagingHost); 186 DISALLOW_COPY_AND_ASSIGN(Me2MeNativeMessagingHost);
187 }; 187 };
188 188
189 } // namespace remoting 189 } // namespace remoting
190 190
191 #endif // REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_ 191 #endif // REMOTING_HOST_SETUP_ME2ME_NATIVE_MESSAGING_HOST_H_
OLDNEW
« no previous file with comments | « remoting/host/setup/host_starter.h ('k') | remoting/host/setup/me2me_native_messaging_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698