| 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 CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_LOGGER_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_LOGGER_ANDROID_H_ |
| 6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_LOGGER_ANDROID_H_ | 6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_LOGGER_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
| 9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/strings/string16.h" | 11 #include "base/strings/string16.h" |
| 12 | 12 |
| 13 namespace autofill { | 13 namespace autofill { |
| 14 | 14 |
| 15 // This class gets notified when autofill fields are filled, and can be used | 15 // This class gets notified when autofill fields are filled, and can be used |
| 16 // by the embedder to inject its logging mechanisms. | 16 // by the embedder to inject its logging mechanisms. |
| 17 class AutofillLoggerAndroid { | 17 class AutofillLoggerAndroid { |
| 18 public: | 18 public: |
| 19 // Called when a field containing |autofilled_value| has been filled | 19 // Called when a field containing |autofilled_value| has been filled |
| 20 // with data from |profile_full_name|. | 20 // with data from |profile_full_name|. |
| 21 static void DidFillOrPreviewField(const base::string16& autofilled_value, | 21 static void DidFillOrPreviewField(const base::string16& autofilled_value, |
| 22 const base::string16& profile_full_name); | 22 const base::string16& profile_full_name); |
| 23 | 23 |
| 24 static bool Register(JNIEnv* env); | |
| 25 | |
| 26 private: | 24 private: |
| 27 DISALLOW_COPY_AND_ASSIGN(AutofillLoggerAndroid); | 25 DISALLOW_COPY_AND_ASSIGN(AutofillLoggerAndroid); |
| 28 }; | 26 }; |
| 29 | 27 |
| 30 } // namespace autofill | 28 } // namespace autofill |
| 31 | 29 |
| 32 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_LOGGER_ANDROID_H_ | 30 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_LOGGER_ANDROID_H_ |
| OLD | NEW |