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

Side by Side Diff: chrome/renderer/chrome_content_renderer_client.h

Issue 1292433002: Defer media playback in background tabs. (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add sticky playback bit. 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 6 #define CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 bool HasErrorPage(int http_status_code, std::string* error_domain) override; 98 bool HasErrorPage(int http_status_code, std::string* error_domain) override;
99 bool ShouldSuppressErrorPage(content::RenderFrame* render_frame, 99 bool ShouldSuppressErrorPage(content::RenderFrame* render_frame,
100 const GURL& url) override; 100 const GURL& url) override;
101 void GetNavigationErrorStrings(content::RenderView* render_view, 101 void GetNavigationErrorStrings(content::RenderView* render_view,
102 blink::WebFrame* frame, 102 blink::WebFrame* frame,
103 const blink::WebURLRequest& failed_request, 103 const blink::WebURLRequest& failed_request,
104 const blink::WebURLError& error, 104 const blink::WebURLError& error,
105 std::string* error_html, 105 std::string* error_html,
106 base::string16* error_description) override; 106 base::string16* error_description) override;
107 void DeferMediaLoad(content::RenderFrame* render_frame, 107 void DeferMediaLoad(content::RenderFrame* render_frame,
108 bool render_frame_has_played_media_before,
108 const base::Closure& closure) override; 109 const base::Closure& closure) override;
109 bool RunIdleHandlerWhenWidgetsHidden() override; 110 bool RunIdleHandlerWhenWidgetsHidden() override;
110 bool AllowPopup() override; 111 bool AllowPopup() override;
111 bool ShouldFork(blink::WebLocalFrame* frame, 112 bool ShouldFork(blink::WebLocalFrame* frame,
112 const GURL& url, 113 const GURL& url,
113 const std::string& http_method, 114 const std::string& http_method,
114 bool is_initial_navigation, 115 bool is_initial_navigation,
115 bool is_server_redirect, 116 bool is_server_redirect,
116 bool* send_referrer) override; 117 bool* send_referrer) override;
117 bool WillSendRequest(blink::WebFrame* frame, 118 bool WillSendRequest(blink::WebFrame* frame,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 #if defined(ENABLE_PRINT_PREVIEW) 246 #if defined(ENABLE_PRINT_PREVIEW)
246 scoped_ptr<ChromePDFPrintClient> pdf_print_client_; 247 scoped_ptr<ChromePDFPrintClient> pdf_print_client_;
247 #endif 248 #endif
248 #if defined(ENABLE_PLUGINS) 249 #if defined(ENABLE_PLUGINS)
249 std::set<std::string> allowed_camera_device_origins_; 250 std::set<std::string> allowed_camera_device_origins_;
250 std::set<std::string> allowed_compositor_origins_; 251 std::set<std::string> allowed_compositor_origins_;
251 #endif 252 #endif
252 }; 253 };
253 254
254 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 255 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/chrome_content_renderer_client.cc » ('j') | chrome/renderer/chrome_content_renderer_client.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698