blob: 67921498c59c232785a1acd5c24e292755d8c5e8 [file] [log] [blame]
// 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 CHROME_BROWSER_INTENTS_WEB_INTENT_DATA_H_
#define CHROME_BROWSER_INTENTS_WEB_INTENT_DATA_H_
#pragma once
#include "base/string16.h"
#include "googleurl/src/gurl.h"
#include <iosfwd>
// Describes the relevant elements of a WebIntent.
struct WebIntentData {
WebIntentData();
~WebIntentData();
bool operator==(const WebIntentData& other) const;
GURL service_url; // URL for service invocation.
string16 action; // Name of action provided by service.
string16 type; // MIME type of data accepted by service.
string16 title; // The title of the service.
};
// Printing operator - helps gtest produce readable error messages.
std::ostream& operator<<(std::ostream& os, const WebIntentData& intent);
#endif // CHROME_BROWSER_INTENTS_WEB_INTENT_DATA_H_