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

Unified Diff: mandoline/ui/browser/merged_service_provider.h

Issue 1166123005: Removes ServiceProviders from ViewManager::Embed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use is_headless rather than check for browser. Created 5 years, 6 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 | « mandoline/ui/browser/browser.cc ('k') | mandoline/ui/browser/merged_service_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/browser/merged_service_provider.h
diff --git a/mandoline/ui/browser/merged_service_provider.h b/mandoline/ui/browser/merged_service_provider.h
deleted file mode 100644
index 20a94d5dbe6c0e885a206906e5ed580f627877f6..0000000000000000000000000000000000000000
--- a/mandoline/ui/browser/merged_service_provider.h
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef MANDOLINE_UI_BROWSER_MERGED_SERVICE_PROVIDER_H_
-#define MANDOLINE_UI_BROWSER_MERGED_SERVICE_PROVIDER_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "mandoline/services/navigation/public/interfaces/navigation.mojom.h"
-#include "mojo/application/public/cpp/interface_factory.h"
-#include "mojo/application/public/interfaces/service_provider.mojom.h"
-#include "third_party/mojo/src/mojo/public/cpp/bindings/binding.h"
-
-namespace mandoline {
-
-// Used to wrap the second incoming WindowManager Embed() "exposed_services"
-// parameter with a new ServiceProvider that adds the Browser's
-// NavigatorHost service.
-class MergedServiceProvider : public mojo::ServiceProvider {
- public:
- MergedServiceProvider(mojo::ServiceProviderPtr exposed_services,
- mojo::InterfaceFactory<mojo::NavigatorHost>* factory);
- ~MergedServiceProvider() override;
-
- mojo::ServiceProviderPtr GetServiceProviderPtr();
-
- private:
- // mojo::ServiceProvider:
- void ConnectToService(const mojo::String& interface_name,
- mojo::ScopedMessagePipeHandle pipe) override;
-
- mojo::ServiceProviderPtr exposed_services_;
- mojo::InterfaceFactory<mojo::NavigatorHost>* factory_;
- scoped_ptr<mojo::Binding<ServiceProvider>> binding_;
-
- DISALLOW_COPY_AND_ASSIGN(MergedServiceProvider);
-};
-
-} // namespace mandoline
-
-#endif // MANDOLINE_UI_BROWSER_MERGED_SERVICE_PROVIDER_H_
« no previous file with comments | « mandoline/ui/browser/browser.cc ('k') | mandoline/ui/browser/merged_service_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698