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/browser/web_contents/web_contents_impl.cc

Issue 1560553002: Framelet Prototype 2016 Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased + Applied Brett's Windows + Fixed security issue Created 4 years, 11 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
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/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <utility> 10 #include <utility>
(...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after
1384 } 1384 }
1385 1385
1386 GetRenderManager()->Init(site_instance.get(), view_routing_id, 1386 GetRenderManager()->Init(site_instance.get(), view_routing_id,
1387 params.main_frame_routing_id, 1387 params.main_frame_routing_id,
1388 main_frame_widget_routing_id); 1388 main_frame_widget_routing_id);
1389 frame_tree_.root()->SetFrameName(params.main_frame_name); 1389 frame_tree_.root()->SetFrameName(params.main_frame_name);
1390 1390
1391 WebContentsViewDelegate* delegate = 1391 WebContentsViewDelegate* delegate =
1392 GetContentClient()->browser()->GetWebContentsViewDelegate(this); 1392 GetContentClient()->browser()->GetWebContentsViewDelegate(this);
1393 1393
1394 CreateBrowserPluginEmbedderIfNecessary();
1395
1394 #if defined(MOJO_SHELL_CLIENT) 1396 #if defined(MOJO_SHELL_CLIENT)
1395 if (MojoShellConnection::Get() && 1397 if (MojoShellConnection::Get() &&
1396 base::CommandLine::ForCurrentProcess()->HasSwitch( 1398 base::CommandLine::ForCurrentProcess()->HasSwitch(
1397 switches::kUseMusInRenderer)) { 1399 switches::kUseMusInRenderer)) {
1398 mus::Window* mus_window = aura::GetMusWindow(params.context); 1400 mus::Window* mus_window = aura::GetMusWindow(params.context);
1399 if (mus_window) { 1401 if (mus_window) {
1400 view_.reset(new WebContentsViewMus(mus_window, this, delegate, 1402 view_.reset(new WebContentsViewMus(mus_window, this, delegate,
1401 &render_view_host_delegate_view_)); 1403 &render_view_host_delegate_view_));
1402 } 1404 }
1403 } 1405 }
(...skipping 2087 matching lines...) Expand 10 before | Expand all | Expand 10 after
3491 } 3493 }
3492 } 3494 }
3493 3495
3494 void WebContentsImpl::OnPpapiBrokerPermissionResult(int routing_id, 3496 void WebContentsImpl::OnPpapiBrokerPermissionResult(int routing_id,
3495 bool result) { 3497 bool result) {
3496 Send(new ViewMsg_PpapiBrokerPermissionResult(routing_id, result)); 3498 Send(new ViewMsg_PpapiBrokerPermissionResult(routing_id, result));
3497 } 3499 }
3498 3500
3499 void WebContentsImpl::OnBrowserPluginMessage(RenderFrameHost* render_frame_host, 3501 void WebContentsImpl::OnBrowserPluginMessage(RenderFrameHost* render_frame_host,
3500 const IPC::Message& message) { 3502 const IPC::Message& message) {
3501 CHECK(!browser_plugin_embedder_.get());
3502 CreateBrowserPluginEmbedderIfNecessary();
3503 browser_plugin_embedder_->OnMessageReceived(message, render_frame_host); 3503 browser_plugin_embedder_->OnMessageReceived(message, render_frame_host);
3504 } 3504 }
3505 #endif // defined(ENABLE_PLUGINS) 3505 #endif // defined(ENABLE_PLUGINS)
3506 3506
3507 void WebContentsImpl::OnUpdateFaviconURL( 3507 void WebContentsImpl::OnUpdateFaviconURL(
3508 const std::vector<FaviconURL>& candidates) { 3508 const std::vector<FaviconURL>& candidates) {
3509 // We get updated favicon URLs after the page stops loading. If a cross-site 3509 // We get updated favicon URLs after the page stops loading. If a cross-site
3510 // navigation occurs while a page is still loading, the initial page 3510 // navigation occurs while a page is still loading, the initial page
3511 // may stop loading and send us updated favicon URLs after the navigation 3511 // may stop loading and send us updated favicon URLs after the navigation
3512 // for the new page has committed. 3512 // for the new page has committed.
(...skipping 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after
4750 const WebContentsObserver::MediaPlayerId& id) { 4750 const WebContentsObserver::MediaPlayerId& id) {
4751 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStartedPlaying(id)); 4751 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStartedPlaying(id));
4752 } 4752 }
4753 4753
4754 void WebContentsImpl::MediaStoppedPlaying( 4754 void WebContentsImpl::MediaStoppedPlaying(
4755 const WebContentsObserver::MediaPlayerId& id) { 4755 const WebContentsObserver::MediaPlayerId& id) {
4756 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStoppedPlaying(id)); 4756 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStoppedPlaying(id));
4757 } 4757 }
4758 4758
4759 } // namespace content 4759 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/ui_events_helper.cc ('k') | content/common/android/sync_compositor_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698