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

Unified Diff: chrome/browser/pepper_flash_settings_manager.h

Issue 10986059: Fail incoming requests in PepperFlashSettingsManager after an error. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/pepper_flash_settings_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: 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 65bb055d3623381ff987ba91001593307019989a..3fd242ba611f370621fb0a49341bac46d488b592 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<PepperFlashSettingsManager> weak_ptr_factory_;
// |client_| is not owned by this object and must outlive it.
Client* client_;
« no previous file with comments | « no previous file | chrome/browser/pepper_flash_settings_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698