| OLD | NEW |
| 1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_ | 5 #ifndef NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_ |
| 6 #define NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_ | 6 #define NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 #if defined(OS_CHROMEOS) | 33 #if defined(OS_CHROMEOS) |
| 34 static bool AccessDisabled(const FilePath& file_path); | 34 static bool AccessDisabled(const FilePath& file_path); |
| 35 #endif | 35 #endif |
| 36 | 36 |
| 37 // URLRequestJob: | 37 // URLRequestJob: |
| 38 virtual void Start(); | 38 virtual void Start(); |
| 39 virtual void Kill(); | 39 virtual void Kill(); |
| 40 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read); | 40 virtual bool ReadRawData(IOBuffer* buf, int buf_size, int* bytes_read); |
| 41 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); | 41 virtual bool IsRedirectResponse(GURL* location, int* http_status_code); |
| 42 virtual bool GetContentEncodings( | 42 virtual Filter* SetupFilter() const; |
| 43 std::vector<Filter::FilterType>* encoding_type); | |
| 44 virtual bool GetMimeType(std::string* mime_type) const; | 43 virtual bool GetMimeType(std::string* mime_type) const; |
| 45 virtual void SetExtraRequestHeaders(const HttpRequestHeaders& headers); | 44 virtual void SetExtraRequestHeaders(const HttpRequestHeaders& headers); |
| 46 | 45 |
| 47 protected: | 46 protected: |
| 48 virtual ~URLRequestFileJob(); | 47 virtual ~URLRequestFileJob(); |
| 49 | 48 |
| 50 // The OS-specific full path name of the file | 49 // The OS-specific full path name of the file |
| 51 FilePath file_path_; | 50 FilePath file_path_; |
| 52 | 51 |
| 53 private: | 52 private: |
| (...skipping 14 matching lines...) Expand all Loading... |
| 68 #endif | 67 #endif |
| 69 | 68 |
| 70 ScopedRunnableMethodFactory<URLRequestFileJob> method_factory_; | 69 ScopedRunnableMethodFactory<URLRequestFileJob> method_factory_; |
| 71 | 70 |
| 72 DISALLOW_COPY_AND_ASSIGN(URLRequestFileJob); | 71 DISALLOW_COPY_AND_ASSIGN(URLRequestFileJob); |
| 73 }; | 72 }; |
| 74 | 73 |
| 75 } // namespace net | 74 } // namespace net |
| 76 | 75 |
| 77 #endif // NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_ | 76 #endif // NET_URL_REQUEST_URL_REQUEST_FILE_JOB_H_ |
| OLD | NEW |