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..3e3ca316736acc457ac4d1a6f16107b04480df07 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; |
} |
@@ -94,7 +97,7 @@ class ContentHandlerApp : public ApplicationDelegate, |
void Initialize(ApplicationImpl* app) override {} |
- bool ConfigureIncomingConnection(ApplicationConnection* connection) override { |
+ bool ConfigureIncomingConnection(ApplicationConnection* connection, const std::string& url) override { |
connection->AddService(this); |
return true; |
} |