From 7c826913a4b98be007a322b37a744d5a90bdfd42 Mon Sep 17 00:00:00 2001 From: "bauerb@chromium.org" Date: Mon, 1 Oct 2012 22:05:27 +0000 Subject: Fail incoming requests in PepperFlashSettingsManager after an error. This is the second of two CLs to address the issue mentioned below. It is in itself enough in itself to fix the issue, but given that the issue actually discovered two bugs, there is an other CL to fix the other bug too. See issue for details. BUG=144874 Review URL: https://chromiumcodereview.appspot.com/10986059 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@159569 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/pepper_flash_settings_manager.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'chrome/browser/pepper_flash_settings_manager.h') diff --git a/chrome/browser/pepper_flash_settings_manager.h b/chrome/browser/pepper_flash_settings_manager.h index 65bb055..3fd242b 100644 --- a/chrome/browser/pepper_flash_settings_manager.h +++ b/chrome/browser/pepper_flash_settings_manager.h @@ -7,6 +7,7 @@ #include "base/basictypes.h" #include "base/memory/ref_counted.h" +#include "base/memory/weak_ptr.h" #include "ppapi/c/private/ppp_flash_browser_operations.h" #include "ppapi/shared_impl/ppp_flash_browser_operations_shared.h" @@ -113,8 +114,10 @@ class PepperFlashSettingsManager { void EnsureCoreExists(); - // Notified by |core_| when an error occurs. - void OnError(); + // Notifies us that an error occurred in |core|. + void OnError(Core* core); + + base::WeakPtrFactory weak_ptr_factory_; // |client_| is not owned by this object and must outlive it. Client* client_; -- cgit v1.1