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

Unified Diff: sky/viewer/content_handler_impl.cc

Issue 752683002: Break Sky's dependency on cc (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 58df7be9b9759a2669729ff9a8c002712bf1b7be..63ce25c23a0944d11e2b1b6d86d0dc527dfffdcf 100644
--- a/sky/viewer/content_handler_impl.cc
+++ b/sky/viewer/content_handler_impl.cc
@@ -13,11 +13,9 @@ namespace sky {
class SkyApplication : public mojo::Application {
public:
- SkyApplication(scoped_refptr<base::MessageLoopProxy> compositor_thread,
- mojo::ShellPtr shell,
+ SkyApplication(mojo::ShellPtr shell,
mojo::URLResponsePtr response)
- : compositor_thread_(compositor_thread),
- url_(response->url),
+ : url_(response->url),
shell_(shell.Pass()),
initial_response_(response.Pass()),
view_count_(0) {
@@ -68,10 +66,9 @@ class SkyApplication : public mojo::Application {
mojo::URLResponsePtr response) {
new DocumentView(
base::Bind(&SkyApplication::OnViewDestroyed, base::Unretained(this)),
- provider.Pass(), response.Pass(), shell_.get(), compositor_thread_);
+ provider.Pass(), response.Pass(), shell_.get());
}
- scoped_refptr<base::MessageLoopProxy> compositor_thread_;
mojo::String url_;
mojo::ShellPtr shell_;
mojo::NetworkServicePtr network_service_;
@@ -79,9 +76,7 @@ class SkyApplication : public mojo::Application {
uint32_t view_count_;
};
-ContentHandlerImpl::ContentHandlerImpl(
- scoped_refptr<base::MessageLoopProxy> compositor_thread)
- : compositor_thread_(compositor_thread) {
+ContentHandlerImpl::ContentHandlerImpl() {
}
ContentHandlerImpl::~ContentHandlerImpl() {
@@ -89,7 +84,7 @@ ContentHandlerImpl::~ContentHandlerImpl() {
void ContentHandlerImpl::StartApplication(mojo::ShellPtr shell,
mojo::URLResponsePtr response) {
- new SkyApplication(compositor_thread_, shell.Pass(), response.Pass());
+ new SkyApplication(shell.Pass(), response.Pass());
}
} // 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