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

Side by Side Diff: remoting/host/fake_host_extension.h

Issue 628753002: replace OVERRIDE and FINAL with override and final in remoting/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master 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
« no previous file with comments | « remoting/host/fake_desktop_environment.h ('k') | remoting/host/fake_host_extension.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FAKE_HOST_EXTENSION_H_ 5 #ifndef REMOTING_HOST_FAKE_HOST_EXTENSION_H_
6 #define REMOTING_HOST_FAKE_HOST_EXTENSION_H_ 6 #define REMOTING_HOST_FAKE_HOST_EXTENSION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "remoting/host/host_extension.h" 10 #include "remoting/host/host_extension.h"
11 11
12 namespace remoting { 12 namespace remoting {
13 13
14 class ClientSessionControl; 14 class ClientSessionControl;
15 class HostExtensionSession; 15 class HostExtensionSession;
16 16
17 namespace protocol { 17 namespace protocol {
18 class ClientStub; 18 class ClientStub;
19 } 19 }
20 20
21 // |HostExtension| implementation that can report a specified capability, and 21 // |HostExtension| implementation that can report a specified capability, and
22 // reports messages matching a specified type as having been handled. 22 // reports messages matching a specified type as having been handled.
23 class FakeExtension : public HostExtension { 23 class FakeExtension : public HostExtension {
24 public: 24 public:
25 FakeExtension(const std::string& message_type, 25 FakeExtension(const std::string& message_type,
26 const std::string& capability); 26 const std::string& capability);
27 virtual ~FakeExtension(); 27 virtual ~FakeExtension();
28 28
29 // HostExtension interface. 29 // HostExtension interface.
30 virtual std::string capability() const OVERRIDE; 30 virtual std::string capability() const override;
31 virtual scoped_ptr<HostExtensionSession> CreateExtensionSession( 31 virtual scoped_ptr<HostExtensionSession> CreateExtensionSession(
32 ClientSessionControl* client_session_control, 32 ClientSessionControl* client_session_control,
33 protocol::ClientStub* client_stub) OVERRIDE; 33 protocol::ClientStub* client_stub) override;
34 34
35 // Controls for testing. 35 // Controls for testing.
36 void set_steal_video_capturer(bool steal_video_capturer) { 36 void set_steal_video_capturer(bool steal_video_capturer) {
37 steal_video_capturer_ = steal_video_capturer; 37 steal_video_capturer_ = steal_video_capturer;
38 } 38 }
39 39
40 // Accessors for testing. 40 // Accessors for testing.
41 bool has_handled_message() const { return has_handled_message_; } 41 bool has_handled_message() const { return has_handled_message_; }
42 bool has_wrapped_video_encoder() const { return has_wrapped_video_encoder_; } 42 bool has_wrapped_video_encoder() const { return has_wrapped_video_encoder_; }
43 bool has_wrapped_video_capturer() const { 43 bool has_wrapped_video_capturer() const {
(...skipping 24 matching lines...) Expand all
68 68
69 // True if CreateExtensionSession() was called on this extension. 69 // True if CreateExtensionSession() was called on this extension.
70 bool was_instantiated_; 70 bool was_instantiated_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(FakeExtension); 72 DISALLOW_COPY_AND_ASSIGN(FakeExtension);
73 }; 73 };
74 74
75 } // namespace remoting 75 } // namespace remoting
76 76
77 #endif // REMOTING_HOST_FAKE_HOST_EXTENSION_H_ 77 #endif // REMOTING_HOST_FAKE_HOST_EXTENSION_H_
OLDNEW
« no previous file with comments | « remoting/host/fake_desktop_environment.h ('k') | remoting/host/fake_host_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698