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

Side by Side Diff: content/child/sync_load_response.h

Issue 2105713002: Render process changes for ResourceTiming sizes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resource_timing_sizes_browser_process
Patch Set: Initialise encoded_body_length for sync XHR to data: URLs Created 4 years, 5 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CONTENT_CHILD_SYNC_LOAD_RESPONSE_H_ 5 #ifndef CONTENT_CHILD_SYNC_LOAD_RESPONSE_H_
6 #define CONTENT_CHILD_SYNC_LOAD_RESPONSE_H_ 6 #define CONTENT_CHILD_SYNC_LOAD_RESPONSE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "content/public/common/resource_response_info.h" 10 #include "content/public/common/resource_response_info.h"
11 #include "url/gurl.h" 11 #include "url/gurl.h"
12 12
13 namespace content { 13 namespace content {
14 14
15 // See the SyncLoad method. (The name of this struct is not 15 // See the SyncLoad method. (The name of this struct is not
16 // suffixed with "Info" because it also contains the response data.) 16 // suffixed with "Info" because it also contains the response data.)
17 struct SyncLoadResponse : ResourceResponseInfo { 17 struct CONTENT_EXPORT SyncLoadResponse : ResourceResponseInfo {
18 SyncLoadResponse(); 18 SyncLoadResponse();
19 ~SyncLoadResponse(); 19 ~SyncLoadResponse();
20 20
21 // The response error code. 21 // The response error code.
22 int error_code; 22 int error_code;
23 23
24 // The final URL of the response. This may differ from the request URL in 24 // The final URL of the response. This may differ from the request URL in
25 // the case of a server redirect. 25 // the case of a server redirect.
26 GURL url; 26 GURL url;
27 27
28 // The response data. 28 // The response data.
29 std::string data; 29 std::string data;
30 }; 30 };
31 31
32 } // namespace content 32 } // namespace content
33 33
34 #endif // CONTENT_CHILD_SYNC_LOAD_RESPONSE_H_ 34 #endif // CONTENT_CHILD_SYNC_LOAD_RESPONSE_H_
OLDNEW
« no previous file with comments | « content/child/shared_memory_received_data_factory_unittest.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698