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

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

Issue 11820009: Distinguish plugin disconnections from plugin crashes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | 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 2240 matching lines...) Expand 10 before | Expand all | Expand 10 after
2251 #if defined(OS_ANDROID) 2251 #if defined(OS_ANDROID)
2252 void WebContentsImpl::OnFindMatchRectsReply( 2252 void WebContentsImpl::OnFindMatchRectsReply(
2253 int version, 2253 int version,
2254 const std::vector<gfx::RectF>& rects, 2254 const std::vector<gfx::RectF>& rects,
2255 const gfx::RectF& active_rect) { 2255 const gfx::RectF& active_rect) {
2256 if (delegate_) 2256 if (delegate_)
2257 delegate_->FindMatchRectsReply(this, version, rects, active_rect); 2257 delegate_->FindMatchRectsReply(this, version, rects, active_rect);
2258 } 2258 }
2259 #endif 2259 #endif
2260 2260
2261 void WebContentsImpl::OnCrashedPlugin(const FilePath& plugin_path) { 2261 void WebContentsImpl::OnCrashedPlugin(const FilePath& plugin_path,
2262 base::ProcessId plugin_pid) {
2262 FOR_EACH_OBSERVER(WebContentsObserver, observers_, 2263 FOR_EACH_OBSERVER(WebContentsObserver, observers_,
2263 PluginCrashed(plugin_path)); 2264 PluginCrashed(plugin_path, plugin_pid));
2264 } 2265 }
2265 2266
2266 void WebContentsImpl::OnAppCacheAccessed(const GURL& manifest_url, 2267 void WebContentsImpl::OnAppCacheAccessed(const GURL& manifest_url,
2267 bool blocked_by_policy) { 2268 bool blocked_by_policy) {
2268 // Notify observers about navigation. 2269 // Notify observers about navigation.
2269 FOR_EACH_OBSERVER(WebContentsObserver, observers_, 2270 FOR_EACH_OBSERVER(WebContentsObserver, observers_,
2270 AppCacheAccessed(manifest_url, blocked_by_policy)); 2271 AppCacheAccessed(manifest_url, blocked_by_policy));
2271 } 2272 }
2272 2273
2273 void WebContentsImpl::OnOpenColorChooser(int color_chooser_id, 2274 void WebContentsImpl::OnOpenColorChooser(int color_chooser_id,
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after
3383 3384
3384 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() { 3385 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() {
3385 return browser_plugin_guest_.get(); 3386 return browser_plugin_guest_.get();
3386 } 3387 }
3387 3388
3388 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() { 3389 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() {
3389 return browser_plugin_embedder_.get(); 3390 return browser_plugin_embedder_.get();
3390 } 3391 }
3391 3392
3392 } // namespace content 3393 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698