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

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

Issue 10829225: Browser Plugin: Add HTML5-like postMessage support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed crash + cleanup Created 8 years, 3 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/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 3070 matching lines...) Expand 10 before | Expand all | Expand 10 after
3081 } 3081 }
3082 3082
3083 WebPreferences WebContentsImpl::GetWebkitPrefs() { 3083 WebPreferences WebContentsImpl::GetWebkitPrefs() {
3084 // We want to base the page config off of the real URL, rather than the 3084 // We want to base the page config off of the real URL, rather than the
3085 // display URL. 3085 // display URL.
3086 GURL url = controller_.GetActiveEntry() 3086 GURL url = controller_.GetActiveEntry()
3087 ? controller_.GetActiveEntry()->GetURL() : GURL::EmptyGURL(); 3087 ? controller_.GetActiveEntry()->GetURL() : GURL::EmptyGURL();
3088 return GetWebkitPrefs(GetRenderViewHost(), url); 3088 return GetWebkitPrefs(GetRenderViewHost(), url);
3089 } 3089 }
3090 3090
3091 int WebContentsImpl::CreateSwappedOutRenderViewForGuest(
3092 content::SiteInstance* instance) {
3093 return render_manager_.CreateRenderView(instance, MSG_ROUTING_NONE, true);
3094 }
3095
3091 void WebContentsImpl::OnUserGesture() { 3096 void WebContentsImpl::OnUserGesture() {
3092 // Notify observers. 3097 // Notify observers.
3093 FOR_EACH_OBSERVER(WebContentsObserver, observers_, DidGetUserGesture()); 3098 FOR_EACH_OBSERVER(WebContentsObserver, observers_, DidGetUserGesture());
3094 3099
3095 ResourceDispatcherHostImpl* rdh = ResourceDispatcherHostImpl::Get(); 3100 ResourceDispatcherHostImpl* rdh = ResourceDispatcherHostImpl::Get();
3096 if (rdh) // NULL in unittests. 3101 if (rdh) // NULL in unittests.
3097 rdh->OnUserGesture(this); 3102 rdh->OnUserGesture(this);
3098 } 3103 }
3099 3104
3100 void WebContentsImpl::OnIgnoredUIEvent() { 3105 void WebContentsImpl::OnIgnoredUIEvent() {
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
3358 } 3363 }
3359 } 3364 }
3360 3365
3361 content::BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { 3366 content::BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() {
3362 return browser_plugin_guest_.get(); 3367 return browser_plugin_guest_.get();
3363 } 3368 }
3364 3369
3365 content::BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { 3370 content::BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() {
3366 return browser_plugin_embedder_.get(); 3371 return browser_plugin_embedder_.get();
3367 } 3372 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698