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

Unified Diff: components/data_reduction_proxy/core/common/data_saver_status.h

Issue 2255603002: Adding a DataSaverStatus interface to DataReductionProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding depending CL Created 4 years, 4 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
« no previous file with comments | « components/data_reduction_proxy/core/common/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/data_reduction_proxy/core/common/data_saver_status.h
diff --git a/components/data_reduction_proxy/core/common/data_saver_status.h b/components/data_reduction_proxy/core/common/data_saver_status.h
new file mode 100644
index 0000000000000000000000000000000000000000..0f752057dfcd59524ed27daab49776320d3fb457
--- /dev/null
+++ b/components/data_reduction_proxy/core/common/data_saver_status.h
@@ -0,0 +1,19 @@
+// 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.
+
+#ifndef COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_SAVER_STATUS_H_
+#define COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_SAVER_STATUS_H_
+
+namespace data_reduction_proxy {
+
+// A class that reports the current state of data saver.
+class DataSaverStatus {
+ public:
+ // Whether data saver is currently enabled.
+ virtual bool IsDataSaverEnabled() const = 0;
+};
+
+} // namespace data_reduction_proxy
+
+#endif // COMPONENTS_DATA_REDUCTION_PROXY_CORE_COMMON_DATA_SAVER_STATUS_H_
« no previous file with comments | « components/data_reduction_proxy/core/common/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698