update_query_params_delegate.h 1.0 KB

1234567891011121314151617181920212223242526272829303132
  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. #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_DELEGATE_H_
  5. #define COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_DELEGATE_H_
  6. #include <string>
  7. namespace update_client {
  8. // Embedders can specify an UpdateQueryParamsDelegate to provide additional
  9. // custom parameters. If not specified (Set is never called), no additional
  10. // parameters are added.
  11. class UpdateQueryParamsDelegate {
  12. public:
  13. UpdateQueryParamsDelegate();
  14. UpdateQueryParamsDelegate(const UpdateQueryParamsDelegate&) = delete;
  15. UpdateQueryParamsDelegate& operator=(const UpdateQueryParamsDelegate&) =
  16. delete;
  17. virtual ~UpdateQueryParamsDelegate();
  18. // Returns additional parameters, if any. If there are any parameters, the
  19. // string should begin with a & character.
  20. virtual std::string GetExtraParams() = 0;
  21. };
  22. } // namespace update_client
  23. #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_DELEGATE_H_