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