| OLD | NEW |
| 1 // Copyright (c) 2011 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 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 |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "base/task.h" | 12 #include "base/task.h" |
| 13 #include "net/url_request/url_request_job.h" | |
| 14 #include "chrome/common/chrome_plugin_api.h" | 13 #include "chrome/common/chrome_plugin_api.h" |
| 15 #include "chrome/common/chrome_plugin_util.h" | 14 #include "chrome/common/chrome_plugin_util.h" |
| 16 #include "chrome/common/notification_registrar.h" | 15 #include "content/common/notification_registrar.h" |
| 16 #include "net/url_request/url_request_job.h" |
| 17 | 17 |
| 18 namespace net { | 18 namespace net { |
| 19 class URLRequest; | 19 class URLRequest; |
| 20 } // namespace net | 20 } // namespace net |
| 21 | 21 |
| 22 class ChromePluginLib; | 22 class ChromePluginLib; |
| 23 | 23 |
| 24 // A request job that handles network requests intercepted by a Chrome plugin. | 24 // A request job that handles network requests intercepted by a Chrome plugin. |
| 25 class URLRequestInterceptJob : public net::URLRequestJob, | 25 class URLRequestInterceptJob : public net::URLRequestJob, |
| 26 public NotificationObserver { | 26 public NotificationObserver { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 |