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

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

Issue 2601763002: WebFrame cleanup: Move addMessageToConsole to WebLocalFrame (Closed)
Patch Set: Created 3 years, 11 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 } 88 }
89 89
90 blink::WebPlugin* ShellContentRendererClient::CreatePluginReplacement( 90 blink::WebPlugin* ShellContentRendererClient::CreatePluginReplacement(
91 content::RenderFrame* render_frame, 91 content::RenderFrame* render_frame,
92 const base::FilePath& plugin_path) { 92 const base::FilePath& plugin_path) {
93 // Don't provide a custom "failed to load" plugin. 93 // Don't provide a custom "failed to load" plugin.
94 return NULL; 94 return NULL;
95 } 95 }
96 96
97 bool ShellContentRendererClient::WillSendRequest( 97 bool ShellContentRendererClient::WillSendRequest(
98 blink::WebFrame* frame, 98 blink::WebLocalFrame* frame,
99 ui::PageTransition transition_type, 99 ui::PageTransition transition_type,
100 const blink::WebURL& url, 100 const blink::WebURL& url,
101 GURL* new_url) { 101 GURL* new_url) {
102 // TODO(jamescook): Cause an error for bad extension scheme requests? 102 // TODO(jamescook): Cause an error for bad extension scheme requests?
103 return false; 103 return false;
104 } 104 }
105 105
106 bool ShellContentRendererClient::IsExternalPepperPlugin( 106 bool ShellContentRendererClient::IsExternalPepperPlugin(
107 const std::string& module_name) { 107 const std::string& module_name) {
108 #if !defined(DISABLE_NACL) 108 #if !defined(DISABLE_NACL)
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 void ShellContentRendererClient::RunScriptsAtDocumentEnd( 140 void ShellContentRendererClient::RunScriptsAtDocumentEnd(
141 content::RenderFrame* render_frame) { 141 content::RenderFrame* render_frame) {
142 extension_dispatcher_->RunScriptsAtDocumentEnd(render_frame); 142 extension_dispatcher_->RunScriptsAtDocumentEnd(render_frame);
143 } 143 }
144 144
145 ExtensionsClient* ShellContentRendererClient::CreateExtensionsClient() { 145 ExtensionsClient* ShellContentRendererClient::CreateExtensionsClient() {
146 return new ShellExtensionsClient; 146 return new ShellExtensionsClient;
147 } 147 }
148 148
149 } // namespace extensions 149 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698