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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 157713002: Switch DomAutomationController to be a RenderFrameObserver. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add notification to interstitialpageimpl Created 6 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/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 #include "content/public/renderer/render_view_visitor.h" 69 #include "content/public/renderer/render_view_visitor.h"
70 #include "content/public/renderer/web_preferences.h" 70 #include "content/public/renderer/web_preferences.h"
71 #include "content/renderer/accessibility/renderer_accessibility.h" 71 #include "content/renderer/accessibility/renderer_accessibility.h"
72 #include "content/renderer/accessibility/renderer_accessibility_complete.h" 72 #include "content/renderer/accessibility/renderer_accessibility_complete.h"
73 #include "content/renderer/accessibility/renderer_accessibility_focus_only.h" 73 #include "content/renderer/accessibility/renderer_accessibility_focus_only.h"
74 #include "content/renderer/browser_plugin/browser_plugin.h" 74 #include "content/renderer/browser_plugin/browser_plugin.h"
75 #include "content/renderer/browser_plugin/browser_plugin_manager.h" 75 #include "content/renderer/browser_plugin/browser_plugin_manager.h"
76 #include "content/renderer/browser_plugin/browser_plugin_manager_impl.h" 76 #include "content/renderer/browser_plugin/browser_plugin_manager_impl.h"
77 #include "content/renderer/devtools/devtools_agent.h" 77 #include "content/renderer/devtools/devtools_agent.h"
78 #include "content/renderer/disambiguation_popup_helper.h" 78 #include "content/renderer/disambiguation_popup_helper.h"
79 #include "content/renderer/dom_automation_controller.h"
80 #include "content/renderer/dom_storage/webstoragenamespace_impl.h" 79 #include "content/renderer/dom_storage/webstoragenamespace_impl.h"
81 #include "content/renderer/drop_data_builder.h" 80 #include "content/renderer/drop_data_builder.h"
82 #include "content/renderer/external_popup_menu.h" 81 #include "content/renderer/external_popup_menu.h"
83 #include "content/renderer/geolocation_dispatcher.h" 82 #include "content/renderer/geolocation_dispatcher.h"
84 #include "content/renderer/gpu/render_widget_compositor.h" 83 #include "content/renderer/gpu/render_widget_compositor.h"
85 #include "content/renderer/idle_user_detector.h" 84 #include "content/renderer/idle_user_detector.h"
86 #include "content/renderer/image_loading_helper.h" 85 #include "content/renderer/image_loading_helper.h"
87 #include "content/renderer/ime_event_guard.h" 86 #include "content/renderer/ime_event_guard.h"
88 #include "content/renderer/input/input_handler_manager.h" 87 #include "content/renderer/input/input_handler_manager.h"
89 #include "content/renderer/input_tag_speech_dispatcher.h" 88 #include "content/renderer/input_tag_speech_dispatcher.h"
(...skipping 3478 matching lines...) Expand 10 before | Expand all | Expand 10 after
3568 } 3567 }
3569 3568
3570 void RenderViewImpl::didClearWindowObject(WebFrame* frame, int world_id) { 3569 void RenderViewImpl::didClearWindowObject(WebFrame* frame, int world_id) {
3571 FOR_EACH_OBSERVER(RenderViewObserver, observers_, 3570 FOR_EACH_OBSERVER(RenderViewObserver, observers_,
3572 DidClearWindowObject(frame, world_id)); 3571 DidClearWindowObject(frame, world_id));
3573 3572
3574 // Only install controllers into the main world. 3573 // Only install controllers into the main world.
3575 if (world_id) 3574 if (world_id)
3576 return; 3575 return;
3577 3576
3578 if (enabled_bindings_ & BINDINGS_POLICY_DOM_AUTOMATION)
3579 DomAutomationController::Install(this, frame);
3580
3581 if (enabled_bindings_ & BINDINGS_POLICY_STATS_COLLECTION) 3577 if (enabled_bindings_ & BINDINGS_POLICY_STATS_COLLECTION)
3582 StatsCollectionController::Install(frame); 3578 StatsCollectionController::Install(frame);
3583 3579
3584 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 3580 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
3585 3581
3586 if (command_line.HasSwitch(switches::kEnableSkiaBenchmarking)) 3582 if (command_line.HasSwitch(switches::kEnableSkiaBenchmarking))
3587 SkiaBenchmarking::Install(frame); 3583 SkiaBenchmarking::Install(frame);
3588 3584
3589 if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking)) 3585 if (command_line.HasSwitch(switches::kEnableMemoryBenchmarking))
3590 MemoryBenchmarkingExtension::Install(frame); 3586 MemoryBenchmarkingExtension::Install(frame);
(...skipping 2478 matching lines...) Expand 10 before | Expand all | Expand 10 after
6069 for (size_t i = 0; i < icon_urls.size(); i++) { 6065 for (size_t i = 0; i < icon_urls.size(); i++) {
6070 WebURL url = icon_urls[i].iconURL(); 6066 WebURL url = icon_urls[i].iconURL();
6071 if (!url.isEmpty()) 6067 if (!url.isEmpty())
6072 urls.push_back(FaviconURL(url, 6068 urls.push_back(FaviconURL(url,
6073 ToFaviconType(icon_urls[i].iconType()))); 6069 ToFaviconType(icon_urls[i].iconType())));
6074 } 6070 }
6075 SendUpdateFaviconURL(urls); 6071 SendUpdateFaviconURL(urls);
6076 } 6072 }
6077 6073
6078 } // namespace content 6074 } // namespace content
OLDNEW
« content/renderer/render_frame_impl.cc ('K') | « content/renderer/render_frame_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698