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

Side by Side Diff: extensions/shell/renderer/shell_content_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 "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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 const std::string& mime_type, 126 const std::string& mime_type,
127 const GURL& original_url) { 127 const GURL& original_url) {
128 if (mime_type == content::kBrowserPluginMimeType) { 128 if (mime_type == content::kBrowserPluginMimeType) {
129 return new extensions::ExtensionsGuestViewContainer(render_frame); 129 return new extensions::ExtensionsGuestViewContainer(render_frame);
130 } else { 130 } else {
131 return new extensions::MimeHandlerViewContainer( 131 return new extensions::MimeHandlerViewContainer(
132 render_frame, mime_type, original_url); 132 render_frame, mime_type, original_url);
133 } 133 }
134 } 134 }
135 135
136 void ShellContentRendererClient::RunScriptsAtDocumentStart(
137 content::RenderFrame* render_frame) {
138 extension_dispatcher_->RunScriptsAtDocumentStart(render_frame);
139 }
140
141 void ShellContentRendererClient::RunScriptsAtDocumentEnd(
142 content::RenderFrame* render_frame) {
143 extension_dispatcher_->RunScriptsAtDocumentEnd(render_frame);
144 }
145
136 ExtensionsClient* ShellContentRendererClient::CreateExtensionsClient() { 146 ExtensionsClient* ShellContentRendererClient::CreateExtensionsClient() {
137 return new ShellExtensionsClient; 147 return new ShellExtensionsClient;
138 } 148 }
139 149
140 } // namespace extensions 150 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/renderer/shell_content_renderer_client.h ('k') | third_party/WebKit/Source/core/html/ImageDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698