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

Side by Side Diff: mojo/shell/shell_application_loader.h

Issue 1675153002: ApplicationImpl->ShellConnection, mojom::Application->mojom::ShellClient (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ci2
Patch Set: . 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MOJO_SHELL_SHELL_APPLICATION_LOADER_H_ 5 #ifndef MOJO_SHELL_SHELL_APPLICATION_LOADER_H_
6 #define MOJO_SHELL_SHELL_APPLICATION_LOADER_H_ 6 #define MOJO_SHELL_SHELL_APPLICATION_LOADER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "mojo/shell/application_loader.h" 9 #include "mojo/shell/application_loader.h"
10 10
11 namespace mojo { 11 namespace mojo {
12 class ApplicationImpl; 12 class ShellConnection;
13 namespace shell { 13 namespace shell {
14 14
15 class ShellApplicationLoader : public ApplicationLoader { 15 class ShellApplicationLoader : public ApplicationLoader {
16 public: 16 public:
17 explicit ShellApplicationLoader(ApplicationManager* manager); 17 explicit ShellApplicationLoader(ApplicationManager* manager);
18 ~ShellApplicationLoader() override; 18 ~ShellApplicationLoader() override;
19 19
20 private: 20 private:
21 // Overridden from ApplicationLoader: 21 // Overridden from ApplicationLoader:
22 void Load( 22 void Load(const GURL& url,
23 const GURL& url, 23 InterfaceRequest<mojom::ShellClient> request) override;
24 InterfaceRequest<mojom::Application> application_request) override;
25 24
26 scoped_ptr<ApplicationImpl> app_; 25 scoped_ptr<ShellConnection> shell_connection_;
27 26
28 ApplicationManager* manager_; 27 ApplicationManager* manager_;
29 28
30 DISALLOW_COPY_AND_ASSIGN(ShellApplicationLoader); 29 DISALLOW_COPY_AND_ASSIGN(ShellApplicationLoader);
31 }; 30 };
32 31
33 } // namespace shell 32 } // namespace shell
34 } // namespace mojo 33 } // namespace mojo
35 34
36 #endif // MOJO_SHELL_SHELL_APPLICATION_LOADER_H_ 35 #endif // MOJO_SHELL_SHELL_APPLICATION_LOADER_H_
OLDNEW
« no previous file with comments | « mojo/shell/runner/host/out_of_process_native_runner.cc ('k') | mojo/shell/shell_application_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698