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

Side by Side Diff: chrome/service/service_process.cc

Issue 3034035: [chromoting] Use zlib as the default encoder and decoder (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 5 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 | « no previous file | remoting/base/decoder_zlib.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/service/service_process.h" 5 #include "chrome/service/service_process.h"
6 6
7 #include "base/stl_util-inl.h" 7 #include "base/stl_util-inl.h"
8 #include "chrome/service/cloud_print/cloud_print_proxy.h" 8 #include "chrome/service/cloud_print/cloud_print_proxy.h"
9 #include "net/base/network_change_notifier.h" 9 #include "net/base/network_change_notifier.h"
10 10
11 #if defined(ENABLE_REMOTING) 11 #if defined(ENABLE_REMOTING)
12 #include "remoting/base/encoder_verbatim.h" 12 #include "remoting/base/encoder_zlib.h"
13 #include "remoting/host/chromoting_host.h" 13 #include "remoting/host/chromoting_host.h"
14 #include "remoting/host/chromoting_host_context.h" 14 #include "remoting/host/chromoting_host_context.h"
15 #include "remoting/host/host_config.h" 15 #include "remoting/host/host_config.h"
16 16
17 #if defined(OS_WIN) 17 #if defined(OS_WIN)
18 #include "remoting/host/capturer_gdi.h" 18 #include "remoting/host/capturer_gdi.h"
19 #include "remoting/host/event_executor_win.h" 19 #include "remoting/host/event_executor_win.h"
20 #elif defined(OS_LINUX) 20 #elif defined(OS_LINUX)
21 #include "remoting/host/capturer_linux.h" 21 #include "remoting/host/capturer_linux.h"
22 #include "remoting/host/event_executor_linux.h" 22 #include "remoting/host/event_executor_linux.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 #if defined(OS_WIN) 78 #if defined(OS_WIN)
79 capturer.reset(new remoting::CapturerGdi()); 79 capturer.reset(new remoting::CapturerGdi());
80 executor.reset(new remoting::EventExecutorWin()); 80 executor.reset(new remoting::EventExecutorWin());
81 #elif defined(OS_LINUX) 81 #elif defined(OS_LINUX)
82 capturer.reset(new remoting::CapturerLinux()); 82 capturer.reset(new remoting::CapturerLinux());
83 executor.reset(new remoting::EventExecutorLinux()); 83 executor.reset(new remoting::EventExecutorLinux());
84 #elif defined(OS_MACOSX) 84 #elif defined(OS_MACOSX)
85 capturer.reset(new remoting::CapturerMac()); 85 capturer.reset(new remoting::CapturerMac());
86 executor.reset(new remoting::EventExecutorMac()); 86 executor.reset(new remoting::EventExecutorMac());
87 #endif 87 #endif
88 encoder.reset(new remoting::EncoderVerbatim()); 88 encoder.reset(new remoting::EncoderZlib());
89 89
90 return new remoting::ChromotingHost(context, config, capturer.release(), 90 return new remoting::ChromotingHost(context, config, capturer.release(),
91 encoder.release(), executor.release()); 91 encoder.release(), executor.release());
92 } 92 }
93 #endif 93 #endif
94 94
95 ServiceProcess::~ServiceProcess() { 95 ServiceProcess::~ServiceProcess() {
96 Teardown(); 96 Teardown();
97 DCHECK(cloud_print_proxy_list_.size() == 0); 97 DCHECK(cloud_print_proxy_list_.size() == 0);
98 g_service_process = NULL; 98 g_service_process = NULL;
99 } 99 }
OLDNEW
« no previous file with comments | « no previous file | remoting/base/decoder_zlib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698