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

Unified Diff: services/navigation/view_impl.h

Issue 2111353002: Move content's shell connections to the IO thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 | « services/navigation/navigation.cc ('k') | services/navigation/view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/navigation/view_impl.h
diff --git a/services/navigation/view_impl.h b/services/navigation/view_impl.h
index 427afa13005aefeb8298b8b2bc27f123c943199a..ad9b7edc13f1d77170958770349a03b816992419 100644
--- a/services/navigation/view_impl.h
+++ b/services/navigation/view_impl.h
@@ -5,6 +5,8 @@
#ifndef SERVICES_NAVIGATION_VIEW_IMPL_H_
#define SERVICES_NAVIGATION_VIEW_IMPL_H_
+#include <memory>
+
#include "base/macros.h"
#include "content/public/browser/notification_observer.h"
#include "content/public/browser/notification_registrar.h"
@@ -32,7 +34,7 @@ class ViewImpl : public mojom::View,
public ui::WindowTreeClientDelegate,
public views::WidgetDelegate {
public:
- ViewImpl(shell::Connector* connector,
+ ViewImpl(std::unique_ptr<shell::Connector> connector,
const std::string& client_user_id,
mojom::ViewClientPtr client,
mojom::ViewRequest request,
@@ -87,7 +89,7 @@ class ViewImpl : public mojom::View,
views::Widget* GetWidget() override;
const views::Widget* GetWidget() const override;
- shell::Connector* connector_;
+ std::unique_ptr<shell::Connector> connector_;
mojo::StrongBinding<mojom::View> binding_;
mojom::ViewClientPtr client_;
std::unique_ptr<shell::ServiceContextRef> ref_;
« no previous file with comments | « services/navigation/navigation.cc ('k') | services/navigation/view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698