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

Unified Diff: examples/content_handler_demo/content_handler_demo.cc

Issue 943053003: Simple multi-url support for mojo apps (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebase + fix android Created 5 years, 10 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
Index: examples/content_handler_demo/content_handler_demo.cc
diff --git a/examples/content_handler_demo/content_handler_demo.cc b/examples/content_handler_demo/content_handler_demo.cc
index 4069e0d5969064b706710a466bdfeb29d5bfef5a..29166f81942758d0825846df81e55d6fff920d1e 100644
--- a/examples/content_handler_demo/content_handler_demo.cc
+++ b/examples/content_handler_demo/content_handler_demo.cc
@@ -30,9 +30,12 @@ class PrintBodyApplication : public Application {
virtual void AcceptConnection(const String& requestor_url,
InterfaceRequest<ServiceProvider> services,
- ServiceProviderPtr exported_services) override {
- printf("ContentHandler::OnConnect - requestor_url:%s - body follows\n\n",
- requestor_url.To<std::string>().c_str());
+ ServiceProviderPtr exported_services,
+ const String& url) override {
+ printf(
+ "ContentHandler::OnConnect - url:%s - requestor_url:%s - body "
+ "follows\n\n",
+ url.To<std::string>().c_str(), requestor_url.To<std::string>().c_str());
PrintResponse(body_.Pass());
delete this;
}

Powered by Google App Engine
This is Rietveld 408576698