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

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

Issue 792803007: Make Data Reduction Proxy a best effort proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated tests Created 5 years, 11 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 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h" 5 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_settings_android.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h" 8 #include "base/android/jni_string.h"
9 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_configurator. h"
10 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" 9 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
11 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact ory.h" 10 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact ory.h"
12 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/profiles/profile_manager.h" 12 #include "chrome/browser/profiles/profile_manager.h"
14 #include "chrome/common/pref_names.h" 13 #include "chrome/common/pref_names.h"
15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h" 14 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h"
16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_usag e_stats.h" 15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_usag e_stats.h"
17 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h" 16 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h"
18 #include "jni/DataReductionProxySettings_jni.h" 17 #include "jni/DataReductionProxySettings_jni.h"
19 18
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 ProfileManager::GetActiveUserProfile()); 137 ProfileManager::GetActiveUserProfile());
139 DCHECK(settings); 138 DCHECK(settings);
140 return settings; 139 return settings;
141 } 140 }
142 141
143 142
144 // Used by generated jni code. 143 // Used by generated jni code.
145 static jlong Init(JNIEnv* env, jobject obj) { 144 static jlong Init(JNIEnv* env, jobject obj) {
146 return reinterpret_cast<intptr_t>(new DataReductionProxySettingsAndroid()); 145 return reinterpret_cast<intptr_t>(new DataReductionProxySettingsAndroid());
147 } 146 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698