| Index: remoting/host/clipboard_util.h
|
| diff --git a/remoting/host/clipboard_util.h b/remoting/host/clipboard_util.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2f39e1a91456343b8a671c17daf09a3709fbd82d
|
| --- /dev/null
|
| +++ b/remoting/host/clipboard_util.h
|
| @@ -0,0 +1,26 @@
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef REMOTING_HOST_CLIPBOARD_UTIL_H_
|
| +#define REMOTING_HOST_CLIPBOARD_UTIL_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "base/basictypes.h"
|
| +
|
| +namespace remoting {
|
| +
|
| +class ClipboardUtil {
|
| + public:
|
| + // Replaces every occurrence of "\n" in a string by "\r\n".
|
| + static std::string ReplaceLfByCrLf(const std::string& in);
|
| + // Replaces every occurrence of "\r\n" in a string by "\n".
|
| + static std::string ReplaceCrLfByLf(const std::string& in);
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(ClipboardUtil);
|
| +};
|
| +
|
| +} // namespace remoting
|
| +
|
| +#endif REMOTING_HOST_CLIPBOARD_UTIL_H_
|
|
|