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

Side by Side Diff: webkit/glue/resource_loader_bridge.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 // The intent of this file is to provide a type-neutral abstraction between 5 // The intent of this file is to provide a type-neutral abstraction between
6 // Chrome and WebKit for resource loading. This pure-virtual interface is 6 // Chrome and WebKit for resource loading. This pure-virtual interface is
7 // implemented by the embedder, which also provides a factory method Create 7 // implemented by the embedder, which also provides a factory method Create
8 // to instantiate this object. 8 // to instantiate this object.
9 // 9 //
10 // One of these objects will be created by WebKit for each request. WebKit 10 // One of these objects will be created by WebKit for each request. WebKit
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 // deemed unsafe). 84 // deemed unsafe).
85 virtual void OnReceivedResponse(const ResponseInfo& info, 85 virtual void OnReceivedResponse(const ResponseInfo& info,
86 bool content_filtered) = 0; 86 bool content_filtered) = 0;
87 87
88 // Called when a chunk of response data is available. This method may 88 // Called when a chunk of response data is available. This method may
89 // be called multiple times or not at all if an error occurs. 89 // be called multiple times or not at all if an error occurs.
90 virtual void OnReceivedData(const char* data, int len) = 0; 90 virtual void OnReceivedData(const char* data, int len) = 0;
91 91
92 // Called when the response is complete. This method signals completion of 92 // Called when the response is complete. This method signals completion of
93 // the resource load. 93 // the resource load.
94 virtual void OnCompletedRequest(const URLRequestStatus& status) = 0; 94 virtual void OnCompletedRequest(const URLRequestStatus& status,
95 const std::string& security_info) = 0;
darin (slow to review) 2009/03/04 19:29:01 so, iirc, we echo the security_info here in case O
jcampan 2009/03/04 22:33:43 That's right, if the load of a resource failed we
95 96
96 // Returns the URL of the request, which allows us to display it in 97 // Returns the URL of the request, which allows us to display it in
97 // debugging situations. 98 // debugging situations.
98 virtual std::string GetURLForDebugging() = 0; 99 virtual std::string GetURLForDebugging() = 0;
99 }; 100 };
100 101
101 // use Create() for construction, but anybody can delete at any time, 102 // use Create() for construction, but anybody can delete at any time,
102 // INCLUDING during processing of callbacks. 103 // INCLUDING during processing of callbacks.
103 virtual ~ResourceLoaderBridge() {} 104 virtual ~ResourceLoaderBridge() {}
104 105
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 ResourceLoaderBridge() {} 198 ResourceLoaderBridge() {}
198 199
199 private: 200 private:
200 DISALLOW_EVIL_CONSTRUCTORS(ResourceLoaderBridge); 201 DISALLOW_EVIL_CONSTRUCTORS(ResourceLoaderBridge);
201 }; 202 };
202 203
203 } // namespace webkit_glue 204 } // namespace webkit_glue
204 205
205 #endif // RESOURCE_LOADER_BRIDGE__ 206 #endif // RESOURCE_LOADER_BRIDGE__
206 207
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698