| Index: chrome/common/extensions/api/url_parser/homepage_url_handler.h
|
| diff --git a/chrome/common/extensions/api/url_parser/homepage_url_handler.h b/chrome/common/extensions/api/url_parser/homepage_url_handler.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..886ba9312279e899bad926b27de3a9bad97e1795
|
| --- /dev/null
|
| +++ b/chrome/common/extensions/api/url_parser/homepage_url_handler.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright (c) 2012 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_COMMON_EXTENSIONS_API_URL_PARSER_HOMEPAGE_URL_HANDLER_H_
|
| +#define CHROME_COMMON_EXTENSIONS_API_URL_PARSER_HOMEPAGE_URL_HANDLER_H_
|
| +
|
| +#include <string>
|
| +
|
| +#include "chrome/common/extensions/extension.h"
|
| +#include "chrome/common/extensions/manifest_handler.h"
|
| +
|
| +namespace extensions {
|
| +
|
| +class Extension;
|
| +
|
| +// Parses the "homepage_url" manifest key.
|
| +// The homepage is useful if it is not hosted by Google and
|
| +// therefore does not have a Gallery URL.
|
| +class HomepageURLHandler : public ManifestHandler {
|
| + public:
|
| + HomepageURLHandler();
|
| + virtual ~HomepageURLHandler();
|
| +
|
| + virtual bool Parse(const base::Value* value,
|
| + Extension* extension,
|
| + string16* error) OVERRIDE;
|
| +};
|
| +
|
| +} // namespace extensions
|
| +
|
| +#endif // CHROME_COMMON_EXTENSIONS_API_URL_PARSER_HOMEPAGE_URL_HANDLER_H_
|
|
|