Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / chrome / browser / ui / android / autofill / autofill_logger_android.h
blobb8bfa6051cb10e2ddbf5068a16162b4aab53c07b
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"
12 namespace autofill {
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 {
17 public:
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);
25 private:
26 DISALLOW_COPY_AND_ASSIGN(AutofillLoggerAndroid);
29 } // namespace autofill
31 #endif // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_LOGGER_ANDROID_H_