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

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

Issue 687433002: Remove mojo/shell and (most) service implementations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove mojo/gles2, disable mojo apps in component build Created 6 years, 1 month 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
« no previous file with comments | « mojo/shell/mojo_url_resolver_unittest.cc ('k') | mojo/shell/network_application_loader.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 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 MOJO_SHELL_NETWORK_APPLICATION_LOADER_H_
6 #define MOJO_SHELL_NETWORK_APPLICATION_LOADER_H_
7
8 #include "base/containers/scoped_ptr_hash_map.h"
9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "mojo/application_manager/application_loader.h"
12 #include "mojo/public/cpp/application/application_delegate.h"
13 #include "mojo/public/cpp/application/interface_factory.h"
14 #include "mojo/services/network/network_context.h"
15
16 namespace mojo {
17
18 class ApplicationImpl;
19 class NetworkService;
20
21 namespace shell {
22
23 // ApplicationLoader responsible for creating connections to the NetworkService.
24 class NetworkApplicationLoader : public ApplicationLoader,
25 public ApplicationDelegate,
26 public InterfaceFactory<NetworkService> {
27 public:
28 NetworkApplicationLoader();
29 virtual ~NetworkApplicationLoader();
30
31 private:
32 // ApplicationLoader overrides:
33 virtual void Load(ApplicationManager* manager,
34 const GURL& url,
35 scoped_refptr<LoadCallbacks> callbacks) override;
36 virtual void OnApplicationError(ApplicationManager* manager,
37 const GURL& url) override;
38
39 // ApplicationDelegate overrides.
40 virtual void Initialize(ApplicationImpl* app) override;
41 virtual bool ConfigureIncomingConnection(
42 ApplicationConnection* connection) override;
43
44 // InterfaceFactory<NetworkService> overrides.
45 virtual void Create(ApplicationConnection* connection,
46 InterfaceRequest<NetworkService> request) override;
47
48 base::ScopedPtrHashMap<uintptr_t, ApplicationImpl> apps_;
49 scoped_ptr<NetworkContext> context_;
50
51 DISALLOW_COPY_AND_ASSIGN(NetworkApplicationLoader);
52 };
53
54 } // namespace shell
55 } // namespace mojo
56
57 #endif // MOJO_SHELL_NETWORK_APPLICATION_LOADER_H_
OLDNEW
« no previous file with comments | « mojo/shell/mojo_url_resolver_unittest.cc ('k') | mojo/shell/network_application_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698