cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / ios / chrome / browser / geolocation / omnibox_geolocation_authorization_alert.h
blobf753924320117faf58c192f6d9d2063d4d192dbb
1 // Copyright 2013 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 IOS_CHROME_BROWSER_GEOLOCATION_OMNIBOX_GEOLOCATION_AUTHORIZATION_ALERT_H_
6 #define IOS_CHROME_BROWSER_GEOLOCATION_OMNIBOX_GEOLOCATION_AUTHORIZATION_ALERT_H_
8 #import <Foundation/Foundation.h>
10 @class OmniboxGeolocationAuthorizationAlert;
12 // Defines the methods to be implemented by a delegate of an
13 // OmniboxGeolocationAuthorizationAlert.
14 @protocol OmniboxGeolocationAuthorizationAlertDelegate
16 // Notifies the receiver that the user authorized the use of geolocation for
17 // Omnibox queries.
18 - (void)authorizationAlertDidAuthorize:
19 (OmniboxGeolocationAuthorizationAlert*)authorizationAlert;
21 // Notifies the receiver that the user canceled the use of geolocation for
22 // Omnibox queries.
23 - (void)authorizationAlertDidCancel:
24 (OmniboxGeolocationAuthorizationAlert*)authorizationAlert;
26 @end
28 // Presents the alert view that prompts the user to authorize using geolocation
29 // for Omnibox queries.
30 @interface OmniboxGeolocationAuthorizationAlert : NSObject
32 // The delegate for this OmniboxGeolocationAuthorizationAlert.
33 @property(nonatomic, assign)
34 id<OmniboxGeolocationAuthorizationAlertDelegate> delegate;
36 // Designated initializer. Initializes this instance with |delegate|.
37 - (instancetype)initWithDelegate:
38 (id<OmniboxGeolocationAuthorizationAlertDelegate>)delegate
39 NS_DESIGNATED_INITIALIZER;
41 // Shows the authorization alert.
42 - (void)showAuthorizationAlert;
44 @end
46 #endif // IOS_CHROME_BROWSER_GEOLOCATION_OMNIBOX_GEOLOCATION_AUTHORIZATION_ALERT_H_