• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.
4 
5 #ifndef CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_LOGGER_ANDROID_H_
6 #define CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_LOGGER_ANDROID_H_
7 
8 #include "base/android/jni_android.h"
9 #include "base/android/jni_string.h"
10 #include "base/strings/string16.h"
11 
12 namespace autofill {
13 
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);
22 
23   static bool Register(JNIEnv* env);
24 
25  private:
26   DISALLOW_COPY_AND_ASSIGN(AutofillLoggerAndroid);
27 };
28 
29 }  // namespace autofill
30 
31 #endif  // CHROME_BROWSER_UI_ANDROID_AUTOFILL_AUTOFILL_LOGGER_ANDROID_H_
32