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

Side by Side Diff: content/browser/intents/web_intents_dispatcher_impl.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_WEB_INTENTS_DISPATCHER_IMPL_H_ 5 #ifndef CONTENT_BROWSER_INTENTS_WEB_INTENTS_DISPATCHER_IMPL_H_
6 #define CONTENT_BROWSER_INTENTS_WEB_INTENTS_DISPATCHER_IMPL_H_ 6 #define CONTENT_BROWSER_INTENTS_WEB_INTENTS_DISPATCHER_IMPL_H_
7 7
8 #include <vector> 8 #include <vector>
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 19 matching lines...) Expand all
30 // the correct Javascript callback. 30 // the correct Javascript callback.
31 WebIntentsDispatcherImpl(WebContents* source_contents, 31 WebIntentsDispatcherImpl(WebContents* source_contents,
32 const webkit_glue::WebIntentData& intent, 32 const webkit_glue::WebIntentData& intent,
33 int intent_id); 33 int intent_id);
34 virtual ~WebIntentsDispatcherImpl(); 34 virtual ~WebIntentsDispatcherImpl();
35 35
36 // WebIntentsDispatcher implementation. 36 // WebIntentsDispatcher implementation.
37 virtual const webkit_glue::WebIntentData& GetIntent() OVERRIDE; 37 virtual const webkit_glue::WebIntentData& GetIntent() OVERRIDE;
38 virtual void DispatchIntent(WebContents* destination_contents) OVERRIDE; 38 virtual void DispatchIntent(WebContents* destination_contents) OVERRIDE;
39 virtual void ResetDispatch() OVERRIDE; 39 virtual void ResetDispatch() OVERRIDE;
40 // Deprecated. Use SendReply.
41 // TODO(smckay): Eliminate use of SendReplyMessage in followup CL.
42 virtual void SendReplyMessage(webkit_glue::WebIntentReplyType reply_type,
43 const string16& data) OVERRIDE;
44 virtual void SendReply(const webkit_glue::WebIntentReply& reply) OVERRIDE; 40 virtual void SendReply(const webkit_glue::WebIntentReply& reply) OVERRIDE;
45 virtual void RegisterReplyNotification( 41 virtual void RegisterReplyNotification(
46 const WebIntentsDispatcher::ReplyNotification& closure) OVERRIDE; 42 const WebIntentsDispatcher::ReplyNotification& closure) OVERRIDE;
47 43
48 // WebContentsObserver implementation. 44 // WebContentsObserver implementation.
49 virtual void WebContentsDestroyed(WebContents* contents) OVERRIDE; 45 virtual void WebContentsDestroyed(WebContents* contents) OVERRIDE;
50 46
51 private: 47 private:
52 webkit_glue::WebIntentData intent_; 48 webkit_glue::WebIntentData intent_;
53 49
54 int intent_id_; 50 int intent_id_;
55 51
56 // Weak pointer to the internal object which provides the intent to the 52 // Weak pointer to the internal object which provides the intent to the
57 // newly-created service WebContents. This object is self-deleting 53 // newly-created service WebContents. This object is self-deleting
58 // (connected to the service WebContents). 54 // (connected to the service WebContents).
59 IntentInjector* intent_injector_; 55 IntentInjector* intent_injector_;
60 56
61 // Callbacks to be notified when SendReplyMessage is called. 57 // Callbacks to be notified when SendReplyMessage is called.
62 std::vector<WebIntentsDispatcher::ReplyNotification> reply_notifiers_; 58 std::vector<WebIntentsDispatcher::ReplyNotification> reply_notifiers_;
63 59
64 DISALLOW_COPY_AND_ASSIGN(WebIntentsDispatcherImpl); 60 DISALLOW_COPY_AND_ASSIGN(WebIntentsDispatcherImpl);
65 }; 61 };
66 62
67 } // namespace content 63 } // namespace content
68 64
69 #endif // CONTENT_BROWSER_INTENTS_WEB_INTENTS_DISPATCHER_IMPL_H_ 65 #endif // CONTENT_BROWSER_INTENTS_WEB_INTENTS_DISPATCHER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698