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

Side by Side Diff: content/browser/renderer_host/render_view_host.cc

Issue 9467016: Get rid of WebKitContext. Only two out of six HTML5 related objects were in it and it was just a gl… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix bug Created 8 years, 10 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
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 "content/browser/renderer_host/render_view_host.h" 5 #include "content/browser/renderer_host/render_view_host.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 unload_ack_is_for_cross_site_transition_(false), 134 unload_ack_is_for_cross_site_transition_(false),
135 are_javascript_messages_suppressed_(false), 135 are_javascript_messages_suppressed_(false),
136 sudden_termination_allowed_(false), 136 sudden_termination_allowed_(false),
137 session_storage_namespace_( 137 session_storage_namespace_(
138 static_cast<SessionStorageNamespaceImpl*>(session_storage)), 138 static_cast<SessionStorageNamespaceImpl*>(session_storage)),
139 save_accessibility_tree_for_testing_(false), 139 save_accessibility_tree_for_testing_(false),
140 send_accessibility_updated_notifications_(false), 140 send_accessibility_updated_notifications_(false),
141 render_view_termination_status_(base::TERMINATION_STATUS_STILL_RUNNING) { 141 render_view_termination_status_(base::TERMINATION_STATUS_STILL_RUNNING) {
142 if (!session_storage_namespace_) { 142 if (!session_storage_namespace_) {
143 DOMStorageContext* dom_storage_context = 143 DOMStorageContext* dom_storage_context =
144 DOMStorageContext::GetForBrowserContext(process()->GetBrowserContext()); 144 BrowserContext::GetDOMStorageContext(process()->GetBrowserContext());
145 session_storage_namespace_ = new SessionStorageNamespaceImpl( 145 session_storage_namespace_ = new SessionStorageNamespaceImpl(
146 static_cast<DOMStorageContextImpl*>(dom_storage_context)); 146 static_cast<DOMStorageContextImpl*>(dom_storage_context));
147 } 147 }
148 148
149 DCHECK(instance_); 149 DCHECK(instance_);
150 CHECK(delegate_); // http://crbug.com/82827 150 CHECK(delegate_); // http://crbug.com/82827
151 151
152 process()->EnableSendQueue(); 152 process()->EnableSendQueue();
153 153
154 content::GetContentClient()->browser()->RenderViewHostCreated(this); 154 content::GetContentClient()->browser()->RenderViewHostCreated(this);
(...skipping 1445 matching lines...) Expand 10 before | Expand all | Expand 10 after
1600 // Whenever we change swap out state, we should not be waiting for 1600 // Whenever we change swap out state, we should not be waiting for
1601 // beforeunload or unload acks. We clear them here to be safe, since they 1601 // beforeunload or unload acks. We clear them here to be safe, since they
1602 // can cause navigations to be ignored in OnMsgNavigate. 1602 // can cause navigations to be ignored in OnMsgNavigate.
1603 is_waiting_for_beforeunload_ack_ = false; 1603 is_waiting_for_beforeunload_ack_ = false;
1604 is_waiting_for_unload_ack_ = false; 1604 is_waiting_for_unload_ack_ = false;
1605 } 1605 }
1606 1606
1607 void RenderViewHost::ClearPowerSaveBlockers() { 1607 void RenderViewHost::ClearPowerSaveBlockers() {
1608 STLDeleteValues(&power_save_blockers_); 1608 STLDeleteValues(&power_save_blockers_);
1609 } 1609 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/browser/resource_context_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698