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

Side by Side Diff: chrome/browser/android/cookies/cookies_fetcher.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "base/android/jni_android.h" 5 #include "base/android/jni_android.h"
6 #include "base/android/jni_string.h" 6 #include "base/android/jni_string.h"
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "chrome/browser/android/cookies/cookies_fetcher.h" 10 #include "chrome/browser/android/cookies/cookies_fetcher.h"
11 #include "chrome/browser/profiles/profile_manager.h" 11 #include "chrome/browser/profiles/profile_manager.h"
12 #include "content/public/browser/browser_thread.h" 12 #include "content/public/browser/browser_thread.h"
13 #include "content/public/common/content_switches.h" 13 #include "content/public/common/content_switches.h"
14 #include "jni/CookiesFetcher_jni.h" 14 #include "jni/CookiesFetcher_jni.h"
15 #include "net/cookies/cookie_store.h" 15 #include "net/cookies/cookie_store.h"
16 #include "net/url_request/url_request_context.h" 16 #include "net/url_request/url_request_context.h"
17 17
18 using base::android::JavaParamRef;
19 using base::android::ScopedJavaLocalRef;
20
18 CookiesFetcher::CookiesFetcher(JNIEnv* env, jobject obj, Profile* profile) { 21 CookiesFetcher::CookiesFetcher(JNIEnv* env, jobject obj, Profile* profile) {
19 } 22 }
20 23
21 CookiesFetcher::~CookiesFetcher() { 24 CookiesFetcher::~CookiesFetcher() {
22 } 25 }
23 26
24 void CookiesFetcher::Destroy(JNIEnv* env, const JavaParamRef<jobject>& obj) { 27 void CookiesFetcher::Destroy(JNIEnv* env, const JavaParamRef<jobject>& obj) {
25 delete this; 28 delete this;
26 } 29 }
27 30
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 181
179 // JNI functions 182 // JNI functions
180 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) { 183 static jlong Init(JNIEnv* env, const JavaParamRef<jobject>& obj) {
181 return reinterpret_cast<intptr_t>(new CookiesFetcher(env, obj, 0)); 184 return reinterpret_cast<intptr_t>(new CookiesFetcher(env, obj, 0));
182 } 185 }
183 186
184 // Register native methods 187 // Register native methods
185 bool RegisterCookiesFetcher(JNIEnv* env) { 188 bool RegisterCookiesFetcher(JNIEnv* env) {
186 return RegisterNativesImpl(env); 189 return RegisterNativesImpl(env);
187 } 190 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698