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

Side by Side Diff: src/byte_counter.cc

Issue 5180003: cashew: add local byte counters (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/cashew.git@master
Patch Set: Created 10 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
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "src/byte_counter.h"
6
7 #include <glog/logging.h>
8
9 #include "src/procfs_byte_counter.h"
10
11 namespace cashew {
12
13 // static
14 ByteCounter* ByteCounter::NewByteCounter(const std::string& interface) {
15 DCHECK(!interface.empty());
16 return new(std::nothrow) ProcfsByteCounter(interface);
17 }
18
19 } // namespace cashew
OLDNEW
« no previous file with comments | « src/byte_counter.h ('k') | src/data_plan.h » ('j') | src/device.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698