OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |