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

Unified Diff: chrome/browser/extensions/script_executor.h

Issue 10826141: Formalise a CHECK for the NULL NavigationEntry in ScriptBadgeController, and (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: win compile fix Created 8 years, 4 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: chrome/browser/extensions/script_executor.h
diff --git a/chrome/browser/extensions/script_executor.h b/chrome/browser/extensions/script_executor.h
index af1a59dafea4b0fd834ab0b7ec4b60cc223a231c..c77065cc020c03d32ec387e8307244746ef4f30a 100644
--- a/chrome/browser/extensions/script_executor.h
+++ b/chrome/browser/extensions/script_executor.h
@@ -11,6 +11,8 @@
#include "base/observer_list.h"
#include "chrome/common/extensions/user_script.h"
+class GURL;
+
namespace base {
class ListValue;
} // namespace base
@@ -48,9 +50,9 @@ class ScriptExecutor {
ISOLATED_WORLD,
};
- // Callback from ExecuteScript. The arguments are (success, page_id, error,
- // result). page_id is only valid on success, error is only valid on !success.
- typedef base::Callback<void(bool, int32, const std::string&,
+ // Callback from ExecuteScript. The arguments are (error, on_page_id, on_url,
+ // result). Success is implied by an empty error.
+ typedef base::Callback<void(const std::string&, int32, const GURL&,
const base::ListValue&)>
ExecuteScriptCallback;
@@ -62,9 +64,9 @@ class ScriptExecutor {
virtual ~Observer();
virtual void OnExecuteScriptFinished(const std::string& extension_id,
- bool success,
- int32 page_id,
const std::string& error,
+ int32 on_page_id,
+ const GURL& on_url,
const base::ListValue&) = 0;
private:
ScriptExecutor& script_executor_;
« no previous file with comments | « chrome/browser/extensions/script_badge_controller_unittest.cc ('k') | chrome/browser/extensions/script_executor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698