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

Unified Diff: ppapi/proxy/plugin_dispatcher.h

Issue 9655019: Fix a crash related to PPAPI scripting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix constructor init list order. Created 8 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/proxy/plugin_dispatcher.h
diff --git a/ppapi/proxy/plugin_dispatcher.h b/ppapi/proxy/plugin_dispatcher.h
index 55806b491cb86a045f0fd086b620a88400329213..6e9b34888ca910b4a48dcf88added09eb5d846df 100644
--- a/ppapi/proxy/plugin_dispatcher.h
+++ b/ppapi/proxy/plugin_dispatcher.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/hash_tables.h"
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "base/process.h"
#include "build/build_config.h"
#include "ppapi/c/dev/ppb_console_dev.h"
@@ -41,7 +42,9 @@ struct InstanceData {
PP_CompletionCallback mouse_lock_callback;
};
-class PPAPI_PROXY_EXPORT PluginDispatcher : public Dispatcher {
+class PPAPI_PROXY_EXPORT PluginDispatcher
+ : public Dispatcher,
+ public base::SupportsWeakPtr<PluginDispatcher> {
public:
class PPAPI_PROXY_EXPORT PluginDelegate : public ProxyChannel::Delegate {
public:

Powered by Google App Engine
This is Rietveld 408576698