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

Unified Diff: mandoline/ui/desktop_ui/browser_manager.h

Issue 1677293002: Bye bye Mandoline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moar Created 4 years, 10 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/desktop_ui/browser_commands.h ('k') | mandoline/ui/desktop_ui/browser_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mandoline/ui/desktop_ui/browser_manager.h
diff --git a/mandoline/ui/desktop_ui/browser_manager.h b/mandoline/ui/desktop_ui/browser_manager.h
deleted file mode 100644
index aec41718f9898ee2c5ddcf309b3dfa29e3fcb69d..0000000000000000000000000000000000000000
--- a/mandoline/ui/desktop_ui/browser_manager.h
+++ /dev/null
@@ -1,67 +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_DESKTOP_UI_BROWSER_MANAGER_H_
-#define MANDOLINE_UI_DESKTOP_UI_BROWSER_MANAGER_H_
-
-#include <set>
-
-#include "base/macros.h"
-#include "components/mus/public/interfaces/window_tree_host.mojom.h"
-#include "mandoline/ui/desktop_ui/public/interfaces/launch_handler.mojom.h"
-#include "mojo/common/weak_binding_set.h"
-#include "mojo/services/tracing/public/cpp/tracing_impl.h"
-#include "mojo/shell/public/cpp/shell_client.h"
-#include "url/gurl.h"
-
-namespace mojo {
-class View;
-}
-
-namespace mandoline {
-
-class BrowserWindow;
-
-// BrowserManager creates and manages the lifetime of Browsers.
-class BrowserManager : public mojo::ShellClient,
- public LaunchHandler,
- public mojo::InterfaceFactory<LaunchHandler> {
- public:
- BrowserManager();
- ~BrowserManager() override;
-
- // BrowserManager owns the returned BrowserWindow.
- BrowserWindow* CreateBrowser(const GURL& default_url);
-
- void BrowserWindowClosed(BrowserWindow* browser);
-
- // Get the time recorded just before the application message loop was started.
- const base::TimeTicks& startup_ticks() const { return startup_ticks_; }
-
- private:
- // Overridden from LaunchHandler:
- void LaunchURL(const mojo::String& url) override;
-
- // Overridden from mojo::ShellClient:
- void Initialize(mojo::Shell* shell, const std::string& url,
- uint32_t id) override;
- bool AcceptConnection(mojo::Connection* connection) override;
-
- // Overridden from mojo::InterfaceFactory<LaunchHandler>:
- void Create(mojo::Connection* connection,
- mojo::InterfaceRequest<LaunchHandler> request) override;
-
- mojo::Shell* shell_;
- mojo::TracingImpl tracing_;
- mus::mojom::WindowTreeHostFactoryPtr host_factory_;
- mojo::WeakBindingSet<LaunchHandler> launch_handler_bindings_;
- std::set<BrowserWindow*> browsers_;
- const base::TimeTicks startup_ticks_;
-
- DISALLOW_COPY_AND_ASSIGN(BrowserManager);
-};
-
-} // namespace mandoline
-
-#endif // MANDOLINE_UI_DESKTOP_UI_BROWSER_MANAGER_H_
« no previous file with comments | « mandoline/ui/desktop_ui/browser_commands.h ('k') | mandoline/ui/desktop_ui/browser_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698