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

Unified Diff: components/cast_channel/keep_alive_delegate.cc

Issue 2913033003: [cast_channel] Move cast_channel related files from //extensions to //components (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
Index: components/cast_channel/keep_alive_delegate.cc
diff --git a/extensions/browser/api/cast_channel/keep_alive_delegate.cc b/components/cast_channel/keep_alive_delegate.cc
similarity index 93%
rename from extensions/browser/api/cast_channel/keep_alive_delegate.cc
rename to components/cast_channel/keep_alive_delegate.cc
index c6803ebc9919cd1a9ba21586acfec881e408b95b..e8a82a31b32976bdc9fb34df712bb5ff473c6143 100644
--- a/extensions/browser/api/cast_channel/keep_alive_delegate.cc
+++ b/components/cast_channel/keep_alive_delegate.cc
@@ -2,21 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "extensions/browser/api/cast_channel/keep_alive_delegate.h"
+#include "components/cast_channel/keep_alive_delegate.h"
#include <string>
#include <utility>
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
-#include "extensions/browser/api/cast_channel/cast_socket.h"
-#include "extensions/browser/api/cast_channel/logger.h"
-#include "extensions/common/api/cast_channel/cast_channel.pb.h"
-#include "extensions/common/api/cast_channel/logging.pb.h"
+#include "base/values.h"
+#include "components/cast_channel/cast_socket.h"
+#include "components/cast_channel/logger.h"
+#include "components/cast_channel/proto/cast_channel.pb.h"
+#include "components/cast_channel/proto/logging.pb.h"
#include "net/base/net_errors.h"
-namespace extensions {
-namespace api {
namespace cast_channel {
namespace {
@@ -88,8 +87,7 @@ KeepAliveDelegate::KeepAliveDelegate(
pong_message_ = CreateKeepAliveMessage(kHeartbeatPongType);
}
-KeepAliveDelegate::~KeepAliveDelegate() {
-}
+KeepAliveDelegate::~KeepAliveDelegate() {}
void KeepAliveDelegate::SetTimersForTest(
std::unique_ptr<base::Timer> injected_ping_timer,
@@ -196,5 +194,3 @@ void KeepAliveDelegate::Stop() {
}
} // namespace cast_channel
-} // namespace api
-} // namespace extensions

Powered by Google App Engine
This is Rietveld 408576698