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

Side by Side Diff: remoting/protocol/clipboard_echo_filter.h

Issue 11419224: Add missing (and remove superfluous) 'explicit' from constructors. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + remove non-straightforward changes Created 7 years, 11 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
« no previous file with comments | « remoting/protocol/channel_multiplexer.cc ('k') | remoting/protocol/connection_to_host.h » ('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 (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 REMOTING_PROTOCOL_CLIPBOARD_ECHO_FILTER_H_ 5 #ifndef REMOTING_PROTOCOL_CLIPBOARD_ECHO_FILTER_H_
6 #define REMOTING_PROTOCOL_CLIPBOARD_ECHO_FILTER_H_ 6 #define REMOTING_PROTOCOL_CLIPBOARD_ECHO_FILTER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 20 matching lines...) Expand all
31 // client. 31 // client.
32 ClipboardStub* client_filter(); 32 ClipboardStub* client_filter();
33 33
34 // Gets the ClipboardStub that sends events through this filter and on to the 34 // Gets the ClipboardStub that sends events through this filter and on to the
35 // host. 35 // host.
36 ClipboardStub* host_filter(); 36 ClipboardStub* host_filter();
37 37
38 private: 38 private:
39 class ClientFilter : public ClipboardStub { 39 class ClientFilter : public ClipboardStub {
40 public: 40 public:
41 ClientFilter(ClipboardEchoFilter* filter); 41 explicit ClientFilter(ClipboardEchoFilter* filter);
42 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; 42 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE;
43 43
44 private: 44 private:
45 ClipboardEchoFilter* filter_; 45 ClipboardEchoFilter* filter_;
46 }; 46 };
47 47
48 class HostFilter : public ClipboardStub { 48 class HostFilter : public ClipboardStub {
49 public: 49 public:
50 HostFilter(ClipboardEchoFilter* filter); 50 explicit HostFilter(ClipboardEchoFilter* filter);
51 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE; 51 virtual void InjectClipboardEvent(const ClipboardEvent& event) OVERRIDE;
52 52
53 private: 53 private:
54 ClipboardEchoFilter* filter_; 54 ClipboardEchoFilter* filter_;
55 }; 55 };
56 56
57 void InjectClipboardEventToHost(const ClipboardEvent& event); 57 void InjectClipboardEventToHost(const ClipboardEvent& event);
58 void InjectClipboardEventToClient(const ClipboardEvent& event); 58 void InjectClipboardEventToClient(const ClipboardEvent& event);
59 59
60 ClipboardStub* host_stub_; 60 ClipboardStub* host_stub_;
61 ClipboardStub* client_stub_; 61 ClipboardStub* client_stub_;
62 ClientFilter client_filter_; 62 ClientFilter client_filter_;
63 HostFilter host_filter_; 63 HostFilter host_filter_;
64 64
65 // The latest item received from the client. 65 // The latest item received from the client.
66 std::string client_latest_mime_type_; 66 std::string client_latest_mime_type_;
67 std::string client_latest_data_; 67 std::string client_latest_data_;
68 68
69 DISALLOW_COPY_AND_ASSIGN(ClipboardEchoFilter); 69 DISALLOW_COPY_AND_ASSIGN(ClipboardEchoFilter);
70 }; 70 };
71 71
72 } // namespace protocol 72 } // namespace protocol
73 } // namespace remoting 73 } // namespace remoting
74 74
75 #endif // REMOTING_PROTOCOL_CLIPBOARD_ECHO_FILTER_H_ 75 #endif // REMOTING_PROTOCOL_CLIPBOARD_ECHO_FILTER_H_
OLDNEW
« no previous file with comments | « remoting/protocol/channel_multiplexer.cc ('k') | remoting/protocol/connection_to_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698