| OLD | NEW |
| 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 CONTENT_BROWSER_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_CONTEXT_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_CONTEXT_IMPL_H_ |
| 6 #define CONTENT_BROWSER_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_CONTEXT_IMPL_H_ | 6 #define CONTENT_BROWSER_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_CONTEXT_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include "base/callback_forward.h" | 9 #include "base/callback_forward.h" |
| 10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 private: | 46 private: |
| 47 ~NavigatorConnectContextImpl() override; | 47 ~NavigatorConnectContextImpl() override; |
| 48 | 48 |
| 49 void AddFactoryOnIOThread(scoped_ptr<NavigatorConnectServiceFactory> factory); | 49 void AddFactoryOnIOThread(scoped_ptr<NavigatorConnectServiceFactory> factory); |
| 50 | 50 |
| 51 // Callback called by service factories when a connection succeeded or failed. | 51 // Callback called by service factories when a connection succeeded or failed. |
| 52 void OnConnectResult(const NavigatorConnectClient& client, | 52 void OnConnectResult(const NavigatorConnectClient& client, |
| 53 int client_message_port_id, | 53 int client_message_port_id, |
| 54 int client_port_route_id, | 54 int client_port_route_id, |
| 55 const ConnectCallback& callback, | 55 const ConnectCallback& callback, |
| 56 MessagePortDelegate* delegate); | 56 MessagePortDelegate* delegate, |
| 57 bool data_as_values); |
| 57 | 58 |
| 58 // List of factories to try to handle URLs. | 59 // List of factories to try to handle URLs. |
| 59 ScopedVector<NavigatorConnectServiceFactory> service_factories_; | 60 ScopedVector<NavigatorConnectServiceFactory> service_factories_; |
| 60 }; | 61 }; |
| 61 | 62 |
| 62 } // namespace content | 63 } // namespace content |
| 63 | 64 |
| 64 #endif // CONTENT_BROWSER_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_CONTEXT_IMPL_H_ | 65 #endif // CONTENT_BROWSER_NAVIGATOR_CONNECT_NAVIGATOR_CONNECT_CONTEXT_IMPL_H_ |
| OLD | NEW |