Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(651)

Unified Diff: content/browser/loader/loader_test_service_context.h

Issue 1461283002: [DO NOT COMMIT] mojo datapipe performance measurement Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/loader/loader_test_service_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « no previous file | content/browser/loader/loader_test_service_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698