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

Side by Side Diff: remoting/client/plugin/pepper_client_logger.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
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_
7
8 #include "remoting/client/client_logger.h"
9
10 #include "base/task.h"
11
12 class MessageLoop;
13
14 namespace remoting {
15
16 class ChromotingInstance;
17
18 class PepperClientLogger : public ClientLogger {
19 public:
20 PepperClientLogger(ChromotingInstance* instance);
21 virtual ~PepperClientLogger();
22
23 void va_Log(logging::LogSeverity severity, const char* format, va_list ap);
24 void va_VLog(int verboselevel, const char* format, va_list ap);
25
26 private:
27 void LogToClientUI(const std::string& message);
28
29 ChromotingInstance* instance_;
30 MessageLoop* message_loop_;
31
32 DISALLOW_COPY_AND_ASSIGN(PepperClientLogger);
33 };
34
35 } // namespace remoting
36
37 DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::PepperClientLogger);
38
39 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_CLIENT_LOGGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698