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