| OLD | NEW |
| 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-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/automation/automation_profile_impl.h" | 5 #include "chrome/browser/automation/automation_profile_impl.h" |
| 6 #include "chrome/browser/chrome_thread.h" | 6 #include "chrome/browser/chrome_thread.h" |
| 7 #include "chrome/browser/net/chrome_url_request_context.h" | 7 #include "chrome/browser/net/chrome_url_request_context.h" |
| 8 #include "chrome/browser/profile.h" | 8 #include "chrome/browser/profile.h" |
| 9 #include "net/url_request/url_request_context.h" | 9 #include "net/url_request/url_request_context.h" |
| 10 #include "chrome/test/automation/automation_messages.h" | 10 #include "chrome/test/automation/automation_messages.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // Clear out members before calling base class dtor since we don't | 31 // Clear out members before calling base class dtor since we don't |
| 32 // own any of them. | 32 // own any of them. |
| 33 | 33 |
| 34 // Clear URLRequestContext members. | 34 // Clear URLRequestContext members. |
| 35 host_resolver_ = NULL; | 35 host_resolver_ = NULL; |
| 36 proxy_service_ = NULL; | 36 proxy_service_ = NULL; |
| 37 http_transaction_factory_ = NULL; | 37 http_transaction_factory_ = NULL; |
| 38 ftp_transaction_factory_ = NULL; | 38 ftp_transaction_factory_ = NULL; |
| 39 cookie_store_ = NULL; | 39 cookie_store_ = NULL; |
| 40 strict_transport_security_state_ = NULL; | 40 strict_transport_security_state_ = NULL; |
| 41 | |
| 42 // Clear ChromeURLRequestContext members. | |
| 43 blacklist_ = NULL; | |
| 44 } | 41 } |
| 45 | 42 |
| 46 scoped_refptr<ChromeURLRequestContext> original_context_; | 43 scoped_refptr<ChromeURLRequestContext> original_context_; |
| 47 DISALLOW_COPY_AND_ASSIGN(AutomationURLRequestContext); | 44 DISALLOW_COPY_AND_ASSIGN(AutomationURLRequestContext); |
| 48 }; | 45 }; |
| 49 | 46 |
| 50 // CookieStore specialization to have automation specific | 47 // CookieStore specialization to have automation specific |
| 51 // behavior for cookies. | 48 // behavior for cookies. |
| 52 class AutomationCookieStore : public net::CookieStore { | 49 class AutomationCookieStore : public net::CookieStore { |
| 53 public: | 50 public: |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 ChromeURLRequestContextGetter* request_context = | 166 ChromeURLRequestContextGetter* request_context = |
| 170 new ChromeURLRequestContextGetter( | 167 new ChromeURLRequestContextGetter( |
| 171 NULL, // Don't register an observer on PrefService. | 168 NULL, // Don't register an observer on PrefService. |
| 172 new Factory(original_context, profile, automation_client, | 169 new Factory(original_context, profile, automation_client, |
| 173 tab_handle)); | 170 tab_handle)); |
| 174 return request_context; | 171 return request_context; |
| 175 } | 172 } |
| 176 | 173 |
| 177 } // namespace AutomationRequestContext | 174 } // namespace AutomationRequestContext |
| 178 | 175 |
| OLD | NEW |