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.
5 #ifndef COMPONENTS_OMAHA_QUERY_PARAMS_OMAHA_QUERY_PARAMS_DELEGATE_H_
6 #define COMPONENTS_OMAHA_QUERY_PARAMS_OMAHA_QUERY_PARAMS_DELEGATE_H_
10 #include "base/basictypes.h"
12 namespace omaha_query_params
{
14 // Embedders can specify an OmahaQueryParamsDelegate to provide additional
15 // custom parameters. If not specified (Set is never called), no additional
16 // parameters are added.
17 class OmahaQueryParamsDelegate
{
19 OmahaQueryParamsDelegate();
20 virtual ~OmahaQueryParamsDelegate();
22 // Returns additional parameters, if any. If there are any parameters, the
23 // string should begin with a & character.
24 virtual std::string
GetExtraParams() = 0;
27 DISALLOW_COPY_AND_ASSIGN(OmahaQueryParamsDelegate
);
30 } // namespace omaha_query_params
32 #endif // COMPONENTS_OMAHA_QUERY_PARAMS_OMAHA_QUERY_PARAMS_DELEGATE_H_