OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 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. |
| 4 |
| 5 #ifndef CONTENT_BROWSER_LOADER_LOADER_SERVICE_CONTEXT_H_ |
| 6 #define CONTENT_BROWSER_LOADER_LOADER_SERVICE_CONTEXT_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/callback.h" |
| 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "content/browser/loader/loader_test_service_impl.h" |
| 13 |
| 14 namespace content { |
| 15 |
| 16 class LoaderTestServiceContext final { |
| 17 public: |
| 18 LoaderTestServiceContext(); |
| 19 ~LoaderTestServiceContext(); |
| 20 |
| 21 void CreateService(mojo::InterfaceRequest<LoaderTestService> request); |
| 22 // Called when a service has a connection error. After this call, it is no |
| 23 // longer safe to access |service|. |
| 24 void ServiceHadConnectionError(LoaderTestService* service); |
| 25 |
| 26 std::vector<scoped_ptr<LoaderTestServiceImpl>> services_; |
| 27 }; |
| 28 |
| 29 } // namespace content |
| 30 |
| 31 #endif // CONTENT_LOADER_LOADER_SERVICE_CONTEXT_H_ |
OLD | NEW |