| Index: chrome/browser/autofill/auxiliary_profile_impl_android.h
|
| diff --git a/chrome/browser/autofill/auxiliary_profile_impl_android.h b/chrome/browser/autofill/auxiliary_profile_impl_android.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..cdcec076555d0458f853c80b28f846377e252a70
|
| --- /dev/null
|
| +++ b/chrome/browser/autofill/auxiliary_profile_impl_android.h
|
| @@ -0,0 +1,40 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_IMPL_ANDROID_H_
|
| +#define CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_IMPL_ANDROID_H_
|
| +
|
| +#include <jni.h>
|
| +#include "base/guid.h"
|
| +#include "base/logging.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +#include "base/memory/scoped_vector.h"
|
| +#include "base/string16.h"
|
| +#include "base/utf_string_conversions.h"
|
| +#include "chrome/browser/autofill/autofill_profile.h"
|
| +#include "chrome/browser/autofill/i_auxiliary_profile_loader.h"
|
| +
|
| +class AuxiliaryProfilesImpl {
|
| + public:
|
| + AuxiliaryProfilesImpl(ScopedVector<AutofillProfile>* profiles,
|
| + IAuxiliaryProfileLoader* profileLoader)
|
| + : profiles_(*profiles), profileLoader_(*profileLoader) {}
|
| +
|
| + void GetContactsProfile();
|
| +
|
| + private:
|
| + string16 CollapseAddress(string16 pobox,
|
| + string16 neighborhood);
|
| + void LoadAddress(AutofillProfile* profile);
|
| + void LoadName(AutofillProfile* profile);
|
| + void LoadEmailAddress(AutofillProfile* profile);
|
| + void LoadPhoneNumbers(AutofillProfile* profile);
|
| + private:
|
| + ScopedVector<AutofillProfile>& profiles_;
|
| + IAuxiliaryProfileLoader& profileLoader_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(AuxiliaryProfilesImpl);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_AUTOFILL_AUXILIARY_PROFILE_IMPL_ANDROID_H_
|
|
|