| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser/extensions/extension_host.h" | 5 #include "chrome/browser/extensions/extension_host.h" |
| 6 | 6 |
| 7 #include <list> | 7 #include <list> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 break; | 317 break; |
| 318 } | 318 } |
| 319 } | 319 } |
| 320 | 320 |
| 321 void ExtensionHost::ResizeDueToAutoResize(WebContents* source, | 321 void ExtensionHost::ResizeDueToAutoResize(WebContents* source, |
| 322 const gfx::Size& new_size) { | 322 const gfx::Size& new_size) { |
| 323 if (view()) | 323 if (view()) |
| 324 view()->ResizeDueToAutoResize(new_size); | 324 view()->ResizeDueToAutoResize(new_size); |
| 325 } | 325 } |
| 326 | 326 |
| 327 void ExtensionHost::RenderViewGone(base::TerminationStatus status) { | 327 void ExtensionHost::RenderProcessGone(base::TerminationStatus status) { |
| 328 // During browser shutdown, we may use sudden termination on an extension | 328 // During browser shutdown, we may use sudden termination on an extension |
| 329 // process, so it is expected to lose our connection to the render view. | 329 // process, so it is expected to lose our connection to the render view. |
| 330 // Do nothing. | 330 // Do nothing. |
| 331 if (browser_shutdown::GetShutdownType() != browser_shutdown::NOT_VALID) | 331 if (browser_shutdown::GetShutdownType() != browser_shutdown::NOT_VALID) |
| 332 return; | 332 return; |
| 333 | 333 |
| 334 // In certain cases, multiple ExtensionHost objects may have pointed to | 334 // In certain cases, multiple ExtensionHost objects may have pointed to |
| 335 // the same Extension at some point (one with a background page and a | 335 // the same Extension at some point (one with a background page and a |
| 336 // popup, for example). When the first ExtensionHost goes away, the extension | 336 // popup, for example). When the first ExtensionHost goes away, the extension |
| 337 // is unloaded, and any other host that pointed to that extension will have | 337 // is unloaded, and any other host that pointed to that extension will have |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 | 640 |
| 641 void ExtensionHost::RequestMediaAccessPermission( | 641 void ExtensionHost::RequestMediaAccessPermission( |
| 642 content::WebContents* web_contents, | 642 content::WebContents* web_contents, |
| 643 const content::MediaStreamRequest& request, | 643 const content::MediaStreamRequest& request, |
| 644 const content::MediaResponseCallback& callback) { | 644 const content::MediaResponseCallback& callback) { |
| 645 MediaCaptureDevicesDispatcher::GetInstance()->ProcessMediaAccessRequest( | 645 MediaCaptureDevicesDispatcher::GetInstance()->ProcessMediaAccessRequest( |
| 646 web_contents, request, callback, extension()); | 646 web_contents, request, callback, extension()); |
| 647 } | 647 } |
| 648 | 648 |
| 649 } // namespace extensions | 649 } // namespace extensions |
| OLD | NEW |