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

Side by Side Diff: extensions/browser/updater/manifest_fetch_data_delegate.h

Issue 465543004: Factor Chrome details out of update manifest fetching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2014 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 EXTENSIONS_BROWSER_UPDATER_MANIFEST_FETCH_DATA_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_UPDATER_MANIFEST_FETCH_DATA_DELEGATE_H_
7
8 #include <string>
9
10 #include "extensions/browser/updater/manifest_fetch_data.h"
11
12 namespace extensions {
13
14 class ManifestFetchDataDelegate {
15 public:
16 ManifestFetchDataDelegate() {}
17 virtual ~ManifestFetchDataDelegate() {}
18
19 // Returns baseline query parameters to include with every update manifest
20 // fetch request.
21 virtual std::string GetBaseQueryParams() = 0;
22
23 // Indicates whether or not the Chrome Webstore update service should
24 // also be checked for updates when an item's update URL points elsewhere.
25 virtual bool ShouldAlwaysCheckWebstore() = 0;
26
27 // Returns a brand code to be submitted with manifest fetch requests. If
28 // this is an empty string, no brand code is submitted.
29 virtual std::string GetBrandCode() = 0;
30
31 // Returns a string of ping-related query parameters to be appended to a
32 // manifest fetch given an extension ID to be fetched and existing PingData.
33 virtual std::string GetPingParamsAndData(
34 const std::string& extension_id,
35 const ManifestFetchData::PingData& old_ping_data,
36 ManifestFetchData::PingData* new_ping_data) = 0;
37 };
38
39 } // namespace extensions
40
41 #endif // EXTENSIONS_BROWSER_UPDATER_MANIFEST_FETCH_DATA_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698