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

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

Issue 7981025: Use P2P Transport API by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // TODO(ajwong): We need to come up with a better description of the 5 // TODO(ajwong): We need to come up with a better description of the
6 // responsibilities for each thread. 6 // responsibilities for each thread.
7 7
8 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 8 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
9 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 9 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 OVERRIDE; 70 OVERRIDE;
71 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE; 71 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE;
72 72
73 // pp::InstancePrivate interface. 73 // pp::InstancePrivate interface.
74 virtual pp::Var GetInstanceObject() OVERRIDE; 74 virtual pp::Var GetInstanceObject() OVERRIDE;
75 75
76 // Convenience wrapper to get the ChromotingScriptableObject. 76 // Convenience wrapper to get the ChromotingScriptableObject.
77 ChromotingScriptableObject* GetScriptableObject(); 77 ChromotingScriptableObject* GetScriptableObject();
78 78
79 // Initiates and cancels connections. 79 // Initiates and cancels connections.
80 void Connect(const ClientConfig& config, bool use_p2p_api); 80 void Connect(const ClientConfig& config);
81 void Disconnect(); 81 void Disconnect();
82 82
83 // Called by ChromotingScriptableObject to provide username and password. 83 // Called by ChromotingScriptableObject to provide username and password.
84 void SubmitLoginInfo(const std::string& username, 84 void SubmitLoginInfo(const std::string& username,
85 const std::string& password); 85 const std::string& password);
86 86
87 // Called by ChromotingScriptableObject to set scale-to-fit. 87 // Called by ChromotingScriptableObject to set scale-to-fit.
88 void SetScaleToFit(bool scale_to_fit); 88 void SetScaleToFit(bool scale_to_fit);
89 89
90 // Return statistics record by ChromotingClient. 90 // Return statistics record by ChromotingClient.
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 175
176 ScopedRunnableMethodFactory<ChromotingInstance> task_factory_; 176 ScopedRunnableMethodFactory<ChromotingInstance> task_factory_;
177 scoped_ptr<Task> delayed_connect_; 177 scoped_ptr<Task> delayed_connect_;
178 178
179 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); 179 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);
180 }; 180 };
181 181
182 } // namespace remoting 182 } // namespace remoting
183 183
184 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 184 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/client/plugin/chromoting_instance.cc » ('j') | remoting/client/plugin/chromoting_instance.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698