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

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

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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"
11 #include "chrome/common/chrome_notification_types.h" 11 #include "chrome/common/chrome_notification_types.h"
12 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
13 #include "chrome/common/extensions/extension_messages.h" 13 #include "chrome/common/extensions/extension_messages.h"
14 #include "chrome/common/render_messages.h" 14 #include "chrome/common/render_messages.h"
15 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
16 #include "content/public/browser/child_process_security_policy.h" 16 #include "content/public/browser/child_process_security_policy.h"
17 #include "content/public/browser/notification_service.h" 17 #include "content/public/browser/notification_service.h"
18 #include "content/public/browser/render_process_host.h" 18 #include "content/public/browser/render_process_host.h"
19 #include "content/public/browser/render_view_host.h" 19 #include "content/public/browser/render_view_host.h"
20 #include "content/public/browser/render_view_host_delegate.h" 20 #include "content/public/browser/render_view_host_delegate.h"
21 #include "content/public/browser/site_instance.h" 21 #include "content/public/browser/site_instance.h"
22 22
23 using content::ChildProcessSecurityPolicy; 23 using content::ChildProcessSecurityPolicy;
24 using content::RenderViewHost;
24 using content::SiteInstance; 25 using content::SiteInstance;
25 26
26 ChromeRenderViewHostObserver::ChromeRenderViewHostObserver( 27 ChromeRenderViewHostObserver::ChromeRenderViewHostObserver(
27 RenderViewHost* render_view_host, chrome_browser_net::Predictor* predictor) 28 RenderViewHost* render_view_host, chrome_browser_net::Predictor* predictor)
28 : content::RenderViewHostObserver(render_view_host), 29 : content::RenderViewHostObserver(render_view_host),
29 predictor_(predictor) { 30 predictor_(predictor) {
30 SiteInstance* site_instance = render_view_host->GetSiteInstance(); 31 SiteInstance* site_instance = render_view_host->GetSiteInstance();
31 profile_ = Profile::FromBrowserContext( 32 profile_ = Profile::FromBrowserContext(
32 site_instance->GetBrowserContext()); 33 site_instance->GetBrowserContext());
33 34
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 if (process_manager) 164 if (process_manager)
164 process_manager->UnregisterRenderViewHost(rvh); 165 process_manager->UnregisterRenderViewHost(rvh);
165 } 166 }
166 167
167 void ChromeRenderViewHostObserver::OnFocusedEditableNodeTouched() { 168 void ChromeRenderViewHostObserver::OnFocusedEditableNodeTouched() {
168 content::NotificationService::current()->Notify( 169 content::NotificationService::current()->Notify(
169 chrome::NOTIFICATION_FOCUSED_EDITABLE_NODE_TOUCHED, 170 chrome::NOTIFICATION_FOCUSED_EDITABLE_NODE_TOUCHED,
170 content::Source<RenderViewHost>(render_view_host()), 171 content::Source<RenderViewHost>(render_view_host()),
171 content::NotificationService::NoDetails()); 172 content::NotificationService::NoDetails());
172 } 173 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698