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

Unified Diff: chrome/renderer/prerender/prerender_media_load_deferrer.h

Issue 1292433002: Defer media playback in background tabs. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 5 years, 4 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: chrome/renderer/prerender/prerender_media_load_deferrer.h
diff --git a/chrome/renderer/prerender/prerender_media_load_deferrer.h b/chrome/renderer/prerender/prerender_media_load_deferrer.h
deleted file mode 100644
index 2c783892e34e26eca9188977c2ed94e3fda3281a..0000000000000000000000000000000000000000
--- a/chrome/renderer/prerender/prerender_media_load_deferrer.h
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright 2013 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 CHROME_RENDERER_PRERENDER_PRERENDER_MEDIA_LOAD_DEFERRER_H_
-#define CHROME_RENDERER_PRERENDER_PRERENDER_MEDIA_LOAD_DEFERRER_H_
-
-#include "base/callback.h"
-#include "content/public/renderer/render_frame_observer.h"
-
-namespace prerender {
-
-// Defers media player loading in prerendered pages until the prerendered page
-// is swapped in.
-class PrerenderMediaLoadDeferrer : public content::RenderFrameObserver {
- public:
- // Will run |closure| to continue loading the media resource once the page is
- // swapped in.
- PrerenderMediaLoadDeferrer(content::RenderFrame* render_frame,
- const base::Closure& closure);
- ~PrerenderMediaLoadDeferrer() override;
-
- private:
- // RenderFrameObserver method:
- bool OnMessageReceived(const IPC::Message& message) override;
-
- void OnSetIsPrerendering(bool is_prerendering);
-
- bool is_prerendering_;
- base::Closure continue_loading_cb_;
-
- DISALLOW_COPY_AND_ASSIGN(PrerenderMediaLoadDeferrer);
-};
-
-} // namespace prerender
-
-#endif // CHROME_RENDERER_PRERENDER_PRERENDER_MEDIA_LOAD_DEFERRER_H_
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | chrome/renderer/prerender/prerender_media_load_deferrer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698