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

Side by Side Diff: chrome/renderer/extensions/chrome_extensions_renderer_client.cc

Issue 1642283002: Deal with frame removal by content scripts (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Last nits Created 4 years, 9 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 "chrome/renderer/extensions/chrome_extensions_renderer_client.h" 5 #include "chrome/renderer/extensions/chrome_extensions_renderer_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/lazy_instance.h" 10 #include "base/lazy_instance.h"
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 content::BrowserPluginDelegate* 297 content::BrowserPluginDelegate*
298 ChromeExtensionsRendererClient::CreateBrowserPluginDelegate( 298 ChromeExtensionsRendererClient::CreateBrowserPluginDelegate(
299 content::RenderFrame* render_frame, 299 content::RenderFrame* render_frame,
300 const std::string& mime_type, 300 const std::string& mime_type,
301 const GURL& original_url) { 301 const GURL& original_url) {
302 if (mime_type == content::kBrowserPluginMimeType) 302 if (mime_type == content::kBrowserPluginMimeType)
303 return new extensions::ExtensionsGuestViewContainer(render_frame); 303 return new extensions::ExtensionsGuestViewContainer(render_frame);
304 return new extensions::MimeHandlerViewContainer(render_frame, mime_type, 304 return new extensions::MimeHandlerViewContainer(render_frame, mime_type,
305 original_url); 305 original_url);
306 } 306 }
307
308 void ChromeExtensionsRendererClient::RunScriptsAtDocumentStart(
309 content::RenderFrame* render_frame) {
310 extension_dispatcher_->RunScriptsAtDocumentStart(render_frame);
311 }
312
313 void ChromeExtensionsRendererClient::RunScriptsAtDocumentEnd(
314 content::RenderFrame* render_frame) {
315 extension_dispatcher_->RunScriptsAtDocumentEnd(render_frame);
316 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698