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

Unified Diff: content/common/mojo/current_thread_loader.h

Issue 1871223003: Use ShellClientFactory interface to load mojo:profile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 | « content/browser/storage_partition_impl.cc ('k') | content/common/mojo/current_thread_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/mojo/current_thread_loader.h
diff --git a/content/common/mojo/current_thread_loader.h b/content/common/mojo/current_thread_loader.h
deleted file mode 100644
index ea2b37036d2df7203c92c0ec561164e3874273cb..0000000000000000000000000000000000000000
--- a/content/common/mojo/current_thread_loader.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright 2016 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 CONTENT_COMMON_MOJO_CURRENT_THREAD_LOADER_H_
-#define CONTENT_COMMON_MOJO_CURRENT_THREAD_LOADER_H_
-
-#include <vector>
-
-#include "base/callback.h"
-#include "base/macros.h"
-#include "services/shell/loader.h"
-#include "services/shell/public/cpp/shell_client.h"
-#include "services/shell/public/cpp/shell_connection.h"
-
-namespace content {
-
-// A Loader which loads a single type of app from a mojo::ShellClientFactory on
-// the current thread.
-class CurrentThreadLoader : public mojo::shell::Loader {
- public:
- using ApplicationFactory =
- base::Callback<std::unique_ptr<mojo::ShellClient>()>;
-
- explicit CurrentThreadLoader(const ApplicationFactory& factory);
- ~CurrentThreadLoader() override;
-
- // mojo::shell::Loader:
- void Load(const std::string& name,
- mojo::shell::mojom::ShellClientRequest request) override;
-
- private:
- // The factory used to create new instances of the application delegate. This
- // is called exactly once since all connections share a single client.
- ApplicationFactory factory_;
-
- // Our shared shell client, passed to each connection.
- std::unique_ptr<mojo::ShellClient> shell_client_;
-
- std::vector<std::unique_ptr<mojo::ShellConnection>> connections_;
-
- DISALLOW_COPY_AND_ASSIGN(CurrentThreadLoader);
-};
-
-} // namespace content
-
-#endif // CONTENT_COMMON_MOJO_CURRENT_THREAD_LOADER_H_
« no previous file with comments | « content/browser/storage_partition_impl.cc ('k') | content/common/mojo/current_thread_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698