| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ | 5 #ifndef COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ |
| 6 #define COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ | 6 #define COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 #include "base/version.h" | 12 #include "base/version.h" |
| 13 #include "components/variations/variations_seed_store.h" |
| 13 #include "components/version_info/version_info.h" | 14 #include "components/version_info/version_info.h" |
| 14 | 15 |
| 15 namespace base { | 16 namespace base { |
| 16 class SequencedWorkerPool; | 17 class SequencedWorkerPool; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace net { | 20 namespace net { |
| 20 class URLRequestContextGetter; | 21 class URLRequestContextGetter; |
| 21 } | 22 } |
| 22 | 23 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 52 // Gets the channel of the embedder. | 53 // Gets the channel of the embedder. |
| 53 virtual version_info::Channel GetChannel() = 0; | 54 virtual version_info::Channel GetChannel() = 0; |
| 54 | 55 |
| 55 // Returns whether the embedder overrides the value of the restrict parameter. | 56 // Returns whether the embedder overrides the value of the restrict parameter. |
| 56 // |parameter| is an out-param that will contain the value of the restrict | 57 // |parameter| is an out-param that will contain the value of the restrict |
| 57 // parameter if true is returned. | 58 // parameter if true is returned. |
| 58 virtual bool OverridesRestrictParameter(std::string* parameter) = 0; | 59 virtual bool OverridesRestrictParameter(std::string* parameter) = 0; |
| 59 | 60 |
| 60 // Called from VariationsService::PerformPreMainMessageLoopStartup(). | 61 // Called from VariationsService::PerformPreMainMessageLoopStartup(). |
| 61 virtual void OnInitialStartup() {} | 62 virtual void OnInitialStartup() {} |
| 63 |
| 64 // Get callback for pulling variations first run seed from Java applicaton |
| 65 // in Chrome for Android. |
| 66 virtual VariationsFirstRunSeedCallback GetVariationsFirstRunSeedCallback(); |
| 62 }; | 67 }; |
| 63 | 68 |
| 64 } // namespace variations | 69 } // namespace variations |
| 65 | 70 |
| 66 #endif // COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ | 71 #endif // COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ |
| OLD | NEW |