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

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

Issue 741453002: Make sure that Content Handled application can be connected multiple times. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix sky 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_NETWORK_APPLICATION_LOADER_H_ 5 #ifndef MOJO_SHELL_NETWORK_APPLICATION_LOADER_H_
6 #define MOJO_SHELL_NETWORK_APPLICATION_LOADER_H_ 6 #define MOJO_SHELL_NETWORK_APPLICATION_LOADER_H_
7 7
8 #include "base/containers/scoped_ptr_hash_map.h" 8 #include "base/containers/scoped_ptr_hash_map.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 14 matching lines...) Expand all
25 public ApplicationDelegate, 25 public ApplicationDelegate,
26 public InterfaceFactory<NetworkService> { 26 public InterfaceFactory<NetworkService> {
27 public: 27 public:
28 NetworkApplicationLoader(); 28 NetworkApplicationLoader();
29 virtual ~NetworkApplicationLoader(); 29 virtual ~NetworkApplicationLoader();
30 30
31 private: 31 private:
32 // ApplicationLoader overrides: 32 // ApplicationLoader overrides:
33 virtual void Load(ApplicationManager* manager, 33 virtual void Load(ApplicationManager* manager,
34 const GURL& url, 34 const GURL& url,
35 scoped_refptr<LoadCallbacks> callbacks) override; 35 ScopedMessagePipeHandle shell_handle,
36 LoadCallback callback) override;
36 virtual void OnApplicationError(ApplicationManager* manager, 37 virtual void OnApplicationError(ApplicationManager* manager,
37 const GURL& url) override; 38 const GURL& url) override;
38 39
39 // ApplicationDelegate overrides. 40 // ApplicationDelegate overrides.
40 virtual void Initialize(ApplicationImpl* app) override; 41 virtual void Initialize(ApplicationImpl* app) override;
41 virtual bool ConfigureIncomingConnection( 42 virtual bool ConfigureIncomingConnection(
42 ApplicationConnection* connection) override; 43 ApplicationConnection* connection) override;
43 44
44 // InterfaceFactory<NetworkService> overrides. 45 // InterfaceFactory<NetworkService> overrides.
45 virtual void Create(ApplicationConnection* connection, 46 virtual void Create(ApplicationConnection* connection,
46 InterfaceRequest<NetworkService> request) override; 47 InterfaceRequest<NetworkService> request) override;
47 48
48 base::ScopedPtrHashMap<uintptr_t, ApplicationImpl> apps_; 49 base::ScopedPtrHashMap<uintptr_t, ApplicationImpl> apps_;
49 scoped_ptr<NetworkContext> context_; 50 scoped_ptr<NetworkContext> context_;
50 51
51 DISALLOW_COPY_AND_ASSIGN(NetworkApplicationLoader); 52 DISALLOW_COPY_AND_ASSIGN(NetworkApplicationLoader);
52 }; 53 };
53 54
54 } // namespace shell 55 } // namespace shell
55 } // namespace mojo 56 } // namespace mojo
56 57
57 #endif // MOJO_SHELL_NETWORK_APPLICATION_LOADER_H_ 58 #endif // MOJO_SHELL_NETWORK_APPLICATION_LOADER_H_
OLDNEW
« no previous file with comments | « mojo/shell/external_application_listener_unittest.cc ('k') | mojo/shell/network_application_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698