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

Side by Side Diff: chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h

Issue 473723002: Update data reduction proxy statistics prefs less often on desktop (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tooManyWritesPatch
Patch Set: Addressed bengr comments Created 6 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ 5 #ifndef CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_
6 #define CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ 6 #define CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_
7 7
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "base/android/jni_weak_ref.h" 9 #include "base/android/jni_weak_ref.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/prefs/pref_member.h" 15 #include "base/prefs/pref_member.h"
16 16
17 using base::android::ScopedJavaLocalRef; 17 using base::android::ScopedJavaLocalRef;
18 18
19 class Profile; 19 class Profile;
20 20
21 namespace data_reduction_proxy { 21 namespace data_reduction_proxy {
22 class DataReductionProxySettings; 22 class DataReductionProxySettings;
23 class DataReductionProxyStatisticsPrefs;
23 } 24 }
24 25
25 // Central point for configuring the data reduction proxy on Android. 26 // Central point for configuring the data reduction proxy on Android.
26 // This object lives on the UI thread and all of its methods are expected to 27 // This object lives on the UI thread and all of its methods are expected to
27 // be called from there. 28 // be called from there.
28 class DataReductionProxySettingsAndroid { 29 class DataReductionProxySettingsAndroid {
29 public: 30 public:
30 DataReductionProxySettingsAndroid(); 31 DataReductionProxySettingsAndroid();
31 32
32 virtual ~DataReductionProxySettingsAndroid(); 33 virtual ~DataReductionProxySettingsAndroid();
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 76
76 ScopedJavaLocalRef<jlongArray> GetDailyContentLengths(JNIEnv* env, 77 ScopedJavaLocalRef<jlongArray> GetDailyContentLengths(JNIEnv* env,
77 const char* pref_name); 78 const char* pref_name);
78 79
79 virtual data_reduction_proxy::DataReductionProxySettings* Settings(); 80 virtual data_reduction_proxy::DataReductionProxySettings* Settings();
80 81
81 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettingsAndroid); 82 DISALLOW_COPY_AND_ASSIGN(DataReductionProxySettingsAndroid);
82 }; 83 };
83 84
84 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_ 85 #endif // CHROME_BROWSER_NET_SPDYPROXY_DATA_REDUCTION_PROXY_SETTINGS_ANDROID_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698