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

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

Issue 2860263002: NOT FOR COMMIT: Move background pausing to the WebView level
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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/renderer/chrome_content_renderer_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const GURL& url) override; 122 const GURL& url) override;
123 void GetNavigationErrorStrings(content::RenderFrame* render_frame, 123 void GetNavigationErrorStrings(content::RenderFrame* render_frame,
124 const blink::WebURLRequest& failed_request, 124 const blink::WebURLRequest& failed_request,
125 const blink::WebURLError& error, 125 const blink::WebURLError& error,
126 std::string* error_html, 126 std::string* error_html,
127 base::string16* error_description) override; 127 base::string16* error_description) override;
128 void DeferMediaLoad(content::RenderFrame* render_frame, 128 void DeferMediaLoad(content::RenderFrame* render_frame,
129 bool has_played_media_before, 129 bool has_played_media_before,
130 const base::Closure& closure) override; 130 const base::Closure& closure) override;
131 bool RunIdleHandlerWhenWidgetsHidden() override; 131 bool RunIdleHandlerWhenWidgetsHidden() override;
132 bool AllowTimerSuspensionWhenProcessBackgrounded() override;
133 bool AllowPopup() override; 132 bool AllowPopup() override;
134 bool ShouldFork(blink::WebLocalFrame* frame, 133 bool ShouldFork(blink::WebLocalFrame* frame,
135 const GURL& url, 134 const GURL& url,
136 const std::string& http_method, 135 const std::string& http_method,
137 bool is_initial_navigation, 136 bool is_initial_navigation,
138 bool is_server_redirect, 137 bool is_server_redirect,
139 bool* send_referrer) override; 138 bool* send_referrer) override;
140 bool WillSendRequest(blink::WebLocalFrame* frame, 139 bool WillSendRequest(blink::WebLocalFrame* frame,
141 ui::PageTransition transition_type, 140 ui::PageTransition transition_type,
142 const blink::WebURL& url, 141 const blink::WebURL& url,
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 // Observes module load and unload events and notifies the ModuleDatabase in 269 // Observes module load and unload events and notifies the ModuleDatabase in
271 // the browser process. 270 // the browser process.
272 std::unique_ptr<ModuleWatcher> module_watcher_; 271 std::unique_ptr<ModuleWatcher> module_watcher_;
273 mojom::ModuleEventSinkPtr module_event_sink_; 272 mojom::ModuleEventSinkPtr module_event_sink_;
274 #endif 273 #endif
275 274
276 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient); 275 DISALLOW_COPY_AND_ASSIGN(ChromeContentRendererClient);
277 }; 276 };
278 277
279 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 278 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698