OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_DELEGATE_H_ | 5 #ifndef COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_DELEGATE_H_ |
6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_DELEGATE_H_ | 6 #define COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
11 | 11 |
12 namespace update_client { | 12 namespace update_client { |
13 | 13 |
14 // Embedders can specify an UpdateQueryParamsDelegate to provide additional | 14 // Embedders can specify an UpdateQueryParamsDelegate to provide additional |
15 // custom parameters. If not specified (Set is never called), no additional | 15 // custom parameters. If not specified (Set is never called), no additional |
16 // parameters are added. | 16 // parameters are added. |
17 class UpdateQueryParamsDelegate { | 17 class UpdateQueryParamsDelegate { |
18 public: | 18 public: |
19 UpdateQueryParamsDelegate(); | 19 UpdateQueryParamsDelegate(); |
20 virtual ~UpdateQueryParamsDelegate(); | 20 virtual ~UpdateQueryParamsDelegate(); |
21 | 21 |
22 // Returns additional parameters, if any. If there are any parameters, the | 22 // Returns additional parameters, if any. If there are any parameters, the |
23 // string should begin with a & character. | 23 // string should begin with a & character. |
24 virtual std::string GetExtraParams() = 0; | 24 virtual std::string GetExtraParams() = 0; |
25 | 25 |
26 private: | 26 private: |
27 DISALLOW_COPY_AND_ASSIGN(UpdateQueryParamsDelegate); | 27 DISALLOW_COPY_AND_ASSIGN(UpdateQueryParamsDelegate); |
28 }; | 28 }; |
29 | 29 |
30 } // namespace update_client | 30 } // namespace update_client |
31 | 31 |
32 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_DELEGATE_H_ | 32 #endif // COMPONENTS_UPDATE_CLIENT_UPDATE_QUERY_PARAMS_DELEGATE_H_ |
OLD | NEW |