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

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

Issue 2209993003: Add missing using statements for JNI types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 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 <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_string.h" 10 #include "base/android/jni_string.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h" 12 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings.h"
13 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact ory.h" 13 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact ory.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/profiles/profile_manager.h" 15 #include "chrome/browser/profiles/profile_manager.h"
16 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metr ics.h" 17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_metr ics.h"
18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h" 18 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h"
19 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event _store.h" 19 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_event _store.h"
20 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h" 20 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h"
21 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_ names.h" 21 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_ names.h"
22 #include "jni/DataReductionProxySettings_jni.h" 22 #include "jni/DataReductionProxySettings_jni.h"
23 #include "net/proxy/proxy_server.h" 23 #include "net/proxy/proxy_server.h"
24 #include "url/gurl.h" 24 #include "url/gurl.h"
25 25
26 26
27 using base::android::ConvertUTF8ToJavaString; 27 using base::android::ConvertUTF8ToJavaString;
28 using base::android::JavaParamRef;
28 using base::android::ScopedJavaLocalRef; 29 using base::android::ScopedJavaLocalRef;
29 using data_reduction_proxy::DataReductionProxySettings; 30 using data_reduction_proxy::DataReductionProxySettings;
30 31
31 DataReductionProxySettingsAndroid::DataReductionProxySettingsAndroid() { 32 DataReductionProxySettingsAndroid::DataReductionProxySettingsAndroid() {
32 } 33 }
33 34
34 DataReductionProxySettingsAndroid::~DataReductionProxySettingsAndroid() { 35 DataReductionProxySettingsAndroid::~DataReductionProxySettingsAndroid() {
35 } 36 }
36 37
37 jboolean DataReductionProxySettingsAndroid::IsDataReductionProxyAllowed( 38 jboolean DataReductionProxySettingsAndroid::IsDataReductionProxyAllowed(
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 if (!event_store) 209 if (!event_store)
209 return ConvertUTF8ToJavaString(env, std::string()); 210 return ConvertUTF8ToJavaString(env, std::string());
210 211
211 return ConvertUTF8ToJavaString(env, event_store->SanitizedLastBypassEvent()); 212 return ConvertUTF8ToJavaString(env, event_store->SanitizedLastBypassEvent());
212 } 213 }
213 214
214 // Used by generated jni code. 215 // Used by generated jni code.
215 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { 216 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) {
216 return reinterpret_cast<intptr_t>(new DataReductionProxySettingsAndroid()); 217 return reinterpret_cast<intptr_t>(new DataReductionProxySettingsAndroid());
217 } 218 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698