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

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

Issue 10640019: Remove the HANDLED_EXTERNALLY status code. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: hack, hack, hack Created 8 years, 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #ifndef CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_H_ 7 #ifndef CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_H_
8 #define CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_H_ 8 #define CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_H_
9 #pragma once 9 #pragma once
10 10
(...skipping 16 matching lines...) Expand all
27 base::TimeTicks request_start; 27 base::TimeTicks request_start;
28 // TimeTicks::Now() when the browser sent the response to the renderer. 28 // TimeTicks::Now() when the browser sent the response to the renderer.
29 base::TimeTicks response_start; 29 base::TimeTicks response_start;
30 }; 30 };
31 31
32 // Parameters for a synchronous resource response. 32 // Parameters for a synchronous resource response.
33 struct SyncLoadResult : ResourceResponseHead { 33 struct SyncLoadResult : ResourceResponseHead {
34 // The final URL after any redirects. 34 // The final URL after any redirects.
35 GURL final_url; 35 GURL final_url;
36 36
37 bool handled_externally;
38
37 // The response data. 39 // The response data.
38 std::string data; 40 std::string data;
39 }; 41 };
40 42
41 // Simple wrapper that refcounts ResourceResponseHead. 43 // Simple wrapper that refcounts ResourceResponseHead.
42 // Inherited, rather than typedef'd, to allow forward declarations. 44 // Inherited, rather than typedef'd, to allow forward declarations.
43 struct CONTENT_EXPORT ResourceResponse 45 struct CONTENT_EXPORT ResourceResponse
44 : public base::RefCounted<ResourceResponse> { 46 : public base::RefCounted<ResourceResponse> {
45 public: 47 public:
46 ResourceResponseHead head; 48 ResourceResponseHead head;
47 49
48 private: 50 private:
49 friend class base::RefCounted<ResourceResponse>; 51 friend class base::RefCounted<ResourceResponse>;
50 ~ResourceResponse() {} 52 ~ResourceResponse() {}
51 }; 53 };
52 54
53 } // namespace content 55 } // namespace content
54 56
55 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_H_ 57 #endif // CONTENT_PUBLIC_COMMON_RESOURCE_RESPONSE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698