| Index: src/byte_counter.cc
|
| diff --git a/src/byte_counter.cc b/src/byte_counter.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a688cb9d9f73c8626438a006a6871865c6d8315e
|
| --- /dev/null
|
| +++ b/src/byte_counter.cc
|
| @@ -0,0 +1,19 @@
|
| +// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "src/byte_counter.h"
|
| +
|
| +#include <glog/logging.h>
|
| +
|
| +#include "src/procfs_byte_counter.h"
|
| +
|
| +namespace cashew {
|
| +
|
| +// static
|
| +ByteCounter* ByteCounter::NewByteCounter(const std::string& interface) {
|
| + DCHECK(!interface.empty());
|
| + return new(std::nothrow) ProcfsByteCounter(interface);
|
| +}
|
| +
|
| +} // namespace cashew
|
|
|