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

Unified Diff: content/common/introducer_messages.h

Issue 6880275: Web Introducer overview Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 8 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/common/content_message_generator.h ('k') | content/content_common.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/introducer_messages.h
===================================================================
--- content/common/introducer_messages.h (revision 0)
+++ content/common/introducer_messages.h (revision 0)
@@ -0,0 +1,94 @@
+// 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.
+
+// Message definition file, included multiple times, hence no include guard.
+
+#include <vector>
+
+#include "ipc/ipc_message_macros.h"
+#include "googleurl/src/gurl.h"
+
+#define IPC_MESSAGE_START IntroducerMsgStart
+
+IPC_STRUCT_BEGIN(IntroducerHostMsg_Offer_Params)
+ // Service id.
+ IPC_STRUCT_MEMBER(std::string, id)
+
+ // Human meaningful name
+ IPC_STRUCT_MEMBER(string16, label)
+
+ // Supported types.
+ IPC_STRUCT_MEMBER(std::vector<std::string>, supports)
+
+ // window presentation
+ IPC_STRUCT_MEMBER(GURL, window)
+
+ // frame implementation
+ IPC_STRUCT_MEMBER(GURL, frame)
+IPC_STRUCT_END()
+
+// Messages sent from the browser to the renderer.
+
+// response to an install request
+IPC_MESSAGE_ROUTED2(IntroducerMsg_InstallReturn,
+ int /* corresponding request id */,
+ bool /* answer */)
+
+// intermediate response to a connect request
+IPC_MESSAGE_ROUTED2(IntroducerMsg_ConnectNavigation,
+ int /* corresponding request id */,
+ GURL /* URL to navigate frame to */)
+
+// response to a connect request
+IPC_MESSAGE_ROUTED2(IntroducerMsg_ConnectReturn,
+ int /* corresponding request id */,
+ std::vector<std::string> /* agreed service types */)
+
+// response to an accept request
+IPC_MESSAGE_ROUTED3(IntroducerMsg_AcceptReturn,
+ int /* corresponding request id */,
+ std::string /* customer origin */,
+ std::vector<std::string> /* wanted service types */)
+
+// Messages sent from the renderer to the browser.
+
+// Updates an Introducer registration
+IPC_MESSAGE_ROUTED5(IntroducerHostMsg_Install,
+ int /* request id */,
+ std::string /* registrant origin */,
+ GURL /* icon */,
+ string16 /* name */,
+ GURL /* home */)
+
+// Deletes an Introducer registration
+IPC_MESSAGE_ROUTED2(IntroducerHostMsg_Uninstall,
+ int /* request id */,
+ std::string /* registrant origin */)
+
+// Updates an Introducer service registration
+IPC_MESSAGE_ROUTED3(IntroducerHostMsg_Offer,
+ int /* request id */,
+ std::string /* registrant origin */,
+ IntroducerHostMsg_Offer_Params)
+
+// Deletes an Introducer service registration
+IPC_MESSAGE_ROUTED3(IntroducerHostMsg_Rescind,
+ int /* request id */,
+ std::string /* registrant origin */,
+ std::string /* service id */)
+
+// Notification that a page wants to connect to an Introducer service.
+IPC_MESSAGE_ROUTED5(IntroducerHostMsg_Connect,
+ int /* request id */,
+ std::string /* customer origin */,
+ int64 /* service frame id or zero if not supported */,
+ std::vector<std::string> /* wanted */,
+ int /* port id */)
+
+// Notification that a page wants to accept an Introducer connection.
+IPC_MESSAGE_ROUTED4(IntroducerHostMsg_Accept,
+ int /* request id */,
+ int64 /* requesting frame id or zero if top */,
+ std::string /* registrant origin */,
+ int /* port id */)
Property changes on: content/common/introducer_messages.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « content/common/content_message_generator.h ('k') | content/content_common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698