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

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

Issue 10831116: Move SessionStorageNamespace entirely into NavigationController and support StoragePartitions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merged ToT Created 8 years, 4 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 "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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 site_instance->GetBrowserContext())), 134 site_instance->GetBrowserContext())),
135 render_view_host_(NULL), 135 render_view_host_(NULL),
136 did_stop_loading_(false), 136 did_stop_loading_(false),
137 document_element_available_(false), 137 document_element_available_(false),
138 initial_url_(url), 138 initial_url_(url),
139 ALLOW_THIS_IN_INITIALIZER_LIST( 139 ALLOW_THIS_IN_INITIALIZER_LIST(
140 extension_function_dispatcher_(profile_, this)), 140 extension_function_dispatcher_(profile_, this)),
141 extension_host_type_(host_type), 141 extension_host_type_(host_type),
142 associated_web_contents_(NULL) { 142 associated_web_contents_(NULL) {
143 host_contents_.reset(WebContents::Create( 143 host_contents_.reset(WebContents::Create(
144 profile_, site_instance, MSG_ROUTING_NONE, NULL, NULL)); 144 profile_, site_instance, MSG_ROUTING_NONE, NULL));
145 content::WebContentsObserver::Observe(host_contents_.get()); 145 content::WebContentsObserver::Observe(host_contents_.get());
146 host_contents_->SetDelegate(this); 146 host_contents_->SetDelegate(this);
147 chrome::SetViewType(host_contents_.get(), host_type); 147 chrome::SetViewType(host_contents_.get(), host_type);
148 148
149 prefs_tab_helper_.reset(new PrefsTabHelper(host_contents())); 149 prefs_tab_helper_.reset(new PrefsTabHelper(host_contents()));
150 150
151 render_view_host_ = host_contents_->GetRenderViewHost(); 151 render_view_host_ = host_contents_->GetRenderViewHost();
152 152
153 // Listen for when an extension is unloaded from the same profile, as it may 153 // Listen for when an extension is unloaded from the same profile, as it may
154 // be the same extension that this points to. 154 // be the same extension that this points to.
(...skipping 465 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 } 620 }
621 621
622 void ExtensionHost::RenderViewReady() { 622 void ExtensionHost::RenderViewReady() {
623 content::NotificationService::current()->Notify( 623 content::NotificationService::current()->Notify(
624 chrome::NOTIFICATION_EXTENSION_HOST_CREATED, 624 chrome::NOTIFICATION_EXTENSION_HOST_CREATED,
625 content::Source<Profile>(profile_), 625 content::Source<Profile>(profile_),
626 content::Details<ExtensionHost>(this)); 626 content::Details<ExtensionHost>(this));
627 } 627 }
628 628
629 } // namespace extensions 629 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698