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

Unified Diff: chrome/browser/renderer_host/resource_dispatcher_host.h

Issue 149238: Change the lifetime of the WebKit thread to be a subset of the IO thread's li... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/resource_dispatcher_host.h
===================================================================
--- chrome/browser/renderer_host/resource_dispatcher_host.h (revision 20100)
+++ chrome/browser/renderer_host/resource_dispatcher_host.h (working copy)
@@ -292,7 +292,7 @@
}
WebKitThread* webkit_thread() const {
- return webkit_thread_;
+ return webkit_thread_.get();
}
MessageLoop* ui_loop() const { return ui_loop_; }
@@ -529,7 +529,8 @@
scoped_refptr<SafeBrowsingService> safe_browsing_;
- scoped_refptr<WebKitThread> webkit_thread_;
+ // We own the WebKit thread and see to its destruction.
+ scoped_ptr<WebKitThread> webkit_thread_;
// Request ID for browser initiated requests. request_ids generated by
// child processes are counted up from 0, while browser created requests
« no previous file with comments | « chrome/browser/in_process_webkit/webkit_thread_unittest.cc ('k') | chrome/browser/renderer_host/resource_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698