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

Unified Diff: remoting/jingle_glue/log_to_server.h

Issue 390983003: Remove remoting/jingle_glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/jingle_glue/jingle_info_request.cc ('k') | remoting/jingle_glue/log_to_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/jingle_glue/log_to_server.h
diff --git a/remoting/jingle_glue/log_to_server.h b/remoting/jingle_glue/log_to_server.h
deleted file mode 100644
index 0414d6e56898b94bc2d00b4a4bb68f15b1808932..0000000000000000000000000000000000000000
--- a/remoting/jingle_glue/log_to_server.h
+++ /dev/null
@@ -1,60 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef REMOTING_JINGLE_GLUE_LOG_TO_SERVER_H_
-#define REMOTING_JINGLE_GLUE_LOG_TO_SERVER_H_
-
-#include <deque>
-#include <map>
-#include <string>
-
-#include "base/threading/non_thread_safe.h"
-#include "remoting/jingle_glue/server_log_entry.h"
-#include "remoting/jingle_glue/signal_strategy.h"
-
-namespace buzz {
-class XmlElement;
-} // namespace buzz
-
-namespace remoting {
-
-class IqSender;
-
-// LogToServer sends log entries to a server.
-// The contents of the log entries are described in server_log_entry.cc.
-// They do not contain any personally identifiable information.
-class LogToServer : public base::NonThreadSafe,
- public SignalStrategy::Listener {
- public:
- LogToServer(ServerLogEntry::Mode mode,
- SignalStrategy* signal_strategy,
- const std::string& directory_bot_jid);
- virtual ~LogToServer();
-
- // SignalStrategy::Listener interface.
- virtual void OnSignalStrategyStateChange(
- SignalStrategy::State state) OVERRIDE;
- virtual bool OnSignalStrategyIncomingStanza(
- const buzz::XmlElement* stanza) OVERRIDE;
-
- void Log(const ServerLogEntry& entry);
-
- ServerLogEntry::Mode mode() { return mode_; }
-
- private:
- void SendPendingEntries();
-
- ServerLogEntry::Mode mode_;
- SignalStrategy* signal_strategy_;
- scoped_ptr<IqSender> iq_sender_;
- std::string directory_bot_jid_;
-
- std::deque<ServerLogEntry> pending_entries_;
-
- DISALLOW_COPY_AND_ASSIGN(LogToServer);
-};
-
-} // namespace remoting
-
-#endif // REMOTING_JINGLE_GLUE_LOG_TO_SERVER_H_
« no previous file with comments | « remoting/jingle_glue/jingle_info_request.cc ('k') | remoting/jingle_glue/log_to_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698