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

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

Issue 468613002: Readability review. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 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"
(...skipping 14 matching lines...) Expand all
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.
Peter Kasting 2014/08/22 06:38:27 Nit: If all these are only for testing, and used o
Wez 2014/08/25 23:23:10 Acknowledged.
36 void set_steal_video_capturer(bool steal_video_capturer); 36 void set_steal_video_capturer(bool steal_video_capturer);
Peter Kasting 2014/08/22 06:38:28 Nit: unix_hacker()-named methods should be inlined
Wez 2014/08/25 23:23:10 Done.
37 37
38 // Accessors for testing. 38 // Accessors for testing.
39 bool has_handled_message(); 39 bool has_handled_message();
Peter Kasting 2014/08/22 06:38:28 All of these can probably be const.
Wez 2014/08/25 23:23:10 Done.
40 bool has_wrapped_video_encoder(); 40 bool has_wrapped_video_encoder();
41 bool has_wrapped_video_capturer(); 41 bool has_wrapped_video_capturer();
42 bool was_instantiated() { return was_instantiated_; } 42 bool was_instantiated() { return was_instantiated_; }
43 43
44 private: 44 private:
45 class Session; 45 class Session;
46 friend class Session; 46 friend class Session;
47 47
48 std::string message_type_; 48 std::string message_type_;
49 std::string capability_; 49 std::string capability_;
50 50
51 bool steal_video_capturer_; 51 bool steal_video_capturer_;
Peter Kasting 2014/08/22 06:38:28 Nit: At least this member might benefit from an ex
Wez 2014/08/25 23:23:10 Done.
52 52
53 bool has_handled_message_; 53 bool has_handled_message_;
54 bool has_wrapped_video_encoder_; 54 bool has_wrapped_video_encoder_;
55 bool has_wrapped_video_capturer_; 55 bool has_wrapped_video_capturer_;
56 bool was_instantiated_; 56 bool was_instantiated_;
57 57
58 DISALLOW_COPY_AND_ASSIGN(FakeExtension); 58 DISALLOW_COPY_AND_ASSIGN(FakeExtension);
59 }; 59 };
60 60
61 } // namespace remoting 61 } // namespace remoting
62 62
63 #endif // REMOTING_HOST_FAKE_HOST_EXTENSION_H_ 63 #endif // REMOTING_HOST_FAKE_HOST_EXTENSION_H_
64
OLDNEW
« no previous file with comments | « no previous file | remoting/host/fake_host_extension.cc » ('j') | remoting/host/fake_host_extension.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698