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

Unified Diff: content/renderer/web_intents_host.h

Issue 9186021: Update chromium code to use WebIntentRequest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adjust to pass-by-value for WebIntentRequest Created 8 years, 11 months 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/renderer/render_view_impl.cc ('k') | content/renderer/web_intents_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/web_intents_host.h
diff --git a/content/renderer/web_intents_host.h b/content/renderer/web_intents_host.h
index 4567dcdcbf70ab0e7f4bf6d99abc2be183049b04..9b3f4aa5f8b72c266dc4964d2df43fd01ff38b28 100644
--- a/content/renderer/web_intents_host.h
+++ b/content/renderer/web_intents_host.h
@@ -6,6 +6,7 @@
#define CONTENT_RENDERER_WEB_INTENTS_HOST_H_
#pragma once
+#include <map>
#include "base/memory/scoped_ptr.h"
#include "content/public/renderer/render_view_observer.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
@@ -15,6 +16,7 @@
class RenderViewImpl;
namespace WebKit {
+class WebIntentRequest;
class WebFrame;
}
@@ -31,6 +33,9 @@ class WebIntentsHost : public content::RenderViewObserver {
explicit WebIntentsHost(RenderViewImpl* render_view);
virtual ~WebIntentsHost();
+ // Called by the RenderView to register a new web intents invocation.
James Hawkins 2012/01/13 21:30:03 nit: s/web intents/Web Intent/ (no s).
Greg Billock 2012/01/17 23:52:02 Done.
+ int RegisterWebIntent(const WebKit::WebIntentRequest& request);
+
// Called by the bound intent object to register the result from the service
// page.
void OnResult(const WebKit::WebString& data);
@@ -39,6 +44,9 @@ class WebIntentsHost : public content::RenderViewObserver {
private:
class BoundDeliveredIntent;
+ int id_counter_;
James Hawkins 2012/01/13 21:30:03 Document vars.
Greg Billock 2012/01/17 23:52:02 Done.
+ std::map<int, WebKit::WebIntentRequest> intent_requests_;
+
// RenderView::Observer implementation.
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
virtual void DidClearWindowObject(WebKit::WebFrame* frame) OVERRIDE;
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | content/renderer/web_intents_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698