| OLD | NEW |
| (Empty) |
| 1 // Copyright 2014 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 MOJO_APPS_JS_CONTENT_HANDLER_IMPL_H_ | |
| 6 #define MOJO_APPS_JS_CONTENT_HANDLER_IMPL_H_ | |
| 7 | |
| 8 #include "mojo/services/public/interfaces/content_handler/content_handler.mojom.
h" | |
| 9 | |
| 10 namespace mojo { | |
| 11 namespace apps { | |
| 12 | |
| 13 class ApplicationDelegateImpl; | |
| 14 | |
| 15 // Starts a new JSApp for each OnConnect call(). | |
| 16 class ContentHandlerImpl : public InterfaceImpl<ContentHandler> { | |
| 17 public: | |
| 18 ContentHandlerImpl(ApplicationDelegateImpl* app_delegate_impl); | |
| 19 | |
| 20 private: | |
| 21 ~ContentHandlerImpl() override; | |
| 22 void OnConnect(const mojo::String& url, | |
| 23 URLResponsePtr content, | |
| 24 InterfaceRequest<ServiceProvider> service_provider) override; | |
| 25 | |
| 26 ApplicationDelegateImpl* app_delegate_impl_; | |
| 27 }; | |
| 28 | |
| 29 } // namespace apps | |
| 30 } // namespace mojo | |
| 31 | |
| 32 #endif // MOJO_APPS_JS_CONTENT_HANDLER_IMPL_H_ | |
| OLD | NEW |