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

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

Issue 10409088: Get rid of the RenderViewType concept in content, since it was only used by Chrome. Store the enum… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 8 years, 7 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"
21 #include "content/public/browser/site_instance.h" 20 #include "content/public/browser/site_instance.h"
22 21
23 using content::ChildProcessSecurityPolicy; 22 using content::ChildProcessSecurityPolicy;
24 using content::RenderViewHost; 23 using content::RenderViewHost;
25 using content::SiteInstance; 24 using content::SiteInstance;
26 using extensions::Extension; 25 using extensions::Extension;
27 26
28 ChromeRenderViewHostObserver::ChromeRenderViewHostObserver( 27 ChromeRenderViewHostObserver::ChromeRenderViewHostObserver(
29 RenderViewHost* render_view_host, chrome_browser_net::Predictor* predictor) 28 RenderViewHost* render_view_host, chrome_browser_net::Predictor* predictor)
30 : content::RenderViewHostObserver(render_view_host), 29 : content::RenderViewHostObserver(render_view_host),
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 if (process_manager) 168 if (process_manager)
170 process_manager->UnregisterRenderViewHost(rvh); 169 process_manager->UnregisterRenderViewHost(rvh);
171 } 170 }
172 171
173 void ChromeRenderViewHostObserver::OnFocusedEditableNodeTouched() { 172 void ChromeRenderViewHostObserver::OnFocusedEditableNodeTouched() {
174 content::NotificationService::current()->Notify( 173 content::NotificationService::current()->Notify(
175 chrome::NOTIFICATION_FOCUSED_EDITABLE_NODE_TOUCHED, 174 chrome::NOTIFICATION_FOCUSED_EDITABLE_NODE_TOUCHED,
176 content::Source<RenderViewHost>(render_view_host()), 175 content::Source<RenderViewHost>(render_view_host()),
177 content::NotificationService::NoDetails()); 176 content::NotificationService::NoDetails());
178 } 177 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698