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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 16206002: Add more support for FreeBSD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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 <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 3478 matching lines...) Expand 10 before | Expand all | Expand 10 after
3489 int32 max_page_id = 3489 int32 max_page_id =
3490 GetMaxPageIDForSiteInstance(render_view_host->GetSiteInstance()); 3490 GetMaxPageIDForSiteInstance(render_view_host->GetSiteInstance());
3491 3491
3492 if (!static_cast<RenderViewHostImpl*>( 3492 if (!static_cast<RenderViewHostImpl*>(
3493 render_view_host)->CreateRenderView(string16(), 3493 render_view_host)->CreateRenderView(string16(),
3494 opener_route_id, 3494 opener_route_id,
3495 max_page_id)) { 3495 max_page_id)) {
3496 return false; 3496 return false;
3497 } 3497 }
3498 3498
3499 #if defined(OS_LINUX) || defined(OS_OPENBSD) 3499 #if defined(OS_LINUX) || defined(OS_BSD)
3500 // Force a ViewMsg_Resize to be sent, needed to make plugins show up on 3500 // Force a ViewMsg_Resize to be sent, needed to make plugins show up on
3501 // linux. See crbug.com/83941. 3501 // linux. See crbug.com/83941.
3502 if (rwh_view) { 3502 if (rwh_view) {
3503 if (RenderWidgetHost* render_widget_host = rwh_view->GetRenderWidgetHost()) 3503 if (RenderWidgetHost* render_widget_host = rwh_view->GetRenderWidgetHost())
3504 render_widget_host->WasResized(); 3504 render_widget_host->WasResized();
3505 } 3505 }
3506 #endif 3506 #endif
3507 3507
3508 return true; 3508 return true;
3509 } 3509 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
3575 } 3575 }
3576 3576
3577 BrowserPluginGuestManager* 3577 BrowserPluginGuestManager*
3578 WebContentsImpl::GetBrowserPluginGuestManager() const { 3578 WebContentsImpl::GetBrowserPluginGuestManager() const {
3579 return static_cast<BrowserPluginGuestManager*>( 3579 return static_cast<BrowserPluginGuestManager*>(
3580 GetBrowserContext()->GetUserData( 3580 GetBrowserContext()->GetUserData(
3581 browser_plugin::kBrowserPluginGuestManagerKeyName)); 3581 browser_plugin::kBrowserPluginGuestManagerKeyName));
3582 } 3582 }
3583 3583
3584 } // namespace content 3584 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698