Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: ios/chrome/browser/passwords/js_credential_manager.h

Issue 2544293002: ios: Cleanup class/struct forward declarations (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_PASSWORDS_JS_CREDENTIAL_MANAGER_H_ 5 #ifndef IOS_CHROME_BROWSER_PASSWORDS_JS_CREDENTIAL_MANAGER_H_
6 #define IOS_CHROME_BROWSER_PASSWORDS_JS_CREDENTIAL_MANAGER_H_ 6 #define IOS_CHROME_BROWSER_PASSWORDS_JS_CREDENTIAL_MANAGER_H_
7 7
8 #include "ios/web/public/web_state/credential.h" 8 #include "ios/web/public/web_state/credential.h"
9 #import "ios/web/public/web_state/js/crw_js_injection_manager.h" 9 #import "ios/web/public/web_state/js/crw_js_injection_manager.h"
10 10
11 namespace base {
12 class DictionaryValue;
13 } // namespace base
14
15 // Constants for rejecting requests. 11 // Constants for rejecting requests.
16 extern const char kCredentialsPendingRequestErrorType[]; 12 extern const char kCredentialsPendingRequestErrorType[];
17 extern const char kCredentialsPendingRequestErrorMessage[]; 13 extern const char kCredentialsPendingRequestErrorMessage[];
18 extern const char kCredentialsSecurityErrorType[]; 14 extern const char kCredentialsSecurityErrorType[];
19 extern const char kCredentialsPasswordStoreUnavailableErrorType[]; 15 extern const char kCredentialsPasswordStoreUnavailableErrorType[];
20 extern const char kCredentialsPasswordStoreUnavailableErrorMessage[]; 16 extern const char kCredentialsPasswordStoreUnavailableErrorMessage[];
21 extern const char kCredentialsSecurityErrorMessageUntrustedOrigin[]; 17 extern const char kCredentialsSecurityErrorMessageUntrustedOrigin[];
22 18
23 // Injects the JavaScript that implements the request credentials API and 19 // Injects the JavaScript that implements the request credentials API and
24 // provides an app-side interface for interacting with it. 20 // provides an app-side interface for interacting with it.
(...skipping 16 matching lines...) Expand all
41 // the specified |errorType| and |message|. |completionHandler| will be invoked 37 // the specified |errorType| and |message|. |completionHandler| will be invoked
42 // after the operation has completed with YES if successful. 38 // after the operation has completed with YES if successful.
43 - (void)rejectPromiseWithRequestID:(NSInteger)requestID 39 - (void)rejectPromiseWithRequestID:(NSInteger)requestID
44 errorType:(NSString*)errorType 40 errorType:(NSString*)errorType
45 message:(NSString*)message 41 message:(NSString*)message
46 completionHandler:(void (^)(BOOL))completionHandler; 42 completionHandler:(void (^)(BOOL))completionHandler;
47 43
48 @end 44 @end
49 45
50 #endif // IOS_CHROME_BROWSER_PASSWORDS_JS_CREDENTIAL_MANAGER_H_ 46 #endif // IOS_CHROME_BROWSER_PASSWORDS_JS_CREDENTIAL_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698