| 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" | |
| 14 #include "components/version_info/version_info.h" | 13 #include "components/version_info/version_info.h" |
| 15 | 14 |
| 16 namespace base { | 15 namespace base { |
| 17 class SequencedWorkerPool; | 16 class SequencedWorkerPool; |
| 18 } | 17 } |
| 19 | 18 |
| 20 namespace net { | 19 namespace net { |
| 21 class URLRequestContextGetter; | 20 class URLRequestContextGetter; |
| 22 } | 21 } |
| 23 | 22 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 53 // Gets the channel of the embedder. | 52 // Gets the channel of the embedder. |
| 54 virtual version_info::Channel GetChannel() = 0; | 53 virtual version_info::Channel GetChannel() = 0; |
| 55 | 54 |
| 56 // Returns whether the embedder overrides the value of the restrict parameter. | 55 // Returns whether the embedder overrides the value of the restrict parameter. |
| 57 // |parameter| is an out-param that will contain the value of the restrict | 56 // |parameter| is an out-param that will contain the value of the restrict |
| 58 // parameter if true is returned. | 57 // parameter if true is returned. |
| 59 virtual bool OverridesRestrictParameter(std::string* parameter) = 0; | 58 virtual bool OverridesRestrictParameter(std::string* parameter) = 0; |
| 60 | 59 |
| 61 // Called from VariationsService::PerformPreMainMessageLoopStartup(). | 60 // Called from VariationsService::PerformPreMainMessageLoopStartup(). |
| 62 virtual void OnInitialStartup() {} | 61 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(); | |
| 67 }; | 62 }; |
| 68 | 63 |
| 69 } // namespace variations | 64 } // namespace variations |
| 70 | 65 |
| 71 #endif // COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ | 66 #endif // COMPONENTS_VARIATIONS_SERVICE_VARIATIONS_SERVICE_CLIENT_H_ |
| OLD | NEW |