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

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

Issue 56016: Fix renderer hang caused when a synchronous XHR is disallowed for security... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/data/sync_xmlhttprequest_disallowed.html ('k') | no next file » | 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 5
6 #include "config.h" 6 #include "config.h"
7 7
8 #include "webkit/glue/resource_loader_bridge.h" 8 #include "webkit/glue/resource_loader_bridge.h"
9 9
10 #include "net/http/http_response_headers.h" 10 #include "net/http/http_response_headers.h"
11 11
12 namespace webkit_glue { 12 namespace webkit_glue {
13 13
14 ResourceLoaderBridge::ResponseInfo::ResponseInfo() { 14 ResourceLoaderBridge::ResponseInfo::ResponseInfo() {
15 content_length = -1;
15 #if defined(OS_WIN) 16 #if defined(OS_WIN)
16 response_data_file = base::kInvalidPlatformFileValue; 17 response_data_file = base::kInvalidPlatformFileValue;
17 #elif defined(OS_POSIX) 18 #elif defined(OS_POSIX)
18 response_data_file.fd = base::kInvalidPlatformFileValue; 19 response_data_file.fd = base::kInvalidPlatformFileValue;
19 response_data_file.auto_close = false; 20 response_data_file.auto_close = false;
20 #endif 21 #endif
21 } 22 }
22 23
23 ResourceLoaderBridge::ResponseInfo::~ResponseInfo() { 24 ResourceLoaderBridge::ResponseInfo::~ResponseInfo() {
24 } 25 }
25 26
26 ResourceLoaderBridge::SyncLoadResponse::SyncLoadResponse() { 27 ResourceLoaderBridge::SyncLoadResponse::SyncLoadResponse() {
27 } 28 }
28 29
29 ResourceLoaderBridge::SyncLoadResponse::~SyncLoadResponse() { 30 ResourceLoaderBridge::SyncLoadResponse::~SyncLoadResponse() {
30 } 31 }
31 32
32 ResourceLoaderBridge::ResourceLoaderBridge() { 33 ResourceLoaderBridge::ResourceLoaderBridge() {
33 } 34 }
34 35
35 ResourceLoaderBridge::~ResourceLoaderBridge() { 36 ResourceLoaderBridge::~ResourceLoaderBridge() {
36 } 37 }
37 38
38 } // namespace webkit_glue 39 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « chrome/test/data/sync_xmlhttprequest_disallowed.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698