| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_COMMON_NET_URL_REQUEST_INTERCEPT_JOB_H_ | 5 #ifndef CHROME_COMMON_NET_URL_REQUEST_INTERCEPT_JOB_H_ |
| 6 #define CHROME_COMMON_NET_URL_REQUEST_INTERCEPT_JOB_H_ | 6 #define CHROME_COMMON_NET_URL_REQUEST_INTERCEPT_JOB_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 } | 30 } |
| 31 | 31 |
| 32 URLRequestInterceptJob(net::URLRequest* request, ChromePluginLib* plugin, | 32 URLRequestInterceptJob(net::URLRequest* request, ChromePluginLib* plugin, |
| 33 ScopableCPRequest* cprequest); | 33 ScopableCPRequest* cprequest); |
| 34 virtual ~URLRequestInterceptJob(); | 34 virtual ~URLRequestInterceptJob(); |
| 35 | 35 |
| 36 // Plugin callbacks. | 36 // Plugin callbacks. |
| 37 void OnStartCompleted(int result); | 37 void OnStartCompleted(int result); |
| 38 void OnReadCompleted(int bytes_read); | 38 void OnReadCompleted(int bytes_read); |
| 39 | 39 |
| 40 // URLRequestJob | 40 // net::URLRequestJob |
| 41 virtual void Start(); | 41 virtual void Start(); |
| 42 virtual void Kill(); | 42 virtual void Kill(); |
| 43 virtual bool GetMimeType(std::string* mime_type) const; | 43 virtual bool GetMimeType(std::string* mime_type) const; |
| 44 virtual bool GetCharset(std::string* charset); | 44 virtual bool GetCharset(std::string* charset); |
| 45 virtual void GetResponseInfo(net::HttpResponseInfo* info); | 45 virtual void GetResponseInfo(net::HttpResponseInfo* info); |
| 46 virtual int GetResponseCode() const; | 46 virtual int GetResponseCode() const; |
| 47 virtual bool GetContentEncodings( | 47 virtual bool GetContentEncodings( |
| 48 std::vector<Filter::FilterType>* encoding_types); | 48 std::vector<Filter::FilterType>* encoding_types); |
| 49 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); | 49 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); |
| 50 | 50 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 64 scoped_ptr<ScopableCPRequest> cprequest_; | 64 scoped_ptr<ScopableCPRequest> cprequest_; |
| 65 ChromePluginLib* plugin_; | 65 ChromePluginLib* plugin_; |
| 66 net::IOBuffer* read_buffer_; | 66 net::IOBuffer* read_buffer_; |
| 67 int read_buffer_size_; | 67 int read_buffer_size_; |
| 68 ScopedRunnableMethodFactory<URLRequestInterceptJob> method_factory_; | 68 ScopedRunnableMethodFactory<URLRequestInterceptJob> method_factory_; |
| 69 | 69 |
| 70 DISALLOW_COPY_AND_ASSIGN(URLRequestInterceptJob); | 70 DISALLOW_COPY_AND_ASSIGN(URLRequestInterceptJob); |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 #endif // CHROME_COMMON_NET_URL_REQUEST_INTERCEPT_JOB_H_ | 73 #endif // CHROME_COMMON_NET_URL_REQUEST_INTERCEPT_JOB_H_ |
| OLD | NEW |