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