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 BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_ | 5 #ifndef BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_ |
6 #define BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_ | 6 #define BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_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/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/threading/thread.h" | 11 #include "base/threading/thread.h" |
12 #include "blimp/client/blimp_client_export.h" | 12 #include "blimp/client/blimp_client_export.h" |
13 #include "blimp/common/proto/blimp_message.pb.h" | 13 #include "blimp/common/proto/blimp_message.pb.h" |
14 #include "blimp/net/blimp_message_processor.h" | 14 #include "blimp/net/blimp_message_processor.h" |
15 | 15 |
16 namespace blimp { | 16 namespace blimp { |
17 | 17 |
18 class BlimpMessageProcessor; | 18 class BlimpMessageProcessor; |
19 class BlimpMessageThreadPipe; | 19 class BlimpMessageThreadPipe; |
20 class BrowserConnectionHandler; | 20 class BrowserConnectionHandler; |
21 class ClientConnectionManager; | 21 class ClientConnectionManager; |
| 22 |
| 23 namespace client { |
| 24 |
22 class ClientNetworkComponents; | 25 class ClientNetworkComponents; |
23 class NavigationFeature; | 26 class NavigationFeature; |
24 class RenderWidgetFeature; | 27 class RenderWidgetFeature; |
25 class TabControlFeature; | 28 class TabControlFeature; |
26 | 29 |
27 // BlimpClientSession represents a single active session of Blimp on the client | 30 // BlimpClientSession represents a single active session of Blimp on the client |
28 // regardless of whether or not the client application is in the background or | 31 // regardless of whether or not the client application is in the background or |
29 // foreground. The only time this session is invalid is during initialization | 32 // foreground. The only time this session is invalid is during initialization |
30 // and shutdown of this particular client process (or Activity on Android). | 33 // and shutdown of this particular client process (or Activity on Android). |
31 // | 34 // |
(...skipping 29 matching lines...) Expand all Loading... |
61 scoped_ptr<ClientNetworkComponents> net_components_; | 64 scoped_ptr<ClientNetworkComponents> net_components_; |
62 | 65 |
63 // Pipes for receiving BlimpMessages from IO thread. | 66 // Pipes for receiving BlimpMessages from IO thread. |
64 // Incoming messages are only routed to the UI thread since all features run | 67 // Incoming messages are only routed to the UI thread since all features run |
65 // on the UI thread. | 68 // on the UI thread. |
66 std::vector<scoped_ptr<BlimpMessageThreadPipe>> incoming_pipes_; | 69 std::vector<scoped_ptr<BlimpMessageThreadPipe>> incoming_pipes_; |
67 | 70 |
68 DISALLOW_COPY_AND_ASSIGN(BlimpClientSession); | 71 DISALLOW_COPY_AND_ASSIGN(BlimpClientSession); |
69 }; | 72 }; |
70 | 73 |
| 74 } // namespace client |
71 } // namespace blimp | 75 } // namespace blimp |
72 | 76 |
73 #endif // BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_ | 77 #endif // BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_ |
OLD | NEW |