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

Side by Side Diff: webkit/glue/resource_handle_impl.cc

Issue 112055: Roll DEPS and fix build bustage. Propagate rename of policyBaseURL -> firstP... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 | Annotate | Revision Log
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 // This file replaces WebCore/platform/network/win/ResourceHandleWin.cpp with a 5 // This file replaces WebCore/platform/network/win/ResourceHandleWin.cpp with a
6 // platform-neutral implementation that simply defers almost entirely to 6 // platform-neutral implementation that simply defers almost entirely to
7 // ResouceLoaderBridge. 7 // ResouceLoaderBridge.
8 // 8 //
9 // This uses the same ResourceHandle.h header file that the rest of WebKit 9 // This uses the same ResourceHandle.h header file that the rest of WebKit
10 // uses, allowing us to avoid complicated changes. Our specific things are 10 // uses, allowing us to avoid complicated changes. Our specific things are
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 std::string main_frame_origin = 416 std::string main_frame_origin =
417 webkit_glue::StringToStdString(request_.firstPartyForCookies().string()); 417 webkit_glue::StringToStdString(request_.firstPartyForCookies().string());
418 418
419 // TODO(darin): is latin1 really correct here? It is if the strings are 419 // TODO(darin): is latin1 really correct here? It is if the strings are
420 // already ASCII (i.e., if they are already escaped properly). 420 // already ASCII (i.e., if they are already escaped properly).
421 // TODO(brettw) this should take parameter encoding into account when 421 // TODO(brettw) this should take parameter encoding into account when
422 // creating the GURLs. 422 // creating the GURLs.
423 bridge_.reset(ResourceLoaderBridge::Create( 423 bridge_.reset(ResourceLoaderBridge::Create(
424 webkit_glue::CStringToStdString(method), 424 webkit_glue::CStringToStdString(method),
425 url, 425 url,
426 webkit_glue::KURLToGURL(request_.policyURL()), 426 webkit_glue::KURLToGURL(request_.firstPartyForCookies()),
427 referrer, 427 referrer,
428 frame_origin, 428 frame_origin,
429 main_frame_origin, 429 main_frame_origin,
430 webkit_glue::CStringToStdString(headerBuf.latin1()), 430 webkit_glue::CStringToStdString(headerBuf.latin1()),
431 load_flags_, 431 load_flags_,
432 requestor_pid, 432 requestor_pid,
433 FromTargetType(request_.targetType()), 433 FromTargetType(request_.targetType()),
434 request_.appCacheContextID(), 434 request_.appCacheContextID(),
435 request_.requestorID())); 435 request_.requestorID()));
436 if (!bridge_.get()) 436 if (!bridge_.get())
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 // if the request cannot be serviced from cache. We force the 'DontLoad' 756 // if the request cannot be serviced from cache. We force the 'DontLoad'
757 // cache policy at this point to ensure that we never hit the network for 757 // cache policy at this point to ensure that we never hit the network for
758 // this request. 758 // this request.
759 // 759 //
760 DCHECK(request.httpMethod() == "POST"); 760 DCHECK(request.httpMethod() == "POST");
761 request.setCachePolicy(ReturnCacheDataDontLoad); 761 request.setCachePolicy(ReturnCacheDataDontLoad);
762 return true; 762 return true;
763 } 763 }
764 764
765 } // namespace WebCore 765 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698