OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "content/browser/renderer_host/render_view_host.h" | 5 #include "content/browser/renderer_host/render_view_host.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 save_accessibility_tree_for_testing_(false), | 104 save_accessibility_tree_for_testing_(false), |
105 render_view_termination_status_(base::TERMINATION_STATUS_STILL_RUNNING) { | 105 render_view_termination_status_(base::TERMINATION_STATUS_STILL_RUNNING) { |
106 if (!session_storage_namespace_) { | 106 if (!session_storage_namespace_) { |
107 session_storage_namespace_ = | 107 session_storage_namespace_ = |
108 new SessionStorageNamespace(process()->profile()->GetWebKitContext()); | 108 new SessionStorageNamespace(process()->profile()->GetWebKitContext()); |
109 } | 109 } |
110 | 110 |
111 DCHECK(instance_); | 111 DCHECK(instance_); |
112 CHECK(delegate_); // http://crbug.com/82827 | 112 CHECK(delegate_); // http://crbug.com/82827 |
113 | 113 |
| 114 process()->EnableSendQueue(); |
| 115 |
114 content::GetContentClient()->browser()->RenderViewHostCreated(this); | 116 content::GetContentClient()->browser()->RenderViewHostCreated(this); |
115 | 117 |
116 NotificationService::current()->Notify( | 118 NotificationService::current()->Notify( |
117 NotificationType::RENDER_VIEW_HOST_CREATED, | 119 NotificationType::RENDER_VIEW_HOST_CREATED, |
118 Source<RenderViewHost>(this), | 120 Source<RenderViewHost>(this), |
119 NotificationService::NoDetails()); | 121 NotificationService::NoDetails()); |
120 } | 122 } |
121 | 123 |
122 RenderViewHost::~RenderViewHost() { | 124 RenderViewHost::~RenderViewHost() { |
123 FOR_EACH_OBSERVER( | 125 FOR_EACH_OBSERVER( |
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1315 if (view) { | 1317 if (view) { |
1316 view->ShowPopupMenu(params.bounds, | 1318 view->ShowPopupMenu(params.bounds, |
1317 params.item_height, | 1319 params.item_height, |
1318 params.item_font_size, | 1320 params.item_font_size, |
1319 params.selected_item, | 1321 params.selected_item, |
1320 params.popup_items, | 1322 params.popup_items, |
1321 params.right_aligned); | 1323 params.right_aligned); |
1322 } | 1324 } |
1323 } | 1325 } |
1324 #endif | 1326 #endif |
OLD | NEW |