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_ANDROID_VARIATIONS_SEED_BRIDGE_H_ | 5 #ifndef COMPONENTS_VARIATIONS_ANDROID_VARIATIONS_SEED_BRIDGE_H_ |
6 #define COMPONENTS_VARIATIONS_ANDROID_VARIATIONS_SEED_BRIDGE_H_ | 6 #define COMPONENTS_VARIATIONS_ANDROID_VARIATIONS_SEED_BRIDGE_H_ |
7 | 7 |
8 #include <jni.h> | 8 #include <jni.h> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 namespace variations { | 11 namespace variations { |
12 namespace android { | 12 namespace android { |
13 | 13 |
14 bool RegisterVariationsSeedBridge(JNIEnv* env); | 14 bool RegisterVariationsSeedBridge(JNIEnv* env); |
15 | 15 |
16 // Return the first run seed data pulled from the Java side of application. | 16 // Return the first run seed data pulled from the Java side of application. |
17 void GetVariationsFirstRunSeed(std::string* seed_data, | 17 void GetVariationsFirstRunSeed(std::string* seed_data, |
18 std::string* seed_signature, | 18 std::string* seed_signature, |
19 std::string* seed_country); | 19 std::string* seed_country, |
| 20 std::string* response_date, |
| 21 bool* is_gzip_compressed); |
20 | 22 |
21 // Clears first run seed preferences stored on the Java side of Chrome for | 23 // Clears first run seed preferences stored on the Java side of Chrome for |
22 // Android. | 24 // Android. |
23 void ClearJavaFirstRunPrefs(); | 25 void ClearJavaFirstRunPrefs(); |
24 | 26 |
25 // Marks variations seed as stored to avoid repeated fetches of the seed at | 27 // Marks variations seed as stored to avoid repeated fetches of the seed at |
26 // the Java side. | 28 // the Java side. |
27 void MarkVariationsSeedAsStored(); | 29 void MarkVariationsSeedAsStored(); |
28 | 30 |
29 } // namespace android | 31 } // namespace android |
30 } // namespace variations | 32 } // namespace variations |
31 | 33 |
32 #endif // COMPONENTS_VARIATIONS_ANDROID_FIRSTRUN_VARIATIONS_SEED_BRIDGE_H_ | 34 #endif // COMPONENTS_VARIATIONS_ANDROID_FIRSTRUN_VARIATIONS_SEED_BRIDGE_H_ |
OLD | NEW |