When enabling new profile management programmatically, make sure to set the
[chromium-blink-merge.git] / webkit / browser / fileapi / file_system_url_request_job_factory.h
blobbcc55dca443b29fd4a66cbfa9a26b32b6792e3d2
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_FACTORY_H_
6 #define WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_FACTORY_H_
8 #include <string>
10 #include "net/url_request/url_request_job_factory.h"
12 #include "webkit/browser/webkit_storage_browser_export.h"
14 namespace base {
15 class MessageLoopProxy;
16 } // namespace base
18 namespace fileapi {
20 class FileSystemContext;
22 // |context|'s lifetime should exceed the lifetime of the ProtocolHandler.
23 // Currently, this is only used by ProfileIOData which owns |context| and the
24 // ProtocolHandler.
25 WEBKIT_STORAGE_BROWSER_EXPORT net::URLRequestJobFactory::ProtocolHandler*
26 CreateFileSystemProtocolHandler(const std::string& storage_domain,
27 FileSystemContext* context);
29 } // namespace fileapi
31 #endif // WEBKIT_BROWSER_FILEAPI_FILE_SYSTEM_URL_REQUEST_JOB_FACTORY_H_