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

Unified Diff: chrome/renderer/render_thread.h

Issue 3151029: Add a file thread to the renderer process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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
« no previous file with comments | « no previous file | chrome/renderer/render_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_thread.h
===================================================================
--- chrome/renderer/render_thread.h (revision 56828)
+++ chrome/renderer/render_thread.h (working copy)
@@ -47,6 +47,11 @@
struct ViewMsg_New_Params;
struct WebPreferences;
+namespace base {
+class MessageLoopProxy;
+class Thread;
+}
+
namespace IPC {
struct ChannelHandle;
}
@@ -228,6 +233,11 @@
std::string GetExtensionIdByBrowseExtent(const GURL& url);
+ // Returns a MessageLoopProxy instance corresponding to the message loop
+ // of the thread on which file operations should be run. Must be called
+ // on the renderer's main thread.
+ scoped_refptr<base::MessageLoopProxy> GetFileThreadMessageLoopProxy();
+
private:
virtual void OnControlMessageReceived(const IPC::Message& msg);
@@ -366,6 +376,9 @@
struct ExtensionInfo;
std::vector<ExtensionInfo> extension_extents_;
+ // A lazily initiated thread on which file operations are run.
+ scoped_ptr<base::Thread> file_thread_;
+
DISALLOW_COPY_AND_ASSIGN(RenderThread);
};
« no previous file with comments | « no previous file | chrome/renderer/render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698