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

Side by Side Diff: content/public/browser/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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_INTENTS_DISPATCHER_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_WEB_INTENTS_DISPATCHER_H_
6 #define CONTENT_PUBLIC_BROWSER_WEB_INTENTS_DISPATCHER_H_ 6 #define CONTENT_PUBLIC_BROWSER_WEB_INTENTS_DISPATCHER_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "webkit/glue/web_intent_reply_data.h" 10 #include "webkit/glue/web_intent_reply_data.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 virtual ~WebIntentsDispatcher() {} 48 virtual ~WebIntentsDispatcher() {}
49 49
50 // Get the intent data being dispatched. 50 // Get the intent data being dispatched.
51 virtual const webkit_glue::WebIntentData& GetIntent() = 0; 51 virtual const webkit_glue::WebIntentData& GetIntent() = 0;
52 52
53 // Attach the intent to a new context in which the service page is loaded. 53 // Attach the intent to a new context in which the service page is loaded.
54 // |web_contents| must not be NULL. 54 // |web_contents| must not be NULL.
55 virtual void DispatchIntent(WebContents* web_contents) = 0; 55 virtual void DispatchIntent(WebContents* web_contents) = 0;
56 56
57 // Abandon current attempt to dispatch, allow new call to DispatchIntent.
58 virtual void CancelDispatch() = 0;
Greg Billock 2012/04/25 14:26:52 How about ResetDispatch. This sounds like it'll ca
groby-ooo-7-16 2012/04/25 16:40:10 Done.
59
57 // Return a success or failure message to the source context which invoked 60 // Return a success or failure message to the source context which invoked
58 // the intent. Deletes the object; it should not be used after this call 61 // the intent. Deletes the object; it should not be used after this call
59 // returns. Calls the reply notifications, if any are registered. 62 // returns. Calls the reply notifications, if any are registered.
60 virtual void SendReplyMessage(webkit_glue::WebIntentReplyType reply_type, 63 virtual void SendReplyMessage(webkit_glue::WebIntentReplyType reply_type,
61 const string16& data) = 0; 64 const string16& data) = 0;
62 65
63 // Register a callback to be notified when SendReplyMessage is called. 66 // Register a callback to be notified when SendReplyMessage is called.
64 // Multiple callbacks may be registered. 67 // Multiple callbacks may be registered.
65 virtual void RegisterReplyNotification(const ReplyNotification& closure) = 0; 68 virtual void RegisterReplyNotification(const ReplyNotification& closure) = 0;
66 }; 69 };
67 70
68 } // namespace content 71 } // namespace content
69 72
70 #endif // CONTENT_PUBLIC_BROWSER_WEB_INTENTS_DISPATCHER_H_ 73 #endif // CONTENT_PUBLIC_BROWSER_WEB_INTENTS_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698