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

Side by Side Diff: remoting/host/remoting_me2me_host.cc

Issue 65813002: mac: Prepare most test code for -Wunused-functions too. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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/host/input_injector_mac.cc ('k') | ui/gfx/render_text_unittest.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 (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 // This file implements a standalone host process for Me2Me. 5 // This file implements a standalone host process for Me2Me.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 #if defined(OS_WIN) 91 #if defined(OS_WIN)
92 #include <commctrl.h> 92 #include <commctrl.h>
93 #include "base/win/scoped_handle.h" 93 #include "base/win/scoped_handle.h"
94 #include "remoting/host/win/session_desktop_environment.h" 94 #include "remoting/host/win/session_desktop_environment.h"
95 #endif // defined(OS_WIN) 95 #endif // defined(OS_WIN)
96 96
97 #if defined(TOOLKIT_GTK) 97 #if defined(TOOLKIT_GTK)
98 #include "ui/gfx/gtk_util.h" 98 #include "ui/gfx/gtk_util.h"
99 #endif // defined(TOOLKIT_GTK) 99 #endif // defined(TOOLKIT_GTK)
100 100
101 namespace {
102
103 // This is used for tagging system event logs. 101 // This is used for tagging system event logs.
104 const char kApplicationName[] = "chromoting"; 102 const char kApplicationName[] = "chromoting";
105 103
106 #if defined(OS_LINUX) 104 #if defined(OS_LINUX)
107 // The command line switch used to pass name of the pipe to capture audio on 105 // The command line switch used to pass name of the pipe to capture audio on
108 // linux. 106 // linux.
109 const char kAudioPipeSwitchName[] = "audio-pipe-name"; 107 const char kAudioPipeSwitchName[] = "audio-pipe-name";
110 #endif // defined(OS_LINUX) 108 #endif // defined(OS_LINUX)
111 109
112 // The command line switch used by the parent to request the host to signal it 110 // The command line switch used by the parent to request the host to signal it
113 // when it is successfully started. 111 // when it is successfully started.
114 const char kSignalParentSwitchName[] = "signal-parent"; 112 const char kSignalParentSwitchName[] = "signal-parent";
115 113
116 // Value used for --host-config option to indicate that the path must be read 114 // Value used for --host-config option to indicate that the path must be read
117 // from stdin. 115 // from stdin.
118 const char kStdinConfigPath[] = "-"; 116 const char kStdinConfigPath[] = "-";
119 117
120 void QuitMessageLoop(base::MessageLoop* message_loop) {
121 message_loop->PostTask(FROM_HERE, base::MessageLoop::QuitClosure());
122 }
123
124 } // namespace
125
126 namespace remoting { 118 namespace remoting {
127 119
128 class HostProcess 120 class HostProcess
129 : public ConfigFileWatcher::Delegate, 121 : public ConfigFileWatcher::Delegate,
130 public HeartbeatSender::Listener, 122 public HeartbeatSender::Listener,
131 public HostChangeNotificationListener::Listener, 123 public HostChangeNotificationListener::Listener,
132 public IPC::Listener, 124 public IPC::Listener,
133 public base::RefCountedThreadSafe<HostProcess> { 125 public base::RefCountedThreadSafe<HostProcess> {
134 public: 126 public:
135 HostProcess(scoped_ptr<ChromotingHostContext> context, 127 HostProcess(scoped_ptr<ChromotingHostContext> context,
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after
1183 return exit_code; 1175 return exit_code;
1184 } 1176 }
1185 1177
1186 } // namespace remoting 1178 } // namespace remoting
1187 1179
1188 #if !defined(OS_WIN) 1180 #if !defined(OS_WIN)
1189 int main(int argc, char** argv) { 1181 int main(int argc, char** argv) {
1190 return remoting::HostMain(argc, argv); 1182 return remoting::HostMain(argc, argv);
1191 } 1183 }
1192 #endif // !defined(OS_WIN) 1184 #endif // !defined(OS_WIN)
OLDNEW
« no previous file with comments | « remoting/host/input_injector_mac.cc ('k') | ui/gfx/render_text_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698