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: chrome/browser/renderer_host/resource_handler.h

Issue 7276: Adding security info to canceled requests (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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
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 // This is the browser side of the resource dispatcher, it receives requests 5 // This is the browser side of the resource dispatcher, it receives requests
6 // from the RenderProcessHosts, and dispatches them to URLRequests. It then 6 // from the RenderProcessHosts, and dispatches them to URLRequests. It then
7 // fowards the messages from the URLRequests back to the correct process for 7 // fowards the messages from the URLRequests back to the correct process for
8 // handling. 8 // handling.
9 // 9 //
10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 10 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
11 11
12 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_HANDLER_H_ 12 #ifndef CHROME_BROWSER_RENDERER_HOST_RESOURCE_HANDLER_H_
13 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_HANDLER_H_ 13 #define CHROME_BROWSER_RENDERER_HOST_RESOURCE_HANDLER_H_
14 14
15 #include <string>
16
15 #include "base/basictypes.h" 17 #include "base/basictypes.h"
16 #include "base/ref_counted.h" 18 #include "base/ref_counted.h"
17 #include "chrome/common/filter_policy.h" 19 #include "chrome/common/filter_policy.h"
18 #include "googleurl/src/gurl.h" 20 #include "googleurl/src/gurl.h"
19 #include "net/url_request/url_request.h" 21 #include "net/url_request/url_request.h"
20 #include "webkit/glue/resource_loader_bridge.h" 22 #include "webkit/glue/resource_loader_bridge.h"
21 23
22 // Parameters for a resource response header. 24 // Parameters for a resource response header.
23 struct ResourceResponseHead 25 struct ResourceResponseHead
24 : webkit_glue::ResourceLoaderBridge::ResponseInfo { 26 : webkit_glue::ResourceLoaderBridge::ResponseInfo {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 int min_size) = 0; 77 int min_size) = 0;
76 78
77 // Data (*bytes_read bytes) was written into the buffer provided by 79 // Data (*bytes_read bytes) was written into the buffer provided by
78 // OnWillRead. A return value of false cancels the request, true continues 80 // OnWillRead. A return value of false cancels the request, true continues
79 // reading data. 81 // reading data.
80 virtual bool OnReadCompleted(int request_id, int* bytes_read) = 0; 82 virtual bool OnReadCompleted(int request_id, int* bytes_read) = 0;
81 83
82 // The response is complete. The final response status is given. 84 // The response is complete. The final response status is given.
83 // Returns false if the handler is deferring the call to a later time. 85 // Returns false if the handler is deferring the call to a later time.
84 virtual bool OnResponseCompleted(int request_id, 86 virtual bool OnResponseCompleted(int request_id,
85 const URLRequestStatus& status) = 0; 87 const URLRequestStatus& status,
88 const std::string& security_info) = 0;
86 }; 89 };
87 90
88 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_HANDLER_H_ 91 #endif // CHROME_BROWSER_RENDERER_HOST_RESOURCE_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698