| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |