diff options
Diffstat (limited to 'components/omaha_client/omaha_query_params_delegate.h')
-rw-r--r-- | components/omaha_client/omaha_query_params_delegate.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/components/omaha_client/omaha_query_params_delegate.h b/components/omaha_client/omaha_query_params_delegate.h new file mode 100644 index 0000000..ab52436 --- /dev/null +++ b/components/omaha_client/omaha_query_params_delegate.h @@ -0,0 +1,32 @@ +// Copyright 2014 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 COMPONENTS_OMAHA_CLIENT_OMAHA_QUERY_PARAMS_DELEGATE_H_ +#define COMPONENTS_OMAHA_CLIENT_OMAHA_QUERY_PARAMS_DELEGATE_H_ + +#include <string> + +#include "base/basictypes.h" + +namespace omaha_client { + +// Embedders can specify an OmahaQueryParamsDelegate to provide additional +// custom parameters. If not specified (Set is never called), no additional +// parameters are added. +class OmahaQueryParamsDelegate { + public: + OmahaQueryParamsDelegate(); + virtual ~OmahaQueryParamsDelegate(); + + // Returns additional parameters, if any. If there are any parameters, the + // string should begin with a & character. + virtual std::string GetExtraParams() = 0; + + private: + DISALLOW_COPY_AND_ASSIGN(OmahaQueryParamsDelegate); +}; + +} // namespace omaha_client + +#endif // COMPONENTS_OMAHA_CLIENT_OMAHA_QUERY_PARAMS_DELEGATE_H_ |