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

Side by Side Diff: chrome/browser/io_thread.h

Issue 8775067: Clear DNS cache and passive log collected on incognito close. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove call to IOThread::message_loop() Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('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) 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_BROWSER_IO_THREAD_H_ 5 #ifndef CHROME_BROWSER_IO_THREAD_H_
6 #define CHROME_BROWSER_IO_THREAD_H_ 6 #define CHROME_BROWSER_IO_THREAD_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 ChromeNetLog* net_log, 99 ChromeNetLog* net_log,
100 ExtensionEventRouterForwarder* extension_event_router_forwarder); 100 ExtensionEventRouterForwarder* extension_event_router_forwarder);
101 101
102 virtual ~IOThread(); 102 virtual ~IOThread();
103 103
104 // Can only be called on the IO thread. 104 // Can only be called on the IO thread.
105 Globals* globals(); 105 Globals* globals();
106 106
107 ChromeNetLog* net_log(); 107 ChromeNetLog* net_log();
108 108
109 // Handles changing to On The Record mode, discarding confidential data.
110 void ChangedToOnTheRecord();
111
109 // Returns a getter for the URLRequestContext. Only called on the UI thread. 112 // Returns a getter for the URLRequestContext. Only called on the UI thread.
110 net::URLRequestContextGetter* system_url_request_context_getter(); 113 net::URLRequestContextGetter* system_url_request_context_getter();
111 114
112 // Clears the host cache. Intended to be used to prevent exposing recently 115 // Clears the host cache. Intended to be used to prevent exposing recently
113 // visited sites on about:net-internals/#dns and about:dns pages. Must be 116 // visited sites on about:net-internals/#dns and about:dns pages. Must be
114 // called on the IO thread. 117 // called on the IO thread.
115 void ClearHostCache(); 118 void ClearHostCache();
116 119
117 private: 120 private:
118 // BrowserThreadDelegate implementation, runs on the IO thread. 121 // BrowserThreadDelegate implementation, runs on the IO thread.
(...skipping 17 matching lines...) Expand all
136 void InitSystemRequestContextOnIOThread(); 139 void InitSystemRequestContextOnIOThread();
137 140
138 static void RegisterPrefs(PrefService* local_state); 141 static void RegisterPrefs(PrefService* local_state);
139 142
140 net::HttpAuthHandlerFactory* CreateDefaultAuthHandlerFactory( 143 net::HttpAuthHandlerFactory* CreateDefaultAuthHandlerFactory(
141 net::HostResolver* resolver); 144 net::HostResolver* resolver);
142 145
143 // Returns an SSLConfigService instance. 146 // Returns an SSLConfigService instance.
144 net::SSLConfigService* GetSSLConfigService(); 147 net::SSLConfigService* GetSSLConfigService();
145 148
149 void ChangedToOnTheRecordOnIOThread();
150
146 // The NetLog is owned by the browser process, to allow logging from other 151 // The NetLog is owned by the browser process, to allow logging from other
147 // threads during shutdown, but is used most frequently on the IOThread. 152 // threads during shutdown, but is used most frequently on the IOThread.
148 ChromeNetLog* net_log_; 153 ChromeNetLog* net_log_;
149 154
150 // The ExtensionEventRouterForwarder allows for sending events to extensions 155 // The ExtensionEventRouterForwarder allows for sending events to extensions
151 // from the IOThread. 156 // from the IOThread.
152 ExtensionEventRouterForwarder* extension_event_router_forwarder_; 157 ExtensionEventRouterForwarder* extension_event_router_forwarder_;
153 158
154 // These member variables are basically global, but their lifetimes are tied 159 // These member variables are basically global, but their lifetimes are tied
155 // to the IOThread. IOThread owns them all, despite not using scoped_ptr. 160 // to the IOThread. IOThread owns them all, despite not using scoped_ptr.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 system_url_request_context_getter_; 194 system_url_request_context_getter_;
190 195
191 net::SdchManager* sdch_manager_; 196 net::SdchManager* sdch_manager_;
192 197
193 base::WeakPtrFactory<IOThread> weak_factory_; 198 base::WeakPtrFactory<IOThread> weak_factory_;
194 199
195 DISALLOW_COPY_AND_ASSIGN(IOThread); 200 DISALLOW_COPY_AND_ASSIGN(IOThread);
196 }; 201 };
197 202
198 #endif // CHROME_BROWSER_IO_THREAD_H_ 203 #endif // CHROME_BROWSER_IO_THREAD_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/io_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698