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 701713003: Support embedded plugins with MimeHandlerView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor-guest-view-container
Patch Set: Created 6 years, 1 month 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
« no previous file with comments | « extensions/shell/renderer/shell_content_renderer_client.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 } 172 }
173 173
174 bool ShellContentRendererClient::ShouldEnableSiteIsolationPolicy() const { 174 bool ShellContentRendererClient::ShouldEnableSiteIsolationPolicy() const {
175 // Extension renderers don't need site isolation. 175 // Extension renderers don't need site isolation.
176 return false; 176 return false;
177 } 177 }
178 178
179 content::BrowserPluginDelegate* 179 content::BrowserPluginDelegate*
180 ShellContentRendererClient::CreateBrowserPluginDelegate( 180 ShellContentRendererClient::CreateBrowserPluginDelegate(
181 content::RenderFrame* render_frame, 181 content::RenderFrame* render_frame,
182 const std::string& mime_type) { 182 const std::string& mime_type,
183 if (mime_type == content::kBrowserPluginMimeType) 183 const GURL& original_url) {
184 if (mime_type == content::kBrowserPluginMimeType) {
184 return new extensions::ExtensionsGuestViewContainer(render_frame); 185 return new extensions::ExtensionsGuestViewContainer(render_frame);
185 else 186 } else {
186 return new extensions::MimeHandlerViewContainer(render_frame, mime_type); 187 return new extensions::MimeHandlerViewContainer(
188 render_frame, mime_type, original_url);
189 }
187 } 190 }
188 191
189 } // namespace extensions 192 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/shell/renderer/shell_content_renderer_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698