Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: chrome/browser/automation/automation_profile_impl.cc

Issue 371063: Integrate BlacklistManager with Profile. (Closed)
Patch Set: trybot fixes Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/extensions_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extensions_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698