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

Side by Side Diff: content/common/resource_response.h

Issue 8680036: Move ResourceResponse struct into the Content API, since it's used in Chrome. While at it, I also... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: add gypi changes Created 9 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 | « content/common/resource_messages.h ('k') | content/common/resource_response.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6
7 #ifndef CONTENT_COMMON_RESOURCE_RESPONSE_H_
8 #define CONTENT_COMMON_RESOURCE_RESPONSE_H_
9 #pragma once
10
11 #include <string>
12
13 #include "base/memory/ref_counted.h"
14 #include "content/common/content_export.h"
15 #include "googleurl/src/gurl.h"
16 #include "net/url_request/url_request_status.h"
17 #include "webkit/glue/resource_loader_bridge.h"
18
19 // Parameters for a resource response header.
20 struct ResourceResponseHead : webkit_glue::ResourceResponseInfo {
21 // The response status.
22 net::URLRequestStatus status;
23 };
24
25 // Parameters for a synchronous resource response.
26 struct SyncLoadResult : ResourceResponseHead {
27 // The final URL after any redirects.
28 GURL final_url;
29
30 // The response data.
31 std::string data;
32 };
33
34 // Simple wrapper that refcounts ResourceResponseHead.
35 struct CONTENT_EXPORT ResourceResponse
36 : public base::RefCounted<ResourceResponse> {
37 ResourceResponse();
38
39 ResourceResponseHead response_head;
40
41 private:
42 friend class base::RefCounted<ResourceResponse>;
43
44 ~ResourceResponse();
45 };
46
47 #endif // CONTENT_COMMON_RESOURCE_RESPONSE_H_
OLDNEW
« no previous file with comments | « content/common/resource_messages.h ('k') | content/common/resource_response.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698