| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "chrome/browser/net/url_fetcher.h" | 5 #include "chrome/browser/net/url_fetcher.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
| 9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/thread.h" | 10 #include "base/thread.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 void StartURLRequest(); | 62 void StartURLRequest(); |
| 63 void CancelURLRequest(); | 63 void CancelURLRequest(); |
| 64 void OnCompletedURLRequest(const URLRequestStatus& status); | 64 void OnCompletedURLRequest(const URLRequestStatus& status); |
| 65 | 65 |
| 66 URLFetcher* fetcher_; // Corresponding fetcher object | 66 URLFetcher* fetcher_; // Corresponding fetcher object |
| 67 GURL original_url_; // The URL we were asked to fetch | 67 GURL original_url_; // The URL we were asked to fetch |
| 68 GURL url_; // The URL we eventually wound up at | 68 GURL url_; // The URL we eventually wound up at |
| 69 RequestType request_type_; // What type of request is this? | 69 RequestType request_type_; // What type of request is this? |
| 70 URLFetcher::Delegate* delegate_; // Object to notify on completion | 70 URLFetcher::Delegate* delegate_; // Object to notify on completion |
| 71 MessageLoop* delegate_loop_; // Message loop of the creating thread | 71 MessageLoop* delegate_loop_; // Message loop of the creating thread |
| 72 scoped_refptr<MessageLoopProxy> io_message_loop_proxy_; | 72 scoped_refptr<base::MessageLoopProxy> io_message_loop_proxy_; |
| 73 // The message loop proxy for the thread | 73 // The message loop proxy for the thread |
| 74 // on which the request IO happens. | 74 // on which the request IO happens. |
| 75 URLRequest* request_; // The actual request this wraps | 75 URLRequest* request_; // The actual request this wraps |
| 76 int load_flags_; // Flags for the load operation | 76 int load_flags_; // Flags for the load operation |
| 77 int response_code_; // HTTP status code for the request | 77 int response_code_; // HTTP status code for the request |
| 78 std::string data_; // Results of the request | 78 std::string data_; // Results of the request |
| 79 scoped_refptr<net::IOBuffer> buffer_; | 79 scoped_refptr<net::IOBuffer> buffer_; |
| 80 // Read buffer | 80 // Read buffer |
| 81 scoped_refptr<URLRequestContextGetter> request_context_getter_; | 81 scoped_refptr<URLRequestContextGetter> request_context_getter_; |
| 82 // Cookie/cache info for the request | 82 // Cookie/cache info for the request |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 core_->Start(); | 352 core_->Start(); |
| 353 } | 353 } |
| 354 | 354 |
| 355 const GURL& URLFetcher::url() const { | 355 const GURL& URLFetcher::url() const { |
| 356 return core_->url_; | 356 return core_->url_; |
| 357 } | 357 } |
| 358 | 358 |
| 359 URLFetcher::Delegate* URLFetcher::delegate() const { | 359 URLFetcher::Delegate* URLFetcher::delegate() const { |
| 360 return core_->delegate(); | 360 return core_->delegate(); |
| 361 } | 361 } |
| OLD | NEW |