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

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

Issue 275453002: Update WebFrameClient::didClearWindowObject API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/web_ui_mojo.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 2201 matching lines...) Expand 10 before | Expand all | Expand 10 after
2212 if (!frame->parent()) { // Only for top frames. 2212 if (!frame->parent()) { // Only for top frames.
2213 RenderThreadImpl* render_thread_impl = RenderThreadImpl::current(); 2213 RenderThreadImpl* render_thread_impl = RenderThreadImpl::current();
2214 if (render_thread_impl) { // Can be NULL in tests. 2214 if (render_thread_impl) { // Can be NULL in tests.
2215 render_thread_impl->histogram_customizer()-> 2215 render_thread_impl->histogram_customizer()->
2216 RenderViewNavigatedToHost(GURL(GetLoadingUrl(frame)).host(), 2216 RenderViewNavigatedToHost(GURL(GetLoadingUrl(frame)).host(),
2217 g_view_map.Get().size()); 2217 g_view_map.Get().size());
2218 } 2218 }
2219 } 2219 }
2220 } 2220 }
2221 2221
2222 void RenderViewImpl::didClearWindowObject(WebLocalFrame* frame, int world_id) { 2222 void RenderViewImpl::didClearWindowObject(WebLocalFrame* frame) {
2223 FOR_EACH_OBSERVER(RenderViewObserver, observers_, 2223 FOR_EACH_OBSERVER(
2224 DidClearWindowObject(frame, world_id)); 2224 RenderViewObserver, observers_, DidClearWindowObject(frame));
2225
2226 // Only install controllers into the main world.
2227 if (world_id)
2228 return;
2229 2225
2230 if (enabled_bindings_& BINDINGS_POLICY_WEB_UI) 2226 if (enabled_bindings_& BINDINGS_POLICY_WEB_UI)
2231 WebUIExtension::Install(frame); 2227 WebUIExtension::Install(frame);
2232 2228
2233 if (enabled_bindings_ & BINDINGS_POLICY_STATS_COLLECTION) 2229 if (enabled_bindings_ & BINDINGS_POLICY_STATS_COLLECTION)
2234 StatsCollectionController::Install(frame); 2230 StatsCollectionController::Install(frame);
2235 2231
2236 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); 2232 const CommandLine& command_line = *CommandLine::ForCurrentProcess();
2237 2233
2238 if (command_line.HasSwitch(switches::kEnableSkiaBenchmarking)) 2234 if (command_line.HasSwitch(switches::kEnableSkiaBenchmarking))
(...skipping 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after
4139 std::vector<gfx::Size> sizes; 4135 std::vector<gfx::Size> sizes;
4140 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); 4136 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes);
4141 if (!url.isEmpty()) 4137 if (!url.isEmpty())
4142 urls.push_back( 4138 urls.push_back(
4143 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); 4139 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes));
4144 } 4140 }
4145 SendUpdateFaviconURL(urls); 4141 SendUpdateFaviconURL(urls);
4146 } 4142 }
4147 4143
4148 } // namespace content 4144 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | content/renderer/web_ui_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698