Index: content/browser/loader/loader_test_service_context.h |
diff --git a/content/browser/loader/loader_test_service_context.h b/content/browser/loader/loader_test_service_context.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..4fb20fcd9947ebb6ee93e0c4ff5657908b0386ce |
--- /dev/null |
+++ b/content/browser/loader/loader_test_service_context.h |
@@ -0,0 +1,31 @@ |
+// Copyright 2015 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. |
+ |
+#ifndef CONTENT_BROWSER_LOADER_LOADER_SERVICE_CONTEXT_H_ |
+#define CONTENT_BROWSER_LOADER_LOADER_SERVICE_CONTEXT_H_ |
+ |
+#include <vector> |
+ |
+#include "base/callback.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "content/browser/loader/loader_test_service_impl.h" |
+ |
+namespace content { |
+ |
+class LoaderTestServiceContext final { |
+ public: |
+ LoaderTestServiceContext(); |
+ ~LoaderTestServiceContext(); |
+ |
+ void CreateService(mojo::InterfaceRequest<LoaderTestService> request); |
+ // Called when a service has a connection error. After this call, it is no |
+ // longer safe to access |service|. |
+ void ServiceHadConnectionError(LoaderTestService* service); |
+ |
+ std::vector<scoped_ptr<LoaderTestServiceImpl>> services_; |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_LOADER_LOADER_SERVICE_CONTEXT_H_ |