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

Unified Diff: sky/viewer/content_handler_impl.cc

Issue 687273002: mojo: Update content handler API (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Add missing comment Created 6 years, 2 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 | « sky/viewer/content_handler_impl.h ('k') | sky/viewer/document_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/viewer/content_handler_impl.cc
diff --git a/sky/viewer/content_handler_impl.cc b/sky/viewer/content_handler_impl.cc
index 27f8841fe3692ff9c75e46dac18d30a83c57935c..6a2d103f239b3f980efbcc1e6293aa5f160d0129 100644
--- a/sky/viewer/content_handler_impl.cc
+++ b/sky/viewer/content_handler_impl.cc
@@ -9,21 +9,16 @@
namespace sky {
ContentHandlerImpl::ContentHandlerImpl(
- mojo::Shell* shell,
scoped_refptr<base::MessageLoopProxy> compositor_thread)
- : shell_(shell),
- compositor_thread_(compositor_thread) {
+ : compositor_thread_(compositor_thread) {
}
ContentHandlerImpl::~ContentHandlerImpl() {
}
-void ContentHandlerImpl::OnConnect(
- const mojo::String& url,
- mojo::URLResponsePtr response,
- mojo::InterfaceRequest<mojo::ServiceProvider> service_provider_request) {
- new DocumentView(response.Pass(), service_provider_request.Pass(),
- shell_, compositor_thread_);
+void ContentHandlerImpl::StartApplication(mojo::ShellPtr shell,
+ mojo::URLResponsePtr response) {
+ new DocumentView(response.Pass(), shell.Pass(), compositor_thread_);
}
} // namespace sky
« no previous file with comments | « sky/viewer/content_handler_impl.h ('k') | sky/viewer/document_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698