Home | History | Annotate | Download | only in common
      1 // Copyright 2014 The Chromium 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 "components/data_reduction_proxy/common/data_reduction_proxy_pref_names.h"
      6 
      7 namespace data_reduction_proxy {
      8 namespace prefs {
      9 
     10 // A List pref that contains daily totals of the size of all HTTPS
     11 // content received when the data reduction proxy was enabled.
     12 const char kDailyContentLengthHttpsWithDataReductionProxyEnabled[] =
     13     "data_reduction.daily_received_length_https_with_"
     14     "data_reduction_proxy_enabled";
     15 
     16 // A List pref that contains daily totals of the size of all HTTP/HTTPS
     17 // content received when a bypass of more than 30 minutes is in effect.
     18 const char kDailyContentLengthLongBypassWithDataReductionProxyEnabled[] =
     19     "data_reduction.daily_received_length_long_bypass_with_"
     20     "data_reduction_proxy_enabled";
     21 
     22 // A List pref that contains daily totals of the size of all HTTP/HTTPS
     23 // content received when a bypass of less than 30 minutes is in effect.
     24 const char kDailyContentLengthShortBypassWithDataReductionProxyEnabled[] =
     25     "data_reduction.daily_received_length_short_bypass_with_"
     26     "data_reduction_proxy_enabled";
     27 
     28 // TODO(bengr): what is this?
     29 const char kDailyContentLengthUnknownWithDataReductionProxyEnabled[] =
     30     "data_reduction.daily_received_length_unknown_with_"
     31     "data_reduction_proxy_enabled";
     32 
     33 // A List pref that contains daily totals of the size of all HTTP/HTTPS
     34 // content received via the data reduction proxy.
     35 const char kDailyContentLengthViaDataReductionProxy[] =
     36     "data_reduction.daily_received_length_via_data_reduction_proxy";
     37 
     38 // A List pref that contains daily totals of the size of all HTTP/HTTPS
     39 // content received while the data reduction proxy is enabled.
     40 const char kDailyContentLengthWithDataReductionProxyEnabled[] =
     41     "data_reduction.daily_received_length_with_data_reduction_proxy_enabled";
     42 
     43 // An int64 pref that contains an internal representation of midnight on the
     44 // date of the last update to |kDailyHttp{Original,Received}ContentLength|.
     45 const char kDailyHttpContentLengthLastUpdateDate[] =
     46     "data_reduction.last_update_date";
     47 
     48 // A List pref that contains daily totals of the original size of all HTTP/HTTPS
     49 // content received from the network.
     50 const char kDailyHttpOriginalContentLength[] =
     51     "data_reduction.daily_original_length";
     52 
     53 // A List pref that contains daily totals of the size of all HTTP/HTTPS content
     54 // received from the network.
     55 const char kDailyHttpReceivedContentLength[] =
     56     "data_reduction.daily_received_length";
     57 
     58 // A List pref that contains daily totals of the original size of all HTTP/HTTPS
     59 // content received via the data reduction proxy.
     60 const char kDailyOriginalContentLengthViaDataReductionProxy[] =
     61     "data_reduction.daily_original_length_via_data_reduction_proxy";
     62 
     63 // A List pref that contains daily totals of the original size of all HTTP/HTTPS
     64 // content received while the data reduction proxy is enabled.
     65 const char kDailyOriginalContentLengthWithDataReductionProxyEnabled[] =
     66     "data_reduction.daily_original_length_with_data_reduction_proxy_enabled";
     67 
     68 // String that specifies the origin allowed to use data reduction proxy
     69 // authentication, if any.
     70 const char kDataReductionProxy[] = "auth.spdyproxy.origin";
     71 
     72 // A boolean specifying whether the data reduction proxy is enabled.
     73 const char kDataReductionProxyEnabled[] = "spdy_proxy.enabled";
     74 
     75 // A boolean specifying whether the data reduction proxy alternative is enabled.
     76 const char kDataReductionProxyAltEnabled[] = "data_reduction_alt.enabled";
     77 
     78 // A boolean specifying whether the data reduction proxy was ever enabled
     79 // before.
     80 const char kDataReductionProxyWasEnabledBefore[] =
     81     "spdy_proxy.was_enabled_before";
     82 
     83 // An int64 pref that contains the total size of all HTTP content received from
     84 // the network.
     85 const char kHttpReceivedContentLength[] = "http_received_content_length";
     86 
     87 // An int64 pref that contains the total original size of all HTTP content
     88 // received over the network.
     89 const char kHttpOriginalContentLength[] = "http_original_content_length";
     90 
     91 }  // namespace prefs
     92 }  // namespace data_reduction_proxy
     93