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

Side by Side Diff: remoting/client/plugin/chromoting_instance.h

Issue 1542203002: Switch to standard integer types in remoting/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@int-remoting-host
Patch Set: Created 4 years, 12 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_PLUGIN_CHROMOTING_INSTANCE_H_ 5 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
6 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 6 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
7 7
8 #include <stddef.h>
9 #include <stdint.h>
10
8 #include <string> 11 #include <string>
9 12
13 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
12 #include "base/thread_task_runner_handle.h" 16 #include "base/thread_task_runner_handle.h"
13 #include "ppapi/c/pp_instance.h" 17 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_rect.h" 18 #include "ppapi/c/pp_rect.h"
15 #include "ppapi/c/pp_resource.h" 19 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/cpp/instance.h" 20 #include "ppapi/cpp/instance.h"
17 #include "ppapi/cpp/text_input_controller.h" 21 #include "ppapi/cpp/text_input_controller.h"
18 #include "ppapi/cpp/var.h" 22 #include "ppapi/cpp/var.h"
19 #include "remoting/client/client_context.h" 23 #include "remoting/client/client_context.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 162
159 // Requests the webapp to fetch a third-party token. 163 // Requests the webapp to fetch a third-party token.
160 void FetchThirdPartyToken( 164 void FetchThirdPartyToken(
161 const GURL& token_url, 165 const GURL& token_url,
162 const std::string& host_public_key, 166 const std::string& host_public_key,
163 const std::string& scope, 167 const std::string& scope,
164 const base::WeakPtr<TokenFetcherProxy> pepper_token_fetcher); 168 const base::WeakPtr<TokenFetcherProxy> pepper_token_fetcher);
165 169
166 // Updates the specified UMA enumeration histogram with the input value. 170 // Updates the specified UMA enumeration histogram with the input value.
167 void UpdateUmaEnumHistogram(const std::string& histogram_name, 171 void UpdateUmaEnumHistogram(const std::string& histogram_name,
168 int64 value, 172 int64_t value,
169 int histogram_max); 173 int histogram_max);
170 174
171 // Updates the specified UMA custom counts or custom times histogram with the 175 // Updates the specified UMA custom counts or custom times histogram with the
172 // input value. 176 // input value.
173 void UpdateUmaCustomHistogram(bool is_custom_counts_histogram, 177 void UpdateUmaCustomHistogram(bool is_custom_counts_histogram,
174 const std::string& histogram_name, 178 const std::string& histogram_name,
175 int64 value, 179 int64_t value,
176 int histogram_min, 180 int histogram_min,
177 int histogram_max, 181 int histogram_max,
178 int histogram_buckets); 182 int histogram_buckets);
179 183
180 private: 184 private:
181 // Used as the |FetchSecretCallback| for IT2Me (or Me2Me from old webapps). 185 // Used as the |FetchSecretCallback| for IT2Me (or Me2Me from old webapps).
182 // Immediately calls |secret_fetched_callback| with |shared_secret|. 186 // Immediately calls |secret_fetched_callback| with |shared_secret|.
183 static void FetchSecretFromString( 187 static void FetchSecretFromString(
184 const std::string& shared_secret, 188 const std::string& shared_secret,
185 bool pairing_supported, 189 bool pairing_supported,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 // Same as above, but serializes messages to JSON before sending them. This 221 // Same as above, but serializes messages to JSON before sending them. This
218 // method is used for backward compatibility with older version of the webapp 222 // method is used for backward compatibility with older version of the webapp
219 // that expect to received most messages formatted using JSON. 223 // that expect to received most messages formatted using JSON.
220 // 224 //
221 // TODO(sergeyu): When all current versions of the webapp support raw messages 225 // TODO(sergeyu): When all current versions of the webapp support raw messages
222 // remove this method and use PostChromotingMessage() instead. 226 // remove this method and use PostChromotingMessage() instead.
223 void PostLegacyJsonMessage(const std::string& method, 227 void PostLegacyJsonMessage(const std::string& method,
224 scoped_ptr<base::DictionaryValue> data); 228 scoped_ptr<base::DictionaryValue> data);
225 229
226 // Posts trapped keys to the web-app to handle. 230 // Posts trapped keys to the web-app to handle.
227 void SendTrappedKey(uint32 usb_keycode, bool pressed); 231 void SendTrappedKey(uint32_t usb_keycode, bool pressed);
228 232
229 // Callback for DelegatingSignalStrategy. 233 // Callback for DelegatingSignalStrategy.
230 void SendOutgoingIq(const std::string& iq); 234 void SendOutgoingIq(const std::string& iq);
231 235
232 void UpdatePerfStatsInUI(); 236 void UpdatePerfStatsInUI();
233 237
234 // Returns true if there is a ConnectionToHost and it is connected. 238 // Returns true if there is a ConnectionToHost and it is connected.
235 bool IsConnected(); 239 bool IsConnected();
236 240
237 // Used as the |FetchSecretCallback| for Me2Me connections. 241 // Used as the |FetchSecretCallback| for Me2Me connections.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 293
290 // Weak reference to this instance, used for global logging and task posting. 294 // Weak reference to this instance, used for global logging and task posting.
291 base::WeakPtrFactory<ChromotingInstance> weak_factory_; 295 base::WeakPtrFactory<ChromotingInstance> weak_factory_;
292 296
293 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); 297 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);
294 }; 298 };
295 299
296 } // namespace remoting 300 } // namespace remoting
297 301
298 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 302 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
OLDNEW
« no previous file with comments | « remoting/client/normalizing_input_filter_win_unittest.cc ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698