OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_ | 5 #ifndef REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_ |
6 #define REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_ | 6 #define REMOTING_CLIENT_JNI_CHROMOTING_JNI_RUNTIME_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // The runtime itself will not send out any logs. Used on the network thread. | 55 // The runtime itself will not send out any logs. Used on the network thread. |
56 ClientTelemetryLogger* logger() { | 56 ClientTelemetryLogger* logger() { |
57 DCHECK(runtime_->network_task_runner()->BelongsToCurrentThread()); | 57 DCHECK(runtime_->network_task_runner()->BelongsToCurrentThread()); |
58 DCHECK(logger_); | 58 DCHECK(logger_); |
59 return logger_.get(); | 59 return logger_.get(); |
60 } | 60 } |
61 | 61 |
62 // Fetch OAuth token for the telemetry logger. Call on UI thread. | 62 // Fetch OAuth token for the telemetry logger. Call on UI thread. |
63 void FetchAuthToken(); | 63 void FetchAuthToken(); |
64 | 64 |
| 65 bool use_opengl_ = true; |
| 66 |
65 private: | 67 private: |
66 ChromotingJniRuntime(); | 68 ChromotingJniRuntime(); |
67 | 69 |
68 // Forces a DisconnectFromHost() in case there is any active or failed | 70 // Forces a DisconnectFromHost() in case there is any active or failed |
69 // connection, then proceeds to tear down the Chromium dependencies on which | 71 // connection, then proceeds to tear down the Chromium dependencies on which |
70 // all sessions depended. Because destruction only occurs at application exit | 72 // all sessions depended. Because destruction only occurs at application exit |
71 // after all connections have terminated, it is safe to make unretained | 73 // after all connections have terminated, it is safe to make unretained |
72 // cross-thread calls on the class. | 74 // cross-thread calls on the class. |
73 virtual ~ChromotingJniRuntime(); | 75 virtual ~ChromotingJniRuntime(); |
74 | 76 |
(...skipping 15 matching lines...) Expand all Loading... |
90 std::unique_ptr<ClientTelemetryLogger> logger_; | 92 std::unique_ptr<ClientTelemetryLogger> logger_; |
91 | 93 |
92 friend struct base::DefaultSingletonTraits<ChromotingJniRuntime>; | 94 friend struct base::DefaultSingletonTraits<ChromotingJniRuntime>; |
93 | 95 |
94 DISALLOW_COPY_AND_ASSIGN(ChromotingJniRuntime); | 96 DISALLOW_COPY_AND_ASSIGN(ChromotingJniRuntime); |
95 }; | 97 }; |
96 | 98 |
97 } // namespace remoting | 99 } // namespace remoting |
98 | 100 |
99 #endif | 101 #endif |
OLD | NEW |