summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request_job_manager.cc
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-17 19:41:59 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-17 19:41:59 +0000
commit64b421f984b2dfe04546729f8b35648cac3d0f20 (patch)
tree203b0854c00042706ba8f2d3fe4f7e28e94dd21b /net/url_request/url_request_job_manager.cc
parenta3b82be177993e41fc47999a2e9714e6d238406e (diff)
downloadchromium_src-64b421f984b2dfe04546729f8b35648cac3d0f20.zip
chromium_src-64b421f984b2dfe04546729f8b35648cac3d0f20.tar.gz
chromium_src-64b421f984b2dfe04546729f8b35648cac3d0f20.tar.bz2
Review URL: http://codereview.chromium.org/2942
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2321 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request_job_manager.cc')
-rw-r--r--net/url_request/url_request_job_manager.cc19
1 files changed, 17 insertions, 2 deletions
diff --git a/net/url_request/url_request_job_manager.cc b/net/url_request/url_request_job_manager.cc
index 711917e..b04e13c 100644
--- a/net/url_request/url_request_job_manager.cc
+++ b/net/url_request/url_request_job_manager.cc
@@ -4,24 +4,39 @@
#include "net/url_request/url_request_job_manager.h"
+#include "build/build_config.h"
#include "base/string_util.h"
#include "net/base/load_flags.h"
#include "net/url_request/url_request_about_job.h"
#include "net/url_request/url_request_error_job.h"
+#if defined(OS_WIN)
#include "net/url_request/url_request_file_job.h"
#include "net/url_request/url_request_ftp_job.h"
+#else
+// TODO(playmobil): Implement on non-windows platforms.
+#endif
#include "net/url_request/url_request_http_job.h"
#include "net/url_request/url_request_view_cache_job.h"
// The built-in set of protocol factories
-static const struct {
+namespace {
+
+struct SchemeToFactory {
const char* scheme;
URLRequest::ProtocolFactory* factory;
-} kBuiltinFactories[] = {
+};
+
+} // namespace
+
+static const SchemeToFactory kBuiltinFactories[] = {
{ "http", URLRequestHttpJob::Factory },
{ "https", URLRequestHttpJob::Factory },
+#if defined(OS_WIN)
{ "file", URLRequestFileJob::Factory },
{ "ftp", URLRequestFtpJob::Factory },
+#else
+// TODO(playmobil): Implement on non-windows platforms.
+#endif
{ "about", URLRequestAboutJob::Factory },
{ "view-cache", URLRequestViewCacheJob::Factory },
};