| 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/renderer/render_frame.h" | 7 #include "content/public/renderer/render_frame.h" |
| 8 #include "content/public/renderer/render_frame_observer.h" | 8 #include "content/public/renderer/render_frame_observer.h" |
| 9 #include "content/public/renderer/render_frame_observer_tracker.h" | 9 #include "content/public/renderer/render_frame_observer_tracker.h" |
| 10 #include "content/public/renderer/render_thread.h" | 10 #include "content/public/renderer/render_thread.h" |
| 11 #include "extensions/common/extensions_client.h" | 11 #include "extensions/common/extensions_client.h" |
| 12 #include "extensions/renderer/default_dispatcher_delegate.h" | 12 #include "extensions/renderer/default_dispatcher_delegate.h" |
| 13 #include "extensions/renderer/dispatcher.h" | 13 #include "extensions/renderer/dispatcher.h" |
| 14 #include "extensions/renderer/extension_helper.h" | 14 #include "extensions/renderer/extension_helper.h" |
| 15 #include "extensions/renderer/guest_view/guest_view_container.h" |
| 15 #include "extensions/shell/common/shell_extensions_client.h" | 16 #include "extensions/shell/common/shell_extensions_client.h" |
| 16 #include "extensions/shell/renderer/shell_extensions_renderer_client.h" | 17 #include "extensions/shell/renderer/shell_extensions_renderer_client.h" |
| 17 #include "third_party/WebKit/public/web/WebLocalFrame.h" | 18 #include "third_party/WebKit/public/web/WebLocalFrame.h" |
| 18 | 19 |
| 19 #if !defined(DISABLE_NACL) | 20 #if !defined(DISABLE_NACL) |
| 20 #include "components/nacl/common/nacl_constants.h" | 21 #include "components/nacl/common/nacl_constants.h" |
| 21 #include "components/nacl/renderer/nacl_helper.h" | 22 #include "components/nacl/renderer/nacl_helper.h" |
| 22 #include "components/nacl/renderer/ppb_nacl_private_impl.h" | 23 #include "components/nacl/renderer/ppb_nacl_private_impl.h" |
| 23 #include "ppapi/c/private/ppb_nacl_private.h" | 24 #include "ppapi/c/private/ppb_nacl_private.h" |
| 24 #endif | 25 #endif |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 #else | 167 #else |
| 167 return false; | 168 return false; |
| 168 #endif | 169 #endif |
| 169 } | 170 } |
| 170 | 171 |
| 171 bool ShellContentRendererClient::ShouldEnableSiteIsolationPolicy() const { | 172 bool ShellContentRendererClient::ShouldEnableSiteIsolationPolicy() const { |
| 172 // Extension renderers don't need site isolation. | 173 // Extension renderers don't need site isolation. |
| 173 return false; | 174 return false; |
| 174 } | 175 } |
| 175 | 176 |
| 177 content::BrowserPluginDelegate* |
| 178 ShellContentRendererClient::CreateBrowserPluginDelegate( |
| 179 content::RenderFrame* render_frame, |
| 180 const std::string& mime_type) { |
| 181 return new extensions::GuestViewContainer(render_frame, mime_type); |
| 182 } |
| 183 |
| 176 } // namespace extensions | 184 } // namespace extensions |
| OLD | NEW |