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

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

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