Build authenticating_url_loader_interceptor library.

R=ppi@chromium.org

Review URL: https://codereview.chromium.org/1995573002 .
diff --git a/services/authenticating_url_loader_interceptor/BUILD.gn b/services/authenticating_url_loader_interceptor/BUILD.gn
index b90bb14..4306c70 100644
--- a/services/authenticating_url_loader_interceptor/BUILD.gn
+++ b/services/authenticating_url_loader_interceptor/BUILD.gn
@@ -8,6 +8,17 @@
 
 mojo_native_application("authenticating_url_loader_interceptor") {
   sources = [
+    "main.cc",
+  ]
+
+  deps = [
+    ":lib",
+    "//mojo/application",
+  ]
+}
+
+source_set("lib") {
+  sources = [
     "authenticating_url_loader_interceptor.cc",
     "authenticating_url_loader_interceptor.h",
     "authenticating_url_loader_interceptor_app.cc",
diff --git a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_app.cc b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_app.cc
index ffa7d09..e936ae5 100644
--- a/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_app.cc
+++ b/services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_app.cc
@@ -4,8 +4,6 @@
 
 #include "services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_app.h"
 
-#include "mojo/application/application_runner_chromium.h"
-#include "mojo/public/c/system/main.h"
 #include "mojo/public/cpp/application/application_impl.h"
 #include "services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_meta_factory_impl.h"
 
@@ -40,9 +38,3 @@
 }
 
 }  // namespace mojo
-
-MojoResult MojoMain(MojoHandle application_request) {
-  mojo::ApplicationRunnerChromium runner(
-      new mojo::AuthenticatingURLLoaderInterceptorApp);
-  return runner.Run(application_request);
-}
diff --git a/services/authenticating_url_loader_interceptor/main.cc b/services/authenticating_url_loader_interceptor/main.cc
new file mode 100644
index 0000000..e375196
--- /dev/null
+++ b/services/authenticating_url_loader_interceptor/main.cc
@@ -0,0 +1,13 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "mojo/application/application_runner_chromium.h"
+#include "mojo/public/c/system/main.h"
+#include "services/authenticating_url_loader_interceptor/authenticating_url_loader_interceptor_app.h"
+
+MojoResult MojoMain(MojoHandle application_request) {
+  mojo::ApplicationRunnerChromium runner(
+      new mojo::AuthenticatingURLLoaderInterceptorApp);
+  return runner.Run(application_request);
+}