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

Side by Side Diff: chrome/renderer/renderer_webcookiejar_impl.cc

Issue 3106018: Reapplies all the IPC system work (reverts the revert r56272). (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/renderer/renderer_webcookiejar_impl.h" 5 #include "chrome/renderer/renderer_webcookiejar_impl.h"
6 6
7 #include "chrome/common/render_messages.h" 7 #include "chrome/common/render_messages.h"
8 #include "chrome/renderer/render_thread.h" 8 #include "chrome/renderer/render_thread.h"
9 #include "third_party/WebKit/WebKit/chromium/public/WebCookie.h" 9 #include "third_party/WebKit/WebKit/chromium/public/WebCookie.h"
10 #include "webkit/glue/webcookie.h"
10 11
11 using WebKit::WebCookie; 12 using WebKit::WebCookie;
12 using WebKit::WebString; 13 using WebKit::WebString;
13 using WebKit::WebURL; 14 using WebKit::WebURL;
14 using WebKit::WebVector; 15 using WebKit::WebVector;
15 16
16 void RendererWebCookieJarImpl::setCookie( 17 void RendererWebCookieJarImpl::setCookie(
17 const WebURL& url, const WebURL& first_party_for_cookies, 18 const WebURL& url, const WebURL& first_party_for_cookies,
18 const WebString& value) { 19 const WebString& value) {
19 std::string value_utf8; 20 std::string value_utf8;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 sender_->Send(new ViewHostMsg_DeleteCookie(url, cookie_name_utf8)); 68 sender_->Send(new ViewHostMsg_DeleteCookie(url, cookie_name_utf8));
68 } 69 }
69 70
70 bool RendererWebCookieJarImpl::cookiesEnabled( 71 bool RendererWebCookieJarImpl::cookiesEnabled(
71 const WebURL& url, const WebURL& first_party_for_cookies) { 72 const WebURL& url, const WebURL& first_party_for_cookies) {
72 bool enabled; 73 bool enabled;
73 sender_->Send(new ViewHostMsg_GetCookiesEnabled( 74 sender_->Send(new ViewHostMsg_GetCookiesEnabled(
74 url, first_party_for_cookies, &enabled)); 75 url, first_party_for_cookies, &enabled));
75 return enabled; 76 return enabled;
76 } 77 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_widget.cc ('k') | chrome/renderer/safe_browsing/phishing_dom_feature_extractor_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698