/external/chromium_org/chrome/browser/signin/ |
signin_manager_cookie_helper.h | 10 #include "net/cookies/canonical_cookie.h" 25 // Starts fetching gaia cookies, which will notify its completion via 28 const base::Callback<void(const net::CookieList& cookies)>& callback); 30 // Starts fetching cookies for the given URL. 33 const base::Callback<void(const net::CookieList& cookies)>& callback); 39 // Fetch cookies for the given URL. This must be called in the IO thread. 42 // Callback for fetching cookies. This must be called in the IO thread. 43 void OnCookiesFetched(const net::CookieList& cookies); 46 void NotifyOnUIThread(const net::CookieList& cookies); 50 base::Callback<void(const net::CookieList& cookies)> completion_callback_ [all...] |
signin_manager_cookie_helper.cc | 11 #include "net/cookies/cookie_monster.h" 26 const base::Callback<void(const net::CookieList& cookies)>& callback) { 33 const base::Callback<void(const net::CookieList& cookies)>& callback) { 60 const net::CookieList& cookies) { 64 base::Bind(&SigninManagerCookieHelper::NotifyOnUIThread, this, cookies)); 68 const net::CookieList& cookies) { 70 base::ResetAndReturn(&completion_callback_).Run(cookies);
|
/external/apache-http/src/org/apache/http/impl/client/ |
BasicCookieStore.java | 60 private final ArrayList<Cookie> cookies; field in class:BasicCookieStore 71 this.cookies = new ArrayList<Cookie>(); 76 * Adds an {@link Cookie HTTP cookie}, replacing any existing equivalent cookies. 88 for (Iterator<Cookie> it = cookies.iterator(); it.hasNext();) { 95 cookies.add(cookie); 101 * Adds an array of {@link Cookie HTTP cookies}. Cookies are added individually and 102 * in the given array order. If any of the given cookies has already expired it will 105 * @param cookies the {@link Cookie cookies} to be adde [all...] |
/external/chromium_org/chrome/browser/browsing_data/ |
browsing_data_cookie_helper_unittest.cc | 11 #include "net/cookies/canonical_cookie.h" 12 #include "net/cookies/parsed_cookie.h" 46 void FetchCallback(const net::CookieList& cookies) { 47 ASSERT_EQ(2UL, cookies.size()); 48 cookie_list_ = cookies; 49 net::CookieList::const_iterator it = cookies.begin(); 51 // Correct because fetching cookies will get a sorted cookie list. 52 ASSERT_TRUE(it != cookies.end()); 56 ASSERT_TRUE(++it != cookies.end()); 60 ASSERT_TRUE(++it == cookies.end()) 341 net::CookieList cookies; local [all...] |
/external/chromium_org/content/browser/net/ |
sqlite_persistent_cookie_store_unittest.cc | 26 #include "net/cookies/canonical_cookie.h" 27 #include "net/cookies/cookie_constants.h" 38 const base::FilePath::CharType kCookieFilename[] = FILE_PATH_LITERAL("Cookies"); 83 void OnLoaded(const CanonicalCookieVector& cookies) { 84 cookies_ = cookies; 88 void OnKeyLoaded(const CanonicalCookieVector& cookies) { 89 cookies_ = cookies; 93 void Load(CanonicalCookieVector* cookies) { 98 *cookies = cookies_; 130 CanonicalCookieVector* cookies) { 144 CanonicalCookieVector cookies; local 201 CanonicalCookieVector cookies; local 244 CanonicalCookieVector cookies; local 376 CanonicalCookieVector cookies; local 404 CanonicalCookieVector cookies; local 443 CanonicalCookieVector cookies; local 508 CanonicalCookieVector cookies; local 538 CanonicalCookieVector cookies; local [all...] |
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowCookieManager.java | 18 private Map<String,String> cookies = new HashMap<String, String>(); field in class:ShadowCookieManager 31 cookies.put(url, value); 36 return cookies.get(url); 51 cookies.clear();
|
/external/chromium_org/chrome/browser/extensions/api/cookies/ |
cookies_helpers.h | 6 // Extensions Cookies API implemented in 7 // chrome/browser/extensions/api/cookies/cookies_api.cc. This separate interface 18 #include "chrome/common/extensions/api/cookies.h" 19 #include "net/cookies/cookie_monster.h" 20 #include "net/cookies/canonical_cookie.h" 40 typedef std::vector<linked_ptr<extensions::api::cookies::Cookie> > 54 // by the cookies API. 55 scoped_ptr<extensions::api::cookies::Cookie> CreateCookie( 59 // Allocates and constructs a new CookieStore object as defined by the cookies 61 scoped_ptr<extensions::api::cookies::CookieStore> CreateCookieStore [all...] |
/external/chromium/chrome/browser/net/ |
sqlite_persistent_cookie_store_unittest.cc | 32 std::vector<net::CookieMonster::CanonicalCookie*> cookies; local 33 ASSERT_TRUE(store_->Load(&cookies)); 34 ASSERT_TRUE(0 == cookies.size()); 81 std::vector<net::CookieMonster::CanonicalCookie*> cookies; local 94 ASSERT_TRUE(store_->Load(&cookies)); 95 ASSERT_EQ(1U, cookies.size()); 96 ASSERT_STREQ("http://foo.bar", cookies[0]->Domain().c_str()); 97 ASSERT_STREQ("A", cookies[0]->Name().c_str()); 98 ASSERT_STREQ("B", cookies[0]->Value().c_str()); 101 store_->DeleteCookie(*cookies[0]) [all...] |
cookie_policy_browsertest.cc | 25 std::string* cookies) 29 cookies_(cookies) {} 52 std::string cookies; local 60 new GetCookiesTask(url, context_getter, &event, &cookies))); 62 return cookies; 100 // third-party cookie blocking if the first party for cookies URL is not
|
/external/chromium_org/chrome/browser/ui/webui/options/ |
cookies_view_browsertest.js | 6 * TestFixture for cookies view WebUI testing. 16 * Browse to the cookies view. 18 browsePreload: 'chrome://settings-frame/cookies', 21 // Test opening the cookies view has correct location. 29 var searchBox = cookiesView.pageDiv.querySelector('.cookies-search-box');
|
/external/chromium_org/content/renderer/ |
renderer_webcookiejar_impl.cc | 29 WebString RendererWebCookieJarImpl::cookies( function in class:content::RendererWebCookieJarImpl 39 return cookies(url, first_party_for_cookies); 45 std::vector<CookieData> cookies; local 48 url, first_party_for_cookies, &cookies)); 50 WebVector<WebCookie> result(cookies.size()); 51 for (size_t i = 0; i < cookies.size(); ++i) { 52 const CookieData& c = cookies[i];
|
renderer_webcookiejar_impl.h | 27 virtual blink::WebString cookies( 33 blink::WebVector<blink::WebCookie>& cookies);
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
CookieManagerTest.java | 80 private static Map<String, List<String>> addCookie(String[][] cookies) { 82 for (int i = 0; i < cookies.length; i++) { 84 for (int j = 1; j < cookies[i].length; j += 2) { 85 fields.add(cookies[i][j]); 87 responseHeaders.put(cookies[i][0], fields); 92 private static CookieManager store(String[][] cookies, 96 // Put all cookies into manager 97 for (int i = 0; i < cookies.length; i++) { 98 for (int j = 2; j < cookies[i].length; j += 2) { 99 URI uri = new URI(cookies[i][j]) 114 String[][] cookies = { local [all...] |
/external/chromium/chrome/browser/importer/ |
toolbar_importer_utils.cc | 30 std::string cookies = store->GetCookiesWithOptions(url, options); local 32 base::SplitString(cookies, kSplitStringToken, &cookie_list);
|
/external/chromium/chrome/browser/resources/ |
collected_cookies.js | 15 var allowedCookies = $('allowed-cookies'); 20 var blockedCookies = $('blocked-cookies'); 32 var selected = $('allowed-cookies').selectedItem; 40 var selected = $('blocked-cookies').selectedItem; 46 var selected = $('blocked-cookies').selectedItem; 52 ui.CookiesTree.decorate($('allowed-cookies')); 53 ui.CookiesTree.decorate($('blocked-cookies')); 57 $('allowed-cookies').addEventListener('change', handleCookiesTreeChange); 58 $('blocked-cookies').addEventListener('change', handleCookiesTreeChange);
|
/libcore/luni/src/main/java/java/net/ |
CookieManager.java | 27 * the storage of cookies from the policy which decides to accept or deny 28 * cookies. The constructor can have two arguments: a CookieStore and a 36 * some cookies into a cookie store. Three built-in CookiePolicy is defined: 93 * Searches and gets all cookies in the cache by the specified uri in the 100 * @return a map that record all such cookies, the map is unchangeable 123 private static Map<String, List<String>> cookiesToHeaders(List<HttpCookie> cookies) { 124 if (cookies.isEmpty()) { 130 // If all cookies are version 1, add a version 1 header. No header for version 0 cookies. 132 for (HttpCookie cookie : cookies) { 164 List<HttpCookie> cookies = parseCookie(responseHeaders); local 207 List<HttpCookie> cookies = new ArrayList<HttpCookie>(); local [all...] |
CookieStoreImpl.java | 40 List<HttpCookie> cookies = map.get(uri); local 41 if (cookies == null) { 42 cookies = new ArrayList<HttpCookie>(); 43 map.put(uri, cookies); 45 cookies.remove(cookie); 47 cookies.add(cookie); 68 // get cookies associated with given URI. If none, returns an empty list 74 i.remove(); // remove expired cookies 81 // get all cookies that domain matches the URI 94 i.remove(); // remove expired cookies 130 List<HttpCookie> cookies = map.get(cookiesUri(uri)); local [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/ |
CookiesTable.js | 100 * @param {!Array.<!WebInspector.Cookie>} cookies 102 setCookies: function(cookies) 104 this.setCookieFolders([{cookies: cookies}]); 108 * @param {!Array.<!{folderName: ?string, cookies: !Array.<!WebInspector.Cookie>}>} cookieFolders 131 var cookies = this._data[i].cookies; 132 for (var j = 0, cookieCount = cookies.length; j < cookieCount; ++j) { 133 if (!domain || cookies[j].domain() === domain) 134 cookies[j].remove() [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/api/cookies/ |
manager.js | 5 if (!chrome.cookies) { 6 chrome.cookies = chrome.experimental.cookies; 22 // Compares cookies for "key" (name, domain, etc.) equality, but not "value" 46 // An object used for caching data about the browser's cookies, which we update 123 chrome.cookies.getAll({}, function(cookies) { 124 for (var i in cookies) { 125 cache.add(cookies[i]); 126 removeCookie(cookies[i]) [all...] |
/external/apache-http/src/org/apache/http/impl/cookie/ |
RFC2109Spec.java | 131 public List<Header> formatCookies(List<Cookie> cookies) { 132 if (cookies == null) { 133 throw new IllegalArgumentException("List of cookies may not be null"); 135 if (cookies.isEmpty()) { 136 throw new IllegalArgumentException("List of cookies may not be empty"); 138 if (cookies.size() > 1) { 140 cookies = new ArrayList<Cookie>(cookies); 141 Collections.sort(cookies, PATH_COMPARATOR); 144 return doFormatOneHeader(cookies); [all...] |
/external/chromium_org/third_party/WebKit/Source/core/loader/ |
CookieJar.h | 39 String cookies(const Document*, const KURL&);
|
CookieJar.cpp | 58 String cookies(const Document* document, const KURL& url) function in namespace:WebCore 63 return cookieJar->cookies(url, document->firstPartyForCookies()); 90 bool getRawCookies(const Document* document, const KURL& url, Vector<Cookie>& cookies) 92 cookies.clear(); 100 cookies.append(Cookie(webCookie.name, webCookie.value, webCookie.domain, webCookie.path,
|
/external/chromium_org/content/browser/media/android/ |
media_resource_getter_impl.h | 15 #include "net/cookies/canonical_cookie.h" 51 const std::string& url, const std::string& cookies, 59 const GetCookieCB& callback, const std::string& cookies); 74 // Render process id, used to check whether the process can access cookies.
|
/external/apache-http/src/org/apache/http/cookie/ |
CookieSpec.java | 43 * <li> rules of validation of parsed cookies 64 * Parse the <tt>"Set-Cookie"</tt> Header into an array of Cookies. 100 * Create <tt>"Cookie"</tt> headers for an array of Cookies. 102 * @param cookies the Cookies format into a Cookie header 103 * @return a Header for the given Cookies. 106 List<Header> formatCookies(List<Cookie> cookies);
|
/external/chromium/chrome/browser/chromeos/login/ |
image_downloader.h | 36 const ResponseCookies& cookies,
|