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

Unified Diff: content/browser/intents/intents_host_impl.cc

Issue 8934011: Rename IntentsHost -> WebIntentsDispatcher and IntentsDispatcher -> WebIntentsHost. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/intents/intents_host_impl.h ('k') | content/browser/intents/web_intents_dispatcher_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/intents/intents_host_impl.cc
diff --git a/content/browser/intents/intents_host_impl.cc b/content/browser/intents/intents_host_impl.cc
deleted file mode 100644
index e3708dbfb8dc4063729de5e9239826b2c638ad5c..0000000000000000000000000000000000000000
--- a/content/browser/intents/intents_host_impl.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/browser/intents/intents_host_impl.h"
-
-#include "content/browser/intents/intent_injector.h"
-#include "content/common/intents_messages.h"
-#include "webkit/glue/web_intent_data.h"
-#include "webkit/glue/web_intent_reply_data.h"
-
-IntentsHostImpl::IntentsHostImpl(TabContents* source_tab,
- const webkit_glue::WebIntentData& intent,
- int intent_id)
- : TabContentsObserver(source_tab),
- intent_(intent),
- intent_id_(intent_id),
- intent_injector_(NULL) {}
-
-IntentsHostImpl::~IntentsHostImpl() {}
-
-const webkit_glue::WebIntentData& IntentsHostImpl::GetIntent() {
- return intent_;
-}
-
-void IntentsHostImpl::DispatchIntent(TabContents* destination_tab) {
- DCHECK(!intent_injector_);
- intent_injector_ = new IntentInjector(destination_tab);
- intent_injector_->SetIntent(this, intent_);
-}
-
-void IntentsHostImpl::SendReplyMessage(
- webkit_glue::WebIntentReplyType reply_type,
- const string16& data) {
- intent_injector_ = NULL;
-
- if (!tab_contents())
- return;
-
- Send(new IntentsMsg_WebIntentReply(
- routing_id(), reply_type, data, intent_id_));
- if (!reply_notifier_.is_null())
- reply_notifier_.Run();
-}
-
-void IntentsHostImpl::RegisterReplyNotification(const base::Closure& closure) {
- reply_notifier_ = closure;
-}
-
-void IntentsHostImpl::TabContentsDestroyed(TabContents* tab) {
- if (intent_injector_)
- intent_injector_->SourceTabContentsDestroyed(tab);
-
- intent_injector_ = NULL;
-}
« no previous file with comments | « content/browser/intents/intents_host_impl.h ('k') | content/browser/intents/web_intents_dispatcher_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698