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

Side by Side Diff: extensions/shell/renderer/shell_content_renderer_client.cc

Issue 2855123003: Remove rendundant WebLocalFrame parameter in various plugin code. (Closed)
Patch Set: Fix Android 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "extensions/shell/renderer/shell_content_renderer_client.h" 5 #include "extensions/shell/renderer/shell_content_renderer_client.h"
6 6
7 #include "content/public/common/content_constants.h" 7 #include "content/public/common/content_constants.h"
8 #include "content/public/renderer/render_frame.h" 8 #include "content/public/renderer/render_frame.h"
9 #include "content/public/renderer/render_frame_observer.h" 9 #include "content/public/renderer/render_frame_observer.h"
10 #include "content/public/renderer/render_frame_observer_tracker.h" 10 #include "content/public/renderer/render_frame_observer_tracker.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 #endif 73 #endif
74 } 74 }
75 75
76 void ShellContentRendererClient::RenderViewCreated( 76 void ShellContentRendererClient::RenderViewCreated(
77 content::RenderView* render_view) { 77 content::RenderView* render_view) {
78 new ExtensionHelper(render_view, extension_dispatcher_.get()); 78 new ExtensionHelper(render_view, extension_dispatcher_.get());
79 } 79 }
80 80
81 bool ShellContentRendererClient::OverrideCreatePlugin( 81 bool ShellContentRendererClient::OverrideCreatePlugin(
82 content::RenderFrame* render_frame, 82 content::RenderFrame* render_frame,
83 blink::WebLocalFrame* frame,
84 const blink::WebPluginParams& params, 83 const blink::WebPluginParams& params,
85 blink::WebPlugin** plugin) { 84 blink::WebPlugin** plugin) {
86 // Allow the content module to create the plugin. 85 // Allow the content module to create the plugin.
87 return false; 86 return false;
88 } 87 }
89 88
90 blink::WebPlugin* ShellContentRendererClient::CreatePluginReplacement( 89 blink::WebPlugin* ShellContentRendererClient::CreatePluginReplacement(
91 content::RenderFrame* render_frame, 90 content::RenderFrame* render_frame,
92 const base::FilePath& plugin_path) { 91 const base::FilePath& plugin_path) {
93 // Don't provide a custom "failed to load" plugin. 92 // Don't provide a custom "failed to load" plugin.
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 void ShellContentRendererClient::RunScriptsAtDocumentEnd( 139 void ShellContentRendererClient::RunScriptsAtDocumentEnd(
141 content::RenderFrame* render_frame) { 140 content::RenderFrame* render_frame) {
142 extension_dispatcher_->RunScriptsAtDocumentEnd(render_frame); 141 extension_dispatcher_->RunScriptsAtDocumentEnd(render_frame);
143 } 142 }
144 143
145 ExtensionsClient* ShellContentRendererClient::CreateExtensionsClient() { 144 ExtensionsClient* ShellContentRendererClient::CreateExtensionsClient() {
146 return new ShellExtensionsClient; 145 return new ShellExtensionsClient;
147 } 146 }
148 147
149 } // namespace extensions 148 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698