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

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

Issue 8095007: Defer loading of audio/video tags while prerendering. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Addressing Andrew's comments Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 29 matching lines...) Expand all
40 virtual void RenderThreadStarted() OVERRIDE; 40 virtual void RenderThreadStarted() OVERRIDE;
41 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE; 41 virtual void RenderViewCreated(RenderView* render_view) OVERRIDE;
42 virtual void SetNumberOfViews(int number_of_views) OVERRIDE; 42 virtual void SetNumberOfViews(int number_of_views) OVERRIDE;
43 virtual SkBitmap* GetSadPluginBitmap() OVERRIDE; 43 virtual SkBitmap* GetSadPluginBitmap() OVERRIDE;
44 virtual std::string GetDefaultEncoding() OVERRIDE; 44 virtual std::string GetDefaultEncoding() OVERRIDE;
45 virtual bool OverrideCreatePlugin( 45 virtual bool OverrideCreatePlugin(
46 RenderView* render_view, 46 RenderView* render_view,
47 WebKit::WebFrame* frame, 47 WebKit::WebFrame* frame,
48 const WebKit::WebPluginParams& params, 48 const WebKit::WebPluginParams& params,
49 WebKit::WebPlugin** plugin) OVERRIDE; 49 WebKit::WebPlugin** plugin) OVERRIDE;
50 virtual bool ShouldOverrideCreateWebMediaPlayer(RenderView* view) OVERRIDE;
51 virtual void OverrideCreateWebMediaPlayer(
52 RenderView* render_view,
53 WebKit::WebMediaPlayerClient* client,
54 media::FilterCollection* collection,
55 media::MessageLoopFactory* message_loop_factory,
56 webkit_glue::MediaStreamClient* media_stream_client,
57 media::MediaLog* media_log,
58 webkit_glue::WebMediaPlayerImpl** player) OVERRIDE;
50 virtual void ShowErrorPage(RenderView* render_view, 59 virtual void ShowErrorPage(RenderView* render_view,
51 WebKit::WebFrame* frame, 60 WebKit::WebFrame* frame,
52 int http_status_code) OVERRIDE; 61 int http_status_code) OVERRIDE;
53 virtual std::string GetNavigationErrorHtml( 62 virtual std::string GetNavigationErrorHtml(
54 const WebKit::WebURLRequest& failed_request, 63 const WebKit::WebURLRequest& failed_request,
55 const WebKit::WebURLError& error) OVERRIDE; 64 const WebKit::WebURLError& error) OVERRIDE;
56 virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE; 65 virtual bool RunIdleHandlerWhenWidgetsHidden() OVERRIDE;
57 virtual bool AllowPopup(const GURL& creator) OVERRIDE; 66 virtual bool AllowPopup(const GURL& creator) OVERRIDE;
58 virtual bool ShouldFork(WebKit::WebFrame* frame, 67 virtual bool ShouldFork(WebKit::WebFrame* frame,
59 const GURL& url, 68 const GURL& url,
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // The SpellCheckProvider is a RenderViewObserver, and handles its own 134 // The SpellCheckProvider is a RenderViewObserver, and handles its own
126 // destruction. 135 // destruction.
127 SpellCheckProvider* spellcheck_provider_; 136 SpellCheckProvider* spellcheck_provider_;
128 scoped_ptr<VisitedLinkSlave> visited_link_slave_; 137 scoped_ptr<VisitedLinkSlave> visited_link_slave_;
129 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_; 138 scoped_ptr<safe_browsing::PhishingClassifierFilter> phishing_classifier_;
130 }; 139 };
131 140
132 } // namespace chrome 141 } // namespace chrome
133 142
134 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_ 143 #endif // CHROME_RENDERER_CHROME_CONTENT_RENDERER_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698