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

Side by Side Diff: chrome/common/render_messages.h

Issue 11264: Drop Set-Cookie from XHR response headers (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | net/http/http_cache.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_COMMON_RENDER_MESSAGES_H_ 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_
6 #define CHROME_COMMON_RENDER_MESSAGES_H_ 6 #define CHROME_COMMON_RENDER_MESSAGES_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include <map> 10 #include <map>
(...skipping 1369 matching lines...) Expand 10 before | Expand all | Expand 10 after
1380 l->append(L")"); 1380 l->append(L")");
1381 } 1381 }
1382 } 1382 }
1383 }; 1383 };
1384 1384
1385 template <> 1385 template <>
1386 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders>> { 1386 struct ParamTraits<scoped_refptr<net::HttpResponseHeaders>> {
1387 typedef scoped_refptr<net::HttpResponseHeaders> param_type; 1387 typedef scoped_refptr<net::HttpResponseHeaders> param_type;
1388 static void Write(Message* m, const param_type& p) { 1388 static void Write(Message* m, const param_type& p) {
1389 WriteParam(m, p.get() != NULL); 1389 WriteParam(m, p.get() != NULL);
1390 if (p) 1390 if (p) {
1391 p->Persist(m, false); 1391 // Do not disclose Set-Cookie headers over IPC.
1392 p->Persist(m, net::HttpResponseHeaders::PERSIST_SANS_COOKIES);
1393 }
1392 } 1394 }
1393 static bool Read(const Message* m, void** iter, param_type* r) { 1395 static bool Read(const Message* m, void** iter, param_type* r) {
1394 bool has_object; 1396 bool has_object;
1395 if (!ReadParam(m, iter, &has_object)) 1397 if (!ReadParam(m, iter, &has_object))
1396 return false; 1398 return false;
1397 if (has_object) 1399 if (has_object)
1398 *r = new net::HttpResponseHeaders(*m, iter); 1400 *r = new net::HttpResponseHeaders(*m, iter);
1399 return true; 1401 return true;
1400 } 1402 }
1401 static void Log(const param_type& p, std::wstring* l) { 1403 static void Log(const param_type& p, std::wstring* l) {
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
1703 ReadParam(m, iter, &p->available_rect); 1705 ReadParam(m, iter, &p->available_rect);
1704 } 1706 }
1705 static void Log(const param_type& p, std::wstring* l) { 1707 static void Log(const param_type& p, std::wstring* l) {
1706 l->append(L"<webkit_glue::ScreenInfo>"); 1708 l->append(L"<webkit_glue::ScreenInfo>");
1707 } 1709 }
1708 }; 1710 };
1709 1711
1710 } // namespace IPC 1712 } // namespace IPC
1711 1713
1712 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 1714 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | net/http/http_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698