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

Unified Diff: content/browser/intents/internal_web_intents_dispatcher.h

Issue 10218009: Allow severing connection between dispatcher and injector (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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: content/browser/intents/internal_web_intents_dispatcher.h
diff --git a/content/browser/intents/internal_web_intents_dispatcher.h b/content/browser/intents/internal_web_intents_dispatcher.h
index a1022cff71fabbb177b8bcbcc93bdf88eed8504a..59a6dc83fa6b34e7f019d7abb395b0a086137bce 100644
--- a/content/browser/intents/internal_web_intents_dispatcher.h
+++ b/content/browser/intents/internal_web_intents_dispatcher.h
@@ -9,6 +9,7 @@
#include "base/callback.h"
#include "base/compiler_specific.h"
+#include "base/gtest_prod_util.h"
#include "content/public/browser/web_intents_dispatcher.h"
#include "webkit/glue/web_intent_data.h"
@@ -43,12 +44,15 @@ class CONTENT_EXPORT InternalWebIntentsDispatcher
virtual const webkit_glue::WebIntentData& GetIntent() OVERRIDE;
virtual void DispatchIntent(
content::WebContents* destination_contents) OVERRIDE;
+ virtual void CancelDispatch() OVERRIDE;
virtual void SendReplyMessage(webkit_glue::WebIntentReplyType reply_type,
const string16& data) OVERRIDE;
virtual void RegisterReplyNotification(
const content::WebIntentsDispatcher::ReplyNotification& closure) OVERRIDE;
private:
+ FRIEND_TEST_ALL_PREFIXES(InternalWebIntentsDispatcherTest,
+ CancelAbandonsInjector);
// The intent data to be delivered.
webkit_glue::WebIntentData intent_;

Powered by Google App Engine
This is Rietveld 408576698