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

Unified Diff: blimp/client/core/contents/blimp_contents_manager.cc

Issue 2241623002: blimp: Move compositing, input and render widget feature to client/core. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed comments from #7 Created 4 years, 4 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: blimp/client/core/contents/blimp_contents_manager.cc
diff --git a/blimp/client/core/contents/blimp_contents_manager.cc b/blimp/client/core/contents/blimp_contents_manager.cc
index f0a1f6bf560da4167512eb7a99ba49eced4195f3..7284970083f454e679195cf98afaa5cb1558933f 100644
--- a/blimp/client/core/contents/blimp_contents_manager.cc
+++ b/blimp/client/core/contents/blimp_contents_manager.cc
@@ -7,6 +7,7 @@
#include "base/bind.h"
#include "base/memory/ptr_util.h"
#include "base/threading/thread_task_runner_handle.h"
+#include "blimp/client/core/compositor/compositor_deps_provider.h"
#include "blimp/client/public/contents/blimp_contents_observer.h"
namespace {
@@ -47,14 +48,16 @@ void BlimpContentsManager::BlimpContentsDeletionObserver::
blimp_contents_manager_->GetWeakPtr(), id));
}
-BlimpContentsManager::BlimpContentsManager() : weak_ptr_factory_(this) {}
+BlimpContentsManager::BlimpContentsManager(
+ RenderWidgetFeature* render_widget_feature)
+ : render_widget_feature_(render_widget_feature), weak_ptr_factory_(this) {}
BlimpContentsManager::~BlimpContentsManager() {}
std::unique_ptr<BlimpContentsImpl> BlimpContentsManager::CreateBlimpContents() {
int id = CreateBlimpContentsId();
std::unique_ptr<BlimpContentsImpl> new_contents =
- base::MakeUnique<BlimpContentsImpl>(id);
+ base::MakeUnique<BlimpContentsImpl>(id, render_widget_feature_);
std::unique_ptr<BlimpContentsDeletionObserver> observer =
base::MakeUnique<BlimpContentsDeletionObserver>(this, new_contents.get());
observer_map_.insert(

Powered by Google App Engine
This is Rietveld 408576698