OLD | NEW |
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 #ifndef CHROME_BROWSER_ANDROID_COOKIES_COOKIES_FETCHER_H_ | 5 #ifndef CHROME_BROWSER_ANDROID_COOKIES_COOKIES_FETCHER_H_ |
6 #define CHROME_BROWSER_ANDROID_COOKIES_COOKIES_FETCHER_H_ | 6 #define CHROME_BROWSER_ANDROID_COOKIES_COOKIES_FETCHER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/android/jni_weak_ref.h" | 10 #include "base/android/jni_weak_ref.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 const base::android::JavaParamRef<jstring>& url, | 43 const base::android::JavaParamRef<jstring>& url, |
44 const base::android::JavaParamRef<jstring>& name, | 44 const base::android::JavaParamRef<jstring>& name, |
45 const base::android::JavaParamRef<jstring>& value, | 45 const base::android::JavaParamRef<jstring>& value, |
46 const base::android::JavaParamRef<jstring>& domain, | 46 const base::android::JavaParamRef<jstring>& domain, |
47 const base::android::JavaParamRef<jstring>& path, | 47 const base::android::JavaParamRef<jstring>& path, |
48 int64_t creation, | 48 int64_t creation, |
49 int64_t expiration, | 49 int64_t expiration, |
50 int64_t last_access, | 50 int64_t last_access, |
51 bool secure, | 51 bool secure, |
52 bool httponly, | 52 bool httponly, |
53 bool firstpartyonly, | 53 int samesite, |
54 int priority); | 54 int priority); |
55 | 55 |
56 private: | 56 private: |
57 void PersistCookiesInternal(net::URLRequestContextGetter* getter); | 57 void PersistCookiesInternal(net::URLRequestContextGetter* getter); |
58 void RestoreToCookieJarInternal(net::URLRequestContextGetter* getter, | 58 void RestoreToCookieJarInternal(net::URLRequestContextGetter* getter, |
59 const net::CanonicalCookie& cookie); | 59 const net::CanonicalCookie& cookie); |
60 | 60 |
61 base::android::ScopedJavaGlobalRef<jobject> jobject_; | 61 base::android::ScopedJavaGlobalRef<jobject> jobject_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(CookiesFetcher); | 63 DISALLOW_COPY_AND_ASSIGN(CookiesFetcher); |
64 }; | 64 }; |
65 | 65 |
66 // Registers the CookiesFetcher native method. | 66 // Registers the CookiesFetcher native method. |
67 bool RegisterCookiesFetcher(JNIEnv* env); | 67 bool RegisterCookiesFetcher(JNIEnv* env); |
68 | 68 |
69 #endif // CHROME_BROWSER_ANDROID_COOKIES_COOKIES_FETCHER_H_ | 69 #endif // CHROME_BROWSER_ANDROID_COOKIES_COOKIES_FETCHER_H_ |
OLD | NEW |