| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 blink::WebFrame* frame, | 104 blink::WebFrame* frame, |
| 105 ui::PageTransition transition_type, | 105 ui::PageTransition transition_type, |
| 106 const GURL& url, | 106 const GURL& url, |
| 107 const GURL& first_party_for_cookies, | 107 const GURL& first_party_for_cookies, |
| 108 GURL* new_url) { | 108 GURL* new_url) { |
| 109 // TODO(jamescook): Cause an error for bad extension scheme requests? | 109 // TODO(jamescook): Cause an error for bad extension scheme requests? |
| 110 return false; | 110 return false; |
| 111 } | 111 } |
| 112 | 112 |
| 113 void ShellContentRendererClient::DidCreateScriptContext( | 113 void ShellContentRendererClient::DidCreateScriptContext( |
| 114 WebFrame* frame, | 114 blink::WebLocalFrame* frame, |
| 115 v8::Handle<v8::Context> context, | 115 v8::Handle<v8::Context> context, |
| 116 int extension_group, | 116 int extension_group, |
| 117 int world_id) { | 117 int world_id) { |
| 118 extension_dispatcher_->DidCreateScriptContext( | 118 extension_dispatcher_->DidCreateScriptContext( |
| 119 frame, context, extension_group, world_id); | 119 frame, context, extension_group, world_id); |
| 120 } | 120 } |
| 121 | 121 |
| 122 const void* ShellContentRendererClient::CreatePPAPIInterface( | 122 const void* ShellContentRendererClient::CreatePPAPIInterface( |
| 123 const std::string& interface_name) { | 123 const std::string& interface_name) { |
| 124 #if !defined(DISABLE_NACL) | 124 #if !defined(DISABLE_NACL) |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 return new extensions::MimeHandlerViewContainer( | 156 return new extensions::MimeHandlerViewContainer( |
| 157 render_frame, mime_type, original_url); | 157 render_frame, mime_type, original_url); |
| 158 } | 158 } |
| 159 } | 159 } |
| 160 | 160 |
| 161 ExtensionsClient* ShellContentRendererClient::CreateExtensionsClient() { | 161 ExtensionsClient* ShellContentRendererClient::CreateExtensionsClient() { |
| 162 return new ShellExtensionsClient; | 162 return new ShellExtensionsClient; |
| 163 } | 163 } |
| 164 | 164 |
| 165 } // namespace extensions | 165 } // namespace extensions |
| OLD | NEW |