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

Side by Side Diff: content/browser/intents/web_intents_dispatcher_impl.cc

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 #include "content/browser/intents/web_intents_dispatcher_impl.h" 5 #include "content/browser/intents/web_intents_dispatcher_impl.h"
6 6
7 #include "content/browser/intents/intent_injector.h" 7 #include "content/browser/intents/intent_injector.h"
8 #include "content/browser/intents/internal_web_intents_dispatcher.h" 8 #include "content/browser/intents/internal_web_intents_dispatcher.h"
9 #include "content/browser/web_contents/web_contents_impl.h" 9 #include "content/browser/web_contents/web_contents_impl.h"
10 #include "content/common/intents_messages.h" 10 #include "content/common/intents_messages.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 intent_injector_->SetIntent(this, intent_); 48 intent_injector_->SetIntent(this, intent_);
49 } 49 }
50 50
51 void WebIntentsDispatcherImpl::ResetDispatch() { 51 void WebIntentsDispatcherImpl::ResetDispatch() {
52 if (intent_injector_) { 52 if (intent_injector_) {
53 intent_injector_->Abandon(); 53 intent_injector_->Abandon();
54 intent_injector_ = NULL; 54 intent_injector_ = NULL;
55 } 55 }
56 } 56 }
57 57
58 void WebIntentsDispatcherImpl::SendReplyMessage(
59 webkit_glue::WebIntentReplyType reply_type,
60 const string16& data) {
61 SendReply(webkit_glue::WebIntentReply(reply_type, data));
62 }
63
64 void WebIntentsDispatcherImpl::SendReply( 58 void WebIntentsDispatcherImpl::SendReply(
65 const webkit_glue::WebIntentReply& reply) { 59 const webkit_glue::WebIntentReply& reply) {
66 intent_injector_ = NULL; 60 intent_injector_ = NULL;
67 61
68 // If this intent is attached to a WebContents, we dispatch the request back 62 // If this intent is attached to a WebContents, we dispatch the request back
69 // to the renderer. Browser process initiated intents are not 63 // to the renderer. Browser process initiated intents are not
70 // associated with a WebContents. 64 // associated with a WebContents.
71 if (web_contents()) { 65 if (web_contents()) {
72 Send(new IntentsMsg_WebIntentReply( 66 Send(new IntentsMsg_WebIntentReply(
73 routing_id(), reply, intent_id_)); 67 routing_id(), reply, intent_id_));
(...skipping 13 matching lines...) Expand all
87 } 81 }
88 82
89 void WebIntentsDispatcherImpl::WebContentsDestroyed(WebContents* contents) { 83 void WebIntentsDispatcherImpl::WebContentsDestroyed(WebContents* contents) {
90 if (intent_injector_) 84 if (intent_injector_)
91 intent_injector_->SourceWebContentsDestroyed(contents); 85 intent_injector_->SourceWebContentsDestroyed(contents);
92 86
93 intent_injector_ = NULL; 87 intent_injector_ = NULL;
94 } 88 }
95 89
96 } // namespace content 90 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/intents/web_intents_dispatcher_impl.h ('k') | content/public/browser/web_intents_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698