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

Side by Side Diff: blimp/client/session/blimp_client_session.h

Issue 1962393004: Added a debug info UI for Blimp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added empty implementation for linux client Created 4 years, 7 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 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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/threading/thread.h" 13 #include "base/threading/thread.h"
14 #include "blimp/client/session/assignment_source.h" 14 #include "blimp/client/session/assignment_source.h"
15 #include "blimp/common/proto/blimp_message.pb.h" 15 #include "blimp/common/proto/blimp_message.pb.h"
16 #include "blimp/net/blimp_connection_statistics.h"
16 #include "blimp/net/blimp_message_processor.h" 17 #include "blimp/net/blimp_message_processor.h"
17 18
18 namespace net { 19 namespace net {
19 class IPEndPoint; 20 class IPEndPoint;
20 } 21 }
21 22
22 namespace blimp { 23 namespace blimp {
23 24
24 class BlimpMessageProcessor; 25 class BlimpMessageProcessor;
25 class BlimpMessageThreadPipe; 26 class BlimpMessageThreadPipe;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 // for an assignment. This token needs the OAuth2 scope of userinfo.email and 64 // for an assignment. This token needs the OAuth2 scope of userinfo.email and
64 // only needs to be an access token, not a refresh token. 65 // only needs to be an access token, not a refresh token.
65 void Connect(const std::string& client_auth_token); 66 void Connect(const std::string& client_auth_token);
66 67
67 TabControlFeature* GetTabControlFeature() const; 68 TabControlFeature* GetTabControlFeature() const;
68 NavigationFeature* GetNavigationFeature() const; 69 NavigationFeature* GetNavigationFeature() const;
69 ImeFeature* GetImeFeature() const; 70 ImeFeature* GetImeFeature() const;
70 RenderWidgetFeature* GetRenderWidgetFeature() const; 71 RenderWidgetFeature* GetRenderWidgetFeature() const;
71 SettingsFeature* GetSettingsFeature() const; 72 SettingsFeature* GetSettingsFeature() const;
72 73
74 BlimpConnectionStatistics* GetBlimpConnectionStatistics() const;
75
73 // The AssignmentCallback for when an assignment is ready. This will trigger 76 // The AssignmentCallback for when an assignment is ready. This will trigger
74 // a connection to the engine. 77 // a connection to the engine.
75 virtual void ConnectWithAssignment(AssignmentSource::Result result, 78 virtual void ConnectWithAssignment(AssignmentSource::Result result,
76 const Assignment& assignment); 79 const Assignment& assignment);
77 80
78 protected: 81 protected:
79 ~BlimpClientSession() override; 82 ~BlimpClientSession() override;
80 83
81 // Notified every time the AssignmentSource returns the result of an attempted 84 // Notified every time the AssignmentSource returns the result of an attempted
82 // assignment request. 85 // assignment request.
(...skipping 11 matching lines...) Expand all
94 std::unique_ptr<TabControlFeature> tab_control_feature_; 97 std::unique_ptr<TabControlFeature> tab_control_feature_;
95 std::unique_ptr<NavigationFeature> navigation_feature_; 98 std::unique_ptr<NavigationFeature> navigation_feature_;
96 std::unique_ptr<ImeFeature> ime_feature_; 99 std::unique_ptr<ImeFeature> ime_feature_;
97 std::unique_ptr<RenderWidgetFeature> render_widget_feature_; 100 std::unique_ptr<RenderWidgetFeature> render_widget_feature_;
98 std::unique_ptr<SettingsFeature> settings_feature_; 101 std::unique_ptr<SettingsFeature> settings_feature_;
99 102
100 // The AssignmentSource is used when the user of BlimpClientSession calls 103 // The AssignmentSource is used when the user of BlimpClientSession calls
101 // Connect() to get a valid assignment and later connect to the engine. 104 // Connect() to get a valid assignment and later connect to the engine.
102 std::unique_ptr<AssignmentSource> assignment_source_; 105 std::unique_ptr<AssignmentSource> assignment_source_;
103 106
107 // Collects details of network, such as number of commits and bytes
108 // transferred over network. Ownership is maintained on the IO thread.
109 BlimpConnectionStatistics* blimp_connection_statistics_;
110
104 // Container struct for network components. 111 // Container struct for network components.
105 // Must be deleted on the IO thread. 112 // Must be deleted on the IO thread.
106 std::unique_ptr<ClientNetworkComponents> net_components_; 113 std::unique_ptr<ClientNetworkComponents> net_components_;
107 114
108 std::unique_ptr<ThreadPipeManager> thread_pipe_manager_; 115 std::unique_ptr<ThreadPipeManager> thread_pipe_manager_;
109 116
110 base::WeakPtrFactory<BlimpClientSession> weak_factory_; 117 base::WeakPtrFactory<BlimpClientSession> weak_factory_;
111 118
112 DISALLOW_COPY_AND_ASSIGN(BlimpClientSession); 119 DISALLOW_COPY_AND_ASSIGN(BlimpClientSession);
113 }; 120 };
114 121
115 } // namespace client 122 } // namespace client
116 } // namespace blimp 123 } // namespace blimp
117 124
118 #endif // BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_ 125 #endif // BLIMP_CLIENT_SESSION_BLIMP_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « blimp/client/feature/compositor/blimp_compositor_unittest.cc ('k') | blimp/client/session/blimp_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698