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

Side by Side Diff: chrome/browser/cocoa/extension_view_mac.mm

Issue 220028: Create renderers for ExtensionHosts one a time to avoid blocking the UI. (Closed)
Patch Set: scoped task factory Created 11 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_host.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/cocoa/extension_view_mac.h" 5 #include "chrome/browser/cocoa/extension_view_mac.h"
6 6
7 #include "chrome/browser/extensions/extension_host.h" 7 #include "chrome/browser/extensions/extension_host.h"
8 #include "chrome/browser/renderer_host/render_view_host.h" 8 #include "chrome/browser/renderer_host/render_view_host.h"
9 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h" 9 #include "chrome/browser/renderer_host/render_widget_host_view_mac.h"
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 57
58 void ExtensionViewMac::CreateWidgetHostView() { 58 void ExtensionViewMac::CreateWidgetHostView() {
59 DCHECK(!render_widget_host_view_); 59 DCHECK(!render_widget_host_view_);
60 render_widget_host_view_ = new RenderWidgetHostViewMac(render_view_host()); 60 render_widget_host_view_ = new RenderWidgetHostViewMac(render_view_host());
61 61
62 // The RenderWidgetHostViewMac is owned by its native view, which is created 62 // The RenderWidgetHostViewMac is owned by its native view, which is created
63 // in an autoreleased state. retain it, so that it doesn't immediately 63 // in an autoreleased state. retain it, so that it doesn't immediately
64 // disappear. 64 // disappear.
65 [render_widget_host_view_->native_view() retain]; 65 [render_widget_host_view_->native_view() retain];
66 66
67 extension_host_->CreateRenderView(render_widget_host_view_); 67 extension_host_->CreateRenderViewSoon(render_widget_host_view_);
68 } 68 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698