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

Unified Diff: content/renderer/renderer_webcookiejar_impl.cc

Issue 1082623002: Remove GetRawCookies and DeleteCookie implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/renderer/renderer_webcookiejar_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/renderer_webcookiejar_impl.cc
diff --git a/content/renderer/renderer_webcookiejar_impl.cc b/content/renderer/renderer_webcookiejar_impl.cc
index f1d9a587e14025eb488e3f646135153e49cc5612..71d797e3600b6b5d6f7246cd37d445494b903b1f 100644
--- a/content/renderer/renderer_webcookiejar_impl.cc
+++ b/content/renderer/renderer_webcookiejar_impl.cc
@@ -5,16 +5,12 @@
#include "content/renderer/renderer_webcookiejar_impl.h"
#include "base/strings/utf_string_conversions.h"
-#include "content/common/cookie_data.h"
#include "content/common/view_messages.h"
#include "content/public/renderer/content_renderer_client.h"
#include "content/renderer/render_view_impl.h"
-#include "third_party/WebKit/public/platform/WebCookie.h"
-using blink::WebCookie;
using blink::WebString;
using blink::WebURL;
-using blink::WebVector;
namespace content {
@@ -39,34 +35,6 @@ WebString RendererWebCookieJarImpl::cookieRequestHeaderFieldValue(
return cookies(url, first_party_for_cookies);
}
-void RendererWebCookieJarImpl::rawCookies(
- const WebURL& url, const WebURL& first_party_for_cookies,
- WebVector<WebCookie>& raw_cookies) {
- std::vector<CookieData> cookies;
- sender_->Send(new ViewHostMsg_GetRawCookies(
- url, first_party_for_cookies, &cookies));
-
- WebVector<WebCookie> result(cookies.size());
- for (size_t i = 0; i < cookies.size(); ++i) {
- const CookieData& c = cookies[i];
- result[i] = WebCookie(WebString::fromUTF8(c.name),
- WebString::fromUTF8(c.value),
- WebString::fromUTF8(c.domain),
- WebString::fromUTF8(c.path),
- c.expires,
- c.http_only,
- c.secure,
- c.session);
- }
- raw_cookies.swap(result);
-}
-
-void RendererWebCookieJarImpl::deleteCookie(
- const WebURL& url, const WebString& cookie_name) {
- std::string cookie_name_utf8 = base::UTF16ToUTF8(cookie_name);
- sender_->Send(new ViewHostMsg_DeleteCookie(url, cookie_name_utf8));
-}
-
bool RendererWebCookieJarImpl::cookiesEnabled(
const WebURL& url, const WebURL& first_party_for_cookies) {
bool cookies_enabled = false;
« no previous file with comments | « content/renderer/renderer_webcookiejar_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698