OLD | NEW |
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 CONTENT_BROWSER_NAVIGATOR_CONNECT_SERVICE_PORT_SERVICE_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_NAVIGATOR_CONNECT_SERVICE_PORT_SERVICE_IMPL_H_ |
6 #define CONTENT_BROWSER_NAVIGATOR_CONNECT_SERVICE_PORT_SERVICE_IMPL_H_ | 6 #define CONTENT_BROWSER_NAVIGATOR_CONNECT_SERVICE_PORT_SERVICE_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "content/common/service_port_service.mojom.h" | 11 #include "content/common/service_port_service.mojom.h" |
12 #include "third_party/mojo/src/mojo/public/cpp/bindings/strong_binding.h" | 12 #include "mojo/public/cpp/bindings/strong_binding.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 struct MessagePortMessage; | 15 struct MessagePortMessage; |
16 class MessagePortMessageFilter; | 16 class MessagePortMessageFilter; |
17 class NavigatorConnectContextImpl; | 17 class NavigatorConnectContextImpl; |
18 struct TransferredMessagePort; | 18 struct TransferredMessagePort; |
19 | 19 |
20 // Browser side class representing a ServicePortCollection in the renderer. One | 20 // Browser side class representing a ServicePortCollection in the renderer. One |
21 // instance of this class is created for each ServicePortCollection, and is | 21 // instance of this class is created for each ServicePortCollection, and is |
22 // automatically destroyed when the ServicePortCollection in the renderer goes | 22 // automatically destroyed when the ServicePortCollection in the renderer goes |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_; | 74 scoped_refptr<MessagePortMessageFilter> message_port_message_filter_; |
75 ServicePortServiceClientPtr client_; | 75 ServicePortServiceClientPtr client_; |
76 base::WeakPtrFactory<ServicePortServiceImpl> weak_ptr_factory_; | 76 base::WeakPtrFactory<ServicePortServiceImpl> weak_ptr_factory_; |
77 | 77 |
78 DISALLOW_COPY_AND_ASSIGN(ServicePortServiceImpl); | 78 DISALLOW_COPY_AND_ASSIGN(ServicePortServiceImpl); |
79 }; | 79 }; |
80 | 80 |
81 } // namespace content | 81 } // namespace content |
82 | 82 |
83 #endif // CONTENT_BROWSER_NAVIGATOR_CONNECT_SERVICE_PORT_SERVICE_IMPL_H_ | 83 #endif // CONTENT_BROWSER_NAVIGATOR_CONNECT_SERVICE_PORT_SERVICE_IMPL_H_ |
OLD | NEW |