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

Side by Side Diff: chrome/utility/chrome_content_utility_process_impl.h

Issue 1128453004: Embed a simple Mojo shell in content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_UTILITY_CHROME_CONTENT_UTILITY_PROCESS_IMPL_H_
6 #define CHROME_UTILITY_CHROME_CONTENT_UTILITY_PROCESS_IMPL_H_
7
8 #include <map>
9
10 #include "base/macros.h"
11 #include "content/public/common/process.mojom.h"
12 #include "third_party/mojo/src/mojo/public/cpp/bindings/interface_request.h"
13 #include "third_party/mojo/src/mojo/public/interfaces/application/application.mo jom.h"
14 #include "url/gurl.h"
15
16 namespace mojo {
17 namespace shell {
18 class ApplicationLoader;
19 } // namespace shell
20 } // namespace mojo
21
22 class ChromeContentUtilityProcessImpl : public content::Process {
23 public:
24 explicit ChromeContentUtilityProcessImpl();
25 ~ChromeContentUtilityProcessImpl() override;
26
27 private:
28 using URLToLoaderMap = std::map<GURL, mojo::shell::ApplicationLoader*>;
29
30 // content::Process:
31 void LoadApplication(const mojo::String& url,
32 mojo::InterfaceRequest<mojo::Application> request,
33 const LoadApplicationCallback& callback) override;
34
35 void RegisterApplication(const GURL& url,
36 mojo::shell::ApplicationLoader* loader);
37
38 URLToLoaderMap url_to_loader_map_;
39
40 DISALLOW_COPY_AND_ASSIGN(ChromeContentUtilityProcessImpl);
41 };
42
43 #endif // CHROME_UTILITY_CHROME_CONTENT_UTILITY_PROCESS_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698