Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / ui / webui / extensions / extension_error_handler.h
index 41ea12a..080f03d 100644 (file)
@@ -9,6 +9,7 @@
 
 #include "base/basictypes.h"
 #include "base/compiler_specific.h"
+#include "base/memory/weak_ptr.h"
 #include "content/public/browser/web_ui_message_handler.h"
 
 namespace base {
@@ -43,6 +44,10 @@ class ExtensionErrorHandler : public content::WebUIMessageHandler {
 
   // Handle the "requestFileSource" call.
   void HandleRequestFileSource(const base::ListValue* args);
+
+  // Called when |error_ui_util::HandleRequestFileSource| finishes.
+  void OnFileSourceHandled(const base::DictionaryValue& source);
+
   // Handle the "openDevTools" call.
   void HandleOpenDevTools(const base::ListValue* args);
 
@@ -65,6 +70,9 @@ class ExtensionErrorHandler : public content::WebUIMessageHandler {
   // The profile with which this Handler is associated.
   Profile* profile_;
 
+  // Weak pointer factory for posting background tasks.
+  base::WeakPtrFactory<ExtensionErrorHandler> weak_ptr_factory_;
+
   DISALLOW_COPY_AND_ASSIGN(ExtensionErrorHandler);
 };