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

Side by Side Diff: content/browser/intents/internal_web_intents_dispatcher.h

Issue 11419233: intents: Kill deprecated SendReplyMessage method. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 | Annotate | Revision Log
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_BROWSER_INTENTS_INTERNAL_WEB_INTENTS_DISPATCHER_H_ 5 #ifndef CONTENT_BROWSER_INTENTS_INTERNAL_WEB_INTENTS_DISPATCHER_H_
6 #define CONTENT_BROWSER_INTENTS_INTERNAL_WEB_INTENTS_DISPATCHER_H_ 6 #define CONTENT_BROWSER_INTENTS_INTERNAL_WEB_INTENTS_DISPATCHER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 27 matching lines...) Expand all
38 InternalWebIntentsDispatcher( 38 InternalWebIntentsDispatcher(
39 const webkit_glue::WebIntentData& intent, 39 const webkit_glue::WebIntentData& intent,
40 const ReplyCallback& reply_callback); 40 const ReplyCallback& reply_callback);
41 41
42 virtual ~InternalWebIntentsDispatcher(); 42 virtual ~InternalWebIntentsDispatcher();
43 43
44 // WebIntentsDispatcher implementation. 44 // WebIntentsDispatcher implementation.
45 virtual const webkit_glue::WebIntentData& GetIntent() OVERRIDE; 45 virtual const webkit_glue::WebIntentData& GetIntent() OVERRIDE;
46 virtual void DispatchIntent(WebContents* destination_contents) OVERRIDE; 46 virtual void DispatchIntent(WebContents* destination_contents) OVERRIDE;
47 virtual void ResetDispatch() OVERRIDE; 47 virtual void ResetDispatch() OVERRIDE;
48 virtual void SendReplyMessage(webkit_glue::WebIntentReplyType reply_type,
49 const string16& data) OVERRIDE;
50 virtual void SendReply(const webkit_glue::WebIntentReply& reply) OVERRIDE; 48 virtual void SendReply(const webkit_glue::WebIntentReply& reply) OVERRIDE;
51 virtual void RegisterReplyNotification( 49 virtual void RegisterReplyNotification(
52 const WebIntentsDispatcher::ReplyNotification& closure) OVERRIDE; 50 const WebIntentsDispatcher::ReplyNotification& closure) OVERRIDE;
53 51
54 private: 52 private:
55 FRIEND_TEST_ALL_PREFIXES(InternalWebIntentsDispatcherTest, 53 FRIEND_TEST_ALL_PREFIXES(InternalWebIntentsDispatcherTest,
56 CancelAbandonsInjector); 54 CancelAbandonsInjector);
57 // The intent data to be delivered. 55 // The intent data to be delivered.
58 webkit_glue::WebIntentData intent_; 56 webkit_glue::WebIntentData intent_;
59 57
60 // Weak pointer to the internal object which delivers the intent to the 58 // Weak pointer to the internal object which delivers the intent to the
61 // newly-created service WebContents. This object is self-deleting 59 // newly-created service WebContents. This object is self-deleting
62 // (connected to the service WebContents). 60 // (connected to the service WebContents).
63 IntentInjector* intent_injector_; 61 IntentInjector* intent_injector_;
64 62
65 // Callbacks to be notified when SendReplyMessage is called. 63 // Callbacks to be notified when SendReplyMessage is called.
66 std::vector<WebIntentsDispatcher::ReplyNotification> reply_notifiers_; 64 std::vector<WebIntentsDispatcher::ReplyNotification> reply_notifiers_;
67 65
68 // Callback to be invoked when the intent is replied to. 66 // Callback to be invoked when the intent is replied to.
69 ReplyCallback reply_callback_; 67 ReplyCallback reply_callback_;
70 68
71 DISALLOW_COPY_AND_ASSIGN(InternalWebIntentsDispatcher); 69 DISALLOW_COPY_AND_ASSIGN(InternalWebIntentsDispatcher);
72 }; 70 };
73 71
74 } // namespace content 72 } // namespace content
75 73
76 #endif // CONTENT_BROWSER_INTENTS_INTERNAL_WEB_INTENTS_DISPATCHER_H_ 74 #endif // CONTENT_BROWSER_INTENTS_INTERNAL_WEB_INTENTS_DISPATCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698