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

Unified Diff: content/public/browser/intents_host.h

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/content_renderer.gypi ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/intents_host.h
diff --git a/content/public/browser/intents_host.h b/content/public/browser/intents_host.h
deleted file mode 100644
index 7eae6383bca955d81701c217ad190088cb310153..0000000000000000000000000000000000000000
--- a/content/public/browser/intents_host.h
+++ /dev/null
@@ -1,47 +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.
-
-#ifndef CONTENT_PUBLIC_BROWSER_INTENTS_HOST_H_
-#define CONTENT_PUBLIC_BROWSER_INTENTS_HOST_H_
-
-#include "base/callback.h"
-#include "webkit/glue/web_intent_reply_data.h"
-
-class TabContents;
-
-namespace webkit_glue {
-struct WebIntentData;
-}
-
-namespace content {
-
-// This class is the coordinator for dispatching web intents and seeing that
-// return messages are sent to the correct invoking context. The TabContents
-// for the invoking context will create one of these for each intent and hand
-// ownership to the client WebContentsDelegate code. The WebContentsDelegate
-// code can then read the intent data, create UI to pick the service, and
-// create a new context for that service. At that point, it should call
-// DispatchIntent, which will connect the object to the new context.
-class CONTENT_EXPORT IntentsHost {
- public:
- virtual ~IntentsHost() {}
-
- // Get the intent data being dispatched.
- virtual const webkit_glue::WebIntentData& GetIntent() = 0;
-
- // Attach the intent to a new context in which the service is loaded.
- virtual void DispatchIntent(TabContents* tab_contents) = 0;
-
- // Return a success or failure message to the source context which invoked
- // the intent.
- virtual void SendReplyMessage(webkit_glue::WebIntentReplyType reply_type,
- const string16& data) = 0;
-
- // Register a callback to be notified when SendReplyMessage is called.
- virtual void RegisterReplyNotification(const base::Closure& closure) = 0;
-};
-
-} // namespace content
-
-#endif // CONTENT_PUBLIC_BROWSER_INTENTS_HOST_H_
« no previous file with comments | « content/content_renderer.gypi ('k') | content/public/browser/web_contents_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698