summaryrefslogtreecommitdiffstats
path: root/content/browser/intents/intent_injector.h
diff options
context:
space:
mode:
authorgbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-01 21:54:53 +0000
committergbillock@chromium.org <gbillock@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-12-01 21:54:53 +0000
commitada02b3174e4d596ea9d4af3bf9759297b49e75c (patch)
tree0b97640125eb730a4801de4456d1a59333fd142f /content/browser/intents/intent_injector.h
parent6e42b5b03e8d86285aeea185ab74c2ef60f10a76 (diff)
downloadchromium_src-ada02b3174e4d596ea9d4af3bf9759297b49e75c.zip
chromium_src-ada02b3174e4d596ea9d4af3bf9759297b49e75c.tar.gz
chromium_src-ada02b3174e4d596ea9d4af3bf9759297b49e75c.tar.bz2
Add a public content/ interface for intents. Use it.
R=jam@chromium.org BUG=104980 TEST=None. Review URL: http://codereview.chromium.org/8666013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112545 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/intents/intent_injector.h')
-rw-r--r--content/browser/intents/intent_injector.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/content/browser/intents/intent_injector.h b/content/browser/intents/intent_injector.h
index 5f2375c..919b80a 100644
--- a/content/browser/intents/intent_injector.h
+++ b/content/browser/intents/intent_injector.h
@@ -40,8 +40,9 @@ class CONTENT_EXPORT IntentInjector : public TabContentsObserver {
// Sets the intent data to be injected. Call after the user has selected a
// service to pass the intent data to that service.
- // |source_tab| is a sender to use to communicate to the source tab. Takes
- // ownership of |source_tab|.
+ // |source_tab| is a sender to use to communicate to the source tab. The
+ // caller must ensure that SourceTabContentsDestroyed is called when this
+ // object becomes unusable.
// |intent| is the intent data from the source
// |intent_id| is the ID assigned to the intent invocation from the source
// context.
@@ -62,8 +63,8 @@ class CONTENT_EXPORT IntentInjector : public TabContentsObserver {
// Source intent data provided by caller.
scoped_ptr<webkit_glue::WebIntentData> source_intent_;
- // Message forwarder to the tab invoking the intent.
- scoped_ptr<IPC::Message::Sender> source_tab_;
+ // Weak pointer to the message forwarder to the tab invoking the intent.
+ IPC::Message::Sender* source_tab_;
// Unique ID assigned to the intent by the source tab.
int intent_id_;