| Index: components/search_engines/template_url.h
|
| diff --git a/components/search_engines/template_url.h b/components/search_engines/template_url.h
|
| index a5997934c0bf6e94bbc54d812ad27069f455d3c9..840278a397379c92976ad0aa62a3fe3f964f5495 100644
|
| --- a/components/search_engines/template_url.h
|
| +++ b/components/search_engines/template_url.h
|
| @@ -285,6 +285,7 @@ class TemplateURLRef {
|
|
|
| private:
|
| friend class TemplateURL;
|
| + friend class TemplateURLTest;
|
| FRIEND_TEST_ALL_PREFIXES(TemplateURLTest, SetPrepopulatedAndParse);
|
| FRIEND_TEST_ALL_PREFIXES(TemplateURLTest, ParseParameterKnown);
|
| FRIEND_TEST_ALL_PREFIXES(TemplateURLTest, ParseParameterUnknown);
|
| @@ -344,10 +345,15 @@ class TemplateURLRef {
|
| bool is_post_param;
|
| };
|
|
|
| + // Stores a single parameter for a POST.
|
| + struct PostParam {
|
| + std::string name;
|
| + std::string value;
|
| + std::string content_type;
|
| + };
|
| +
|
| // The list of elements to replace.
|
| typedef std::vector<struct Replacement> Replacements;
|
| - // Type to store <key, value> pairs for POST URLs.
|
| - typedef std::pair<std::string, std::string> PostParam;
|
| typedef std::vector<PostParam> PostParams;
|
|
|
| // TemplateURLRef internally caches values to make replacement quick. This
|
|
|