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

Unified Diff: extensions/browser/api/cast_channel/cast_channel_api.h

Issue 2937153002: [cast_channel] Create KeepAliveDelegate in CastSocket instead of in CastChannelOpenFunction (Closed)
Patch Set: rebase with master Created 3 years, 6 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: extensions/browser/api/cast_channel/cast_channel_api.h
diff --git a/extensions/browser/api/cast_channel/cast_channel_api.h b/extensions/browser/api/cast_channel/cast_channel_api.h
index 6ac7eff5360d237aae5c1223c0235ba742734828..baecc333a8db04baa8a3b5176afba35fbf722386 100644
--- a/extensions/browser/api/cast_channel/cast_channel_api.h
+++ b/extensions/browser/api/cast_channel/cast_channel_api.h
@@ -65,13 +65,6 @@ class CastChannelAPI : public BrowserContextKeyedAPI,
// Returns the API browser context.
content::BrowserContext* GetBrowserContext() const;
- // Sets injected ping timeout timer for testing.
- void SetPingTimeoutTimerForTest(std::unique_ptr<base::Timer> timer);
-
- // Gets the injected ping timeout timer, if set.
- // Returns a null scoped ptr if there is no injected timer.
- std::unique_ptr<base::Timer> GetInjectedTimeoutTimerForTest();
-
// Sends an event to the extension's EventRouter, if it exists.
void SendEvent(const std::string& extension_id, std::unique_ptr<Event> event);
@@ -88,7 +81,6 @@ class CastChannelAPI : public BrowserContextKeyedAPI,
content::BrowserContext* const browser_context_;
scoped_refptr<cast_channel::Logger> logger_;
std::unique_ptr<cast_channel::CastSocket> socket_for_test_;
- std::unique_ptr<base::Timer> injected_timeout_timer_;
DISALLOW_COPY_AND_ASSIGN(CastChannelAPI);
};
« no previous file with comments | « components/cast_channel/cast_socket_unittest.cc ('k') | extensions/browser/api/cast_channel/cast_channel_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698