Make ReadRawData a public member, so there is no need to detect types.
This commit is contained in:
parent
2a462cc2b7
commit
d8cd3d78ff
3 changed files with 3 additions and 24 deletions
|
@ -52,17 +52,9 @@ class AdapterRequestJob : public net::URLRequestJob {
|
|||
void CreateJobFromProtocolHandlerAndStart();
|
||||
|
||||
private:
|
||||
enum JOB_TYPE {
|
||||
REQUEST_ERROR_JOB,
|
||||
REQUEST_STRING_JOB,
|
||||
REQUEST_FILE_JOB,
|
||||
};
|
||||
|
||||
// The delegated request job.
|
||||
scoped_refptr<net::URLRequestJob> real_job_;
|
||||
|
||||
// Type of the delegated url request job.
|
||||
JOB_TYPE type_;
|
||||
|
||||
// Default protocol handler.
|
||||
ProtocolHandler* protocol_handler_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue