Skip to content

Commit

Permalink
make more cross platform, use process_utils to get proc id. remove un…
Browse files Browse the repository at this point in the history
…used header.

Review URL: http://codereview.chromium.org/1857

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1985 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
pinkerton@google.com committed Sep 10, 2008
1 parent a75ca09 commit 3c8c8cb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions webkit/glue/resource_handle_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
#include "ResourceError.h"
#include "ResourceHandle.h"
#include "ResourceHandleClient.h"
#include "ResourceHandleWin.h" // for Platform{Response,Data}Struct
#include "ResourceRequest.h"
#include "ResourceResponse.h"
#pragma warning(pop)

#undef LOG
#include "base/logging.h"
#include "base/message_loop.h"
#include "base/process_util.h"
#include "base/time.h"
#include "base/string_util.h"
#include "base/string_tokenizer.h"
Expand Down Expand Up @@ -296,7 +296,7 @@ bool ResourceHandleInternal::Start(
request_.frame() ? WebFrameImpl::FromFrame(request_.frame()) : NULL;

CString method = request_.httpMethod().latin1();
GURL referrer(webkit_glue::StringToStdWString(request_.httpReferrer()));
GURL referrer(webkit_glue::StringToStdString(request_.httpReferrer()));

// Compute the URL of the load.
GURL url = webkit_glue::KURLToGURL(request_.url());
Expand All @@ -319,7 +319,7 @@ bool ResourceHandleInternal::Start(
GURL policy_url;
if (request_.resourceType() != ResourceType::MAIN_FRAME &&
request_.frame() && request_.frame()->document()) {
policy_url = GURL(webkit_glue::StringToStdWString(
policy_url = GURL(webkit_glue::StringToStdString(
request_.frame()->document()->policyBaseURL()));
}

Expand All @@ -334,8 +334,8 @@ bool ResourceHandleInternal::Start(
if (!headerMap.contains("accept"))
request_.addHTTPHeaderField("Accept", "*/*");

const String crlf(L"\r\n");
const String sep(L": ");
const String crlf("\r\n");
const String sep(": ");
for (HTTPHeaderMap::const_iterator it = headerMap.begin();
it != headerMap.end(); ++it) {
// Skip over referrer headers found in the header map because we already
Expand Down Expand Up @@ -377,7 +377,7 @@ bool ResourceHandleInternal::Start(
// have a origin_pid. Find a better place to set this.
int origin_pid = request_.originPid();
if (origin_pid == 0)
origin_pid = ::GetCurrentProcessId();
origin_pid = process_util::GetCurrentProcId();

bool mixed_content =
webkit_glue::KURLToGURL(request_.mainDocumentURL()).SchemeIsSecure() &&
Expand Down

0 comments on commit 3c8c8cb

Please sign in to comment.