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

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

Issue 6621018: Convert Chromoting plugin logging to appear in client UI (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup comments Created 9 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 | 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 23 matching lines...) Expand all
34 34
35 namespace remoting { 35 namespace remoting {
36 36
37 namespace protocol { 37 namespace protocol {
38 class ConnectionToHost; 38 class ConnectionToHost;
39 } // namespace protocol 39 } // namespace protocol
40 40
41 class ChromotingClient; 41 class ChromotingClient;
42 class ChromotingStats; 42 class ChromotingStats;
43 class ClientContext; 43 class ClientContext;
44 class ClientLogger;
44 class InputHandler; 45 class InputHandler;
45 class JingleThread; 46 class JingleThread;
46 class PepperView; 47 class PepperView;
47 class PepperViewProxy; 48 class PepperViewProxy;
48 class RectangleUpdateDecoder; 49 class RectangleUpdateDecoder;
49 50
50 struct ClientConfig; 51 struct ClientConfig;
51 52
52 namespace protocol { 53 namespace protocol {
53 class HostConnection; 54 class HostConnection;
(...skipping 24 matching lines...) Expand all
78 // Convenience wrapper to get the ChromotingScriptableObject. 79 // Convenience wrapper to get the ChromotingScriptableObject.
79 ChromotingScriptableObject* GetScriptableObject(); 80 ChromotingScriptableObject* GetScriptableObject();
80 81
81 // Called by ChromotingScriptableObject to provide username and password. 82 // Called by ChromotingScriptableObject to provide username and password.
82 void SubmitLoginInfo(const std::string& username, 83 void SubmitLoginInfo(const std::string& username,
83 const std::string& password); 84 const std::string& password);
84 85
85 // Called by ChromotingScriptableObject to set scale-to-fit. 86 // Called by ChromotingScriptableObject to set scale-to-fit.
86 void SetScaleToFit(bool scale_to_fit); 87 void SetScaleToFit(bool scale_to_fit);
87 88
88 void LogDebugInfo(const std::string& info); 89 void Log(int severity, const char* format, ...);
90 void VLog(int verboselevel, const char* format, ...);
89 91
90 // Return statistics record by ChromotingClient. 92 // Return statistics record by ChromotingClient.
91 // If no connection is currently active then NULL will be returned. 93 // If no connection is currently active then NULL will be returned.
92 ChromotingStats* GetStats(); 94 ChromotingStats* GetStats();
93 95
94 private: 96 private:
95 FRIEND_TEST_ALL_PREFIXES(ChromotingInstanceTest, TestCaseSetup); 97 FRIEND_TEST_ALL_PREFIXES(ChromotingInstanceTest, TestCaseSetup);
96 98
97 bool initialized_; 99 bool initialized_;
98 100
(...skipping 12 matching lines...) Expand all
111 scoped_refptr<RectangleUpdateDecoder> rectangle_decoder_; 113 scoped_refptr<RectangleUpdateDecoder> rectangle_decoder_;
112 scoped_ptr<InputHandler> input_handler_; 114 scoped_ptr<InputHandler> input_handler_;
113 scoped_ptr<ChromotingClient> client_; 115 scoped_ptr<ChromotingClient> client_;
114 116
115 // XmppProxy is a refcounted interface used to perform thread-switching and 117 // XmppProxy is a refcounted interface used to perform thread-switching and
116 // detaching between objects whose lifetimes are controlled by pepper, and 118 // detaching between objects whose lifetimes are controlled by pepper, and
117 // jingle_glue objects. This is used when if we start a sandboxed jingle 119 // jingle_glue objects. This is used when if we start a sandboxed jingle
118 // connection. 120 // connection.
119 scoped_refptr<PepperXmppProxy> xmpp_proxy_; 121 scoped_refptr<PepperXmppProxy> xmpp_proxy_;
120 122
123 ClientLogger* logger_;
dmac 2011/05/13 23:34:10 does this need to be a scoped_ptr? it looks like i
garykac 2011/05/14 01:09:16 Done.
124
121 // JavaScript interface to control this instance. 125 // JavaScript interface to control this instance.
122 // This wraps a ChromotingScriptableObject in a pp::Var. 126 // This wraps a ChromotingScriptableObject in a pp::Var.
123 pp::Var instance_object_; 127 pp::Var instance_object_;
124 128
125 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); 129 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);
126 }; 130 };
127 131
128 } // namespace remoting 132 } // namespace remoting
129 133
130 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 134 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698