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

Side by Side Diff: chrome/browser/renderer_host/chrome_render_view_host_observer.cc

Issue 11000027: Rename GetSite in SiteInstance to GetSiteURL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/renderer_host/chrome_render_view_host_observer.h" 5 #include "chrome/browser/renderer_host/chrome_render_view_host_observer.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/net/predictor.h" 9 #include "chrome/browser/net/predictor.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 case Extension::TYPE_THEME: 135 case Extension::TYPE_THEME:
136 break; 136 break;
137 } 137 }
138 } 138 }
139 139
140 const Extension* ChromeRenderViewHostObserver::GetExtension() { 140 const Extension* ChromeRenderViewHostObserver::GetExtension() {
141 // Note that due to ChromeContentBrowserClient::GetEffectiveURL(), hosted apps 141 // Note that due to ChromeContentBrowserClient::GetEffectiveURL(), hosted apps
142 // (excluding bookmark apps) will have a chrome-extension:// URL for their 142 // (excluding bookmark apps) will have a chrome-extension:// URL for their
143 // site, so we can ignore that wrinkle here. 143 // site, so we can ignore that wrinkle here.
144 SiteInstance* site_instance = render_view_host()->GetSiteInstance(); 144 SiteInstance* site_instance = render_view_host()->GetSiteInstance();
145 const GURL& site = site_instance->GetSite(); 145 const GURL& site = site_instance->GetSiteURL();
146 146
147 if (!site.SchemeIs(chrome::kExtensionScheme)) 147 if (!site.SchemeIs(chrome::kExtensionScheme))
148 return NULL; 148 return NULL;
149 149
150 ExtensionService* service = profile_->GetExtensionService(); 150 ExtensionService* service = profile_->GetExtensionService();
151 if (!service) 151 if (!service)
152 return NULL; 152 return NULL;
153 153
154 // Reload the extension if it has crashed. 154 // Reload the extension if it has crashed.
155 // TODO(yoz): This reload doesn't happen synchronously for unpacked 155 // TODO(yoz): This reload doesn't happen synchronously for unpacked
(...skipping 14 matching lines...) Expand all
170 if (process_manager) 170 if (process_manager)
171 process_manager->UnregisterRenderViewHost(rvh); 171 process_manager->UnregisterRenderViewHost(rvh);
172 } 172 }
173 173
174 void ChromeRenderViewHostObserver::OnFocusedEditableNodeTouched() { 174 void ChromeRenderViewHostObserver::OnFocusedEditableNodeTouched() {
175 content::NotificationService::current()->Notify( 175 content::NotificationService::current()->Notify(
176 chrome::NOTIFICATION_FOCUSED_EDITABLE_NODE_TOUCHED, 176 chrome::NOTIFICATION_FOCUSED_EDITABLE_NODE_TOUCHED,
177 content::Source<RenderViewHost>(render_view_host()), 177 content::Source<RenderViewHost>(render_view_host()),
178 content::NotificationService::NoDetails()); 178 content::NotificationService::NoDetails());
179 } 179 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_process_manager.cc ('k') | content/browser/browser_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698