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); |
}; |