Chromium Code Reviews| Index: chrome/browser/geolocation/geolocation_confirm_infobar_delegate_factory.h |
| diff --git a/chrome/browser/geolocation/geolocation_confirm_infobar_delegate_factory.h b/chrome/browser/geolocation/geolocation_confirm_infobar_delegate_factory.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..307fcd09da9360c2ed855878ac3a7d4c597980d1 |
| --- /dev/null |
| +++ b/chrome/browser/geolocation/geolocation_confirm_infobar_delegate_factory.h |
| @@ -0,0 +1,34 @@ |
| +// Copyright (c) 2012 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_GEOLOCATION_GEOLOCATION_CONFIRM_INFOBAR_DELEGATE_FACTORY_H_ |
| +#define CHROME_BROWSER_GEOLOCATION_GEOLOCATION_CONFIRM_INFOBAR_DELEGATE_FACTORY_H_ |
| + |
| +#include "base/values.h" |
| +#if defined(OS_ANDROID) |
| +#include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate_android.h" |
|
bulach
2012/10/22 13:01:03
nit: remove from here and keep it in the .cc file
Ramya
2012/10/22 20:58:04
Done.
|
| +#else |
| +#include "chrome/browser/geolocation/geolocation_confirm_infobar_delegate.h" |
| +#endif |
| + |
| +class GeolocationConfirmInfoBarDelegateFactory { |
| + |
| + public: |
| + GeolocationConfirmInfoBarDelegateFactory() {} |
| + ~GeolocationConfirmInfoBarDelegateFactory() {} |
| + static GeolocationConfirmInfoBarDelegate* Create( |
| + InfoBarTabHelper* infobar_helper, |
| + GeolocationInfoBarQueueController* controller, |
| + int render_process_id, |
| + int render_view_id, |
| + int bridge_id, |
| + const GURL& requesting_frame_url, |
| + const std::string& display_languages); |
| + |
| + private: |
| + |
| + DISALLOW_COPY_AND_ASSIGN(GeolocationConfirmInfoBarDelegateFactory); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_GEOLOCATION_GEOLOCATION_CONFIRM_INFOBAR_DELEGATE_FACTORY_H_ |