| OLD | NEW |
| 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 #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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 protected: | 51 protected: |
| 52 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read); | 52 virtual bool ReadRawData(net::IOBuffer* buf, int buf_size, int* bytes_read); |
| 53 | 53 |
| 54 private: | 54 private: |
| 55 void StartAsync(); | 55 void StartAsync(); |
| 56 void DetachPlugin(); | 56 void DetachPlugin(); |
| 57 | 57 |
| 58 NotificationRegistrar registrar_; | 58 NotificationRegistrar registrar_; |
| 59 scoped_ptr<ScopableCPRequest> cprequest_; | 59 scoped_ptr<ScopableCPRequest> cprequest_; |
| 60 ChromePluginLib* plugin_; | 60 ChromePluginLib* plugin_; |
| 61 bool got_headers_; | |
| 62 net::IOBuffer* read_buffer_; | 61 net::IOBuffer* read_buffer_; |
| 63 int read_buffer_size_; | 62 int read_buffer_size_; |
| 64 | 63 |
| 65 DISALLOW_COPY_AND_ASSIGN(URLRequestInterceptJob); | 64 DISALLOW_COPY_AND_ASSIGN(URLRequestInterceptJob); |
| 66 }; | 65 }; |
| 67 | 66 |
| 68 #endif // CHROME_COMMON_NET_URL_REQUEST_INTERCEPT_JOB_H_ | 67 #endif // CHROME_COMMON_NET_URL_REQUEST_INTERCEPT_JOB_H_ |
| OLD | NEW |