summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autofill/wallet/wallet_items.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autofill/wallet/wallet_items.h')
-rw-r--r--chrome/browser/autofill/wallet/wallet_items.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/chrome/browser/autofill/wallet/wallet_items.h b/chrome/browser/autofill/wallet/wallet_items.h
index e1f0601..ffc55a5 100644
--- a/chrome/browser/autofill/wallet/wallet_items.h
+++ b/chrome/browser/autofill/wallet/wallet_items.h
@@ -16,6 +16,8 @@
#include "chrome/browser/autofill/wallet/required_action.h"
#include "chrome/browser/autofill/wallet/wallet_address.h"
+class GURL;
+
namespace base {
class DictionaryValue;
}
@@ -116,23 +118,24 @@ class WalletItems {
static scoped_ptr<LegalDocument>
CreateLegalDocument(const base::DictionaryValue& dictionary);
+ // Get the url where this legal document is hosted.
+ GURL GetUrl();
+
bool operator==(const LegalDocument& other) const;
bool operator!=(const LegalDocument& other) const;
const std::string& document_id() const { return document_id_; }
const std::string& display_name() const { return display_name_; }
- const std::string& document_body() const { return document_body_; }
private:
friend class WalletItemsTest;
FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, CreateLegalDocument);
FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, CreateWalletItems);
+ FRIEND_TEST_ALL_PREFIXES(WalletItemsTest, LegalDocumentGetUrl);
LegalDocument(const std::string& document_id,
- const std::string& display_name,
- const std::string& document_body);
+ const std::string& display_name);
std::string document_id_;
std::string display_name_;
- std::string document_body_;
DISALLOW_COPY_AND_ASSIGN(LegalDocument);
};