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

Unified Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics.cc

Issue 651443005: Use no-op statistics collecting object for WebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor2
Patch Set: Selim and Ben's comments Created 6 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics.cc
diff --git a/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics.cc b/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics.cc
new file mode 100644
index 0000000000000000000000000000000000000000..de5e1fe954a199006daf88ea244a1b4317c7b8ae
--- /dev/null
+++ b/components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics.cc
@@ -0,0 +1,29 @@
+// Copyright 2014 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.
+
+#include "components/data_reduction_proxy/core/browser/data_reduction_proxy_statistics.h"
+
+namespace data_reduction_proxy {
+DataReductionProxyStatistics::DataReductionProxyStatistics()
+ : list_value_(new base::ListValue) {
+}
+
+DataReductionProxyStatistics::~DataReductionProxyStatistics() {
+}
+
+int64 DataReductionProxyStatistics::GetInt64(const char*) {
+ return -1;
+}
+
+void DataReductionProxyStatistics::SetInt64(const char*, int64) {
+}
+
+base::ListValue* DataReductionProxyStatistics::GetList(const char*) {
+ return list_value_.get();
bengr 2014/10/17 23:40:27 This seems very strange to me. Why not do what the
hush (inactive) 2014/10/18 01:54:29 Yes, I thought about this... WebView has to use a
+}
+
+void DataReductionProxyStatistics::WriteStats() {
+}
+
+} // namespace data_reduction_proxy

Powered by Google App Engine
This is Rietveld 408576698