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

Side by Side Diff: extensions/common/extension_urls.h

Issue 1010953002: [Extensions] Add support for reporting abuse on extension uninstallation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_COMMON_EXTENSION_URLS_H_ 5 #ifndef EXTENSIONS_COMMON_EXTENSION_URLS_H_
6 #define EXTENSIONS_COMMON_EXTENSION_URLS_H_ 6 #define EXTENSIONS_COMMON_EXTENSION_URLS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 GURL GetWebstoreJsonSearchUrl(const std::string& query, 63 GURL GetWebstoreJsonSearchUrl(const std::string& query,
64 const std::string& host_language_code); 64 const std::string& host_language_code);
65 65
66 // Returns the URL of the web store search results page for |query|. 66 // Returns the URL of the web store search results page for |query|.
67 GURL GetWebstoreSearchPageUrl(const std::string& query); 67 GURL GetWebstoreSearchPageUrl(const std::string& query);
68 68
69 // Return the update URL used by gallery/webstore extensions/apps. This may 69 // Return the update URL used by gallery/webstore extensions/apps. This may
70 // have been overridden by a command line flag for testing purposes. 70 // have been overridden by a command line flag for testing purposes.
71 GURL GetWebstoreUpdateUrl(); 71 GURL GetWebstoreUpdateUrl();
72 72
73 // Returns the url to visit to report abuse for the given |extension_id|.
74 GURL GetWebstoreReportAbuseUrl(const std::string& extension_id);
75
73 // Returns whether the URL is the webstore update URL (just considering host 76 // Returns whether the URL is the webstore update URL (just considering host
74 // and path, not scheme, query, etc.) 77 // and path, not scheme, query, etc.)
75 bool IsWebstoreUpdateUrl(const GURL& update_url); 78 bool IsWebstoreUpdateUrl(const GURL& update_url);
76 79
77 // Returns true if the URL points to an extension blacklist. 80 // Returns true if the URL points to an extension blacklist.
78 bool IsBlacklistUpdateUrl(const GURL& url); 81 bool IsBlacklistUpdateUrl(const GURL& url);
79 82
80 } // namespace extension_urls 83 } // namespace extension_urls
81 84
82 #endif // EXTENSIONS_COMMON_EXTENSION_URLS_H_ 85 #endif // EXTENSIONS_COMMON_EXTENSION_URLS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698