Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(326)

Side by Side Diff: chrome/browser/extensions/extension_host.cc

Issue 18339006: Rename RenderViewGone IPC/methods to better reflect reality (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes for reviews by creis@ and palmer@. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/extensions/extension_host.h ('k') | chrome/browser/infobars/infobar_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_host.h ('k') | chrome/browser/infobars/infobar_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698