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

Side by Side Diff: mojo/services/network/network_service_delegate.h

Issue 1819063002: Quit the message loop by default in ShellConnectionLost when ApplicationRunner is used (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge and update resourceproviderunittest Created 4 years, 9 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_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_ 5 #ifndef MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_
6 #define MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_ 6 #define MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "base/threading/thread.h" 10 #include "base/threading/thread.h"
(...skipping 20 matching lines...) Expand all
31 ~NetworkServiceDelegate() override; 31 ~NetworkServiceDelegate() override;
32 32
33 void AddObserver(NetworkServiceDelegateObserver* observer); 33 void AddObserver(NetworkServiceDelegateObserver* observer);
34 void RemoveObserver(NetworkServiceDelegateObserver* observer); 34 void RemoveObserver(NetworkServiceDelegateObserver* observer);
35 35
36 private: 36 private:
37 // mojo::ShellClient implementation. 37 // mojo::ShellClient implementation.
38 void Initialize(Connector* connector, const Identity& identity, 38 void Initialize(Connector* connector, const Identity& identity,
39 uint32_t id) override; 39 uint32_t id) override;
40 bool AcceptConnection(Connection* connection) override; 40 bool AcceptConnection(Connection* connection) override;
41 void ShellConnectionLost() override;
42 41
43 // InterfaceFactory<NetworkService> implementation. 42 // InterfaceFactory<NetworkService> implementation.
44 void Create(Connection* connection, 43 void Create(Connection* connection,
45 InterfaceRequest<NetworkService> request) override; 44 InterfaceRequest<NetworkService> request) override;
46 45
47 // InterfaceFactory<CookieStore> implementation. 46 // InterfaceFactory<CookieStore> implementation.
48 void Create(Connection* connection, 47 void Create(Connection* connection,
49 InterfaceRequest<CookieStore> request) override; 48 InterfaceRequest<CookieStore> request) override;
50 49
51 // InterfaceFactory<WebSocketFactory> implementation. 50 // InterfaceFactory<WebSocketFactory> implementation.
(...skipping 15 matching lines...) Expand all
67 scoped_ptr<NetworkContext> context_; 66 scoped_ptr<NetworkContext> context_;
68 67
69 mojo::MessageLoopRefFactory ref_factory_; 68 mojo::MessageLoopRefFactory ref_factory_;
70 69
71 DISALLOW_COPY_AND_ASSIGN(NetworkServiceDelegate); 70 DISALLOW_COPY_AND_ASSIGN(NetworkServiceDelegate);
72 }; 71 };
73 72
74 } // namespace mojo 73 } // namespace mojo
75 74
76 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_ 75 #endif // MOJO_SERVICES_NETWORK_NETWORK_SERVICE_DELEGATE_H_
OLDNEW
« no previous file with comments | « mash/wm/window_manager_application.cc ('k') | mojo/services/network/network_service_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698