Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Side by Side Diff: chrome/common/extensions/api/url_parser/url_info.h

Issue 11624036: Move the parsing of homepage_url" and "devtools_page" out of Extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_COMMON_EXTENSIONS_API_URL_PARSER_URL_INFO_H_
6 #define CHROME_COMMON_EXTENSIONS_API_URL_PARSER_URL_INFO_H_
7
8 #include <string>
9
10 #include "chrome/common/extensions/extension.h"
11 #include "chrome/common/extensions/manifest_handler.h"
12
13 namespace extensions {
14
15 struct URLInfo : public Extension::ManifestData {
16 enum URLType {
Yoyo Zhou 2012/12/27 17:16:17 I don't think this interface makes sense. Why not
Joe Thomas 2012/12/30 04:26:00 Done.
17 DEVTOOLS_PAGE,
18 HOMEPAGE_URL
19 };
20
21 // URL parsed from the extension manifest file.
22 GURL url_;
23
24 static const GURL url(const Extension* extension, const URLType type);
Yoyo Zhou 2012/12/27 17:16:17 This should be of type const GURL& to avoid making
Joe Thomas 2012/12/30 04:26:00 Since we create a temporary GURL object inside Get
Yoyo Zhou 2013/01/03 01:45:54 This was my point about GURL::EmptyGURL - you can
Joe Thomas 2013/01/03 19:56:31 If you look at ManifestURL::GetHomepageURL definit
Yoyo Zhou 2013/01/03 22:55:32 Oh, okay. This will be the same as the old GetHome
25 };
26
27 } // namespace extensions
28
29 #endif // CHROME_COMMON_EXTENSIONS_API_URL_PARSER_URL_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698