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" |
11 #include "net/url_request/url_request_job.h" | 11 #include "net/url_request/url_request_job.h" |
12 #include "chrome/browser/chrome_plugin_host.h" | |
13 #include "chrome/common/chrome_plugin_api.h" | 12 #include "chrome/common/chrome_plugin_api.h" |
14 #include "chrome/common/chrome_plugin_util.h" | 13 #include "chrome/common/chrome_plugin_util.h" |
15 #include "chrome/common/notification_registrar.h" | 14 #include "chrome/common/notification_registrar.h" |
16 | 15 |
17 class ChromePluginLib; | 16 class ChromePluginLib; |
18 class URLRequest; | 17 class URLRequest; |
19 | 18 |
20 // A request job that handles network requests intercepted by a Chrome plugin. | 19 // A request job that handles network requests intercepted by a Chrome plugin. |
21 class URLRequestInterceptJob | 20 class URLRequestInterceptJob |
22 : public URLRequestJob, public NotificationObserver { | 21 : public URLRequestJob, public NotificationObserver { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 scoped_ptr<ScopableCPRequest> cprequest_; | 55 scoped_ptr<ScopableCPRequest> cprequest_; |
57 ChromePluginLib* plugin_; | 56 ChromePluginLib* plugin_; |
58 bool got_headers_; | 57 bool got_headers_; |
59 net::IOBuffer* read_buffer_; | 58 net::IOBuffer* read_buffer_; |
60 int read_buffer_size_; | 59 int read_buffer_size_; |
61 | 60 |
62 DISALLOW_COPY_AND_ASSIGN(URLRequestInterceptJob); | 61 DISALLOW_COPY_AND_ASSIGN(URLRequestInterceptJob); |
63 }; | 62 }; |
64 | 63 |
65 #endif // CHROME_COMMON_NET_URL_REQUEST_INTERCEPT_JOB_H_ | 64 #endif // CHROME_COMMON_NET_URL_REQUEST_INTERCEPT_JOB_H_ |
OLD | NEW |