blob: 034fbede8bd77e0cbd261f6eb2bdd60322893cd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "webkit/tools/test_shell/simple_webcookiejar_impl.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h"
#include "webkit/tools/test_shell/simple_resource_loader_bridge.h"
using WebKit::WebString;
using WebKit::WebURL;
void SimpleWebCookieJarImpl::setCookie(const WebURL& url,
const WebURL& first_party_for_cookies,
const WebString& value) {
SimpleResourceLoaderBridge::SetCookie(
url, first_party_for_cookies, value.utf8());
}
WebString SimpleWebCookieJarImpl::cookies(
const WebURL& url,
const WebURL& first_party_for_cookies) {
return WebString::fromUTF8(
SimpleResourceLoaderBridge::GetCookies(url, first_party_for_cookies));
}
|