summaryrefslogtreecommitdiffstats
path: root/webkit/glue/web_intent_data.h
blob: 5c1e84e9b94745be1ba3a670246aa6d7deafe21e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// 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 WEBKIT_GLUE_WEB_INTENT_DATA_H_
#define WEBKIT_GLUE_WEB_INTENT_DATA_H_

#include "base/string16.h"

namespace webkit_glue {

// Representation of the Web Intent data being initiated or delivered.
// TODO(gbillock): There's a duplicate name here in the registration pathway we
// need to resolve.
struct WebIntentData {
  // The action of the intent.
  string16 action;
  // The MIME type of data in this intent payload.
  string16 type;
  // The representation of the payload data. Wire format is from
  // SerializedScriptObject.
  string16 data;

  WebIntentData();
  WebIntentData(const WebIntentData& other);
  ~WebIntentData();
};

}  // namespace webkit_glue

#endif  // WEBKIT_GLUE_WEB_INTENT_DATA_H_