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

Side by Side Diff: ios/chrome/browser/signin/gaia_auth_fetcher_ios_private.h

Issue 2239773002: Annotates functions returning retained objects. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments Created 4 years, 4 months 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_SIGNIN_GAIA_AUTH_FETCHER_IOS_PRIVATE_H_ 5 #ifndef IOS_CHROME_BROWSER_SIGNIN_GAIA_AUTH_FETCHER_IOS_PRIVATE_H_
6 #define IOS_CHROME_BROWSER_SIGNIN_GAIA_AUTH_FETCHER_IOS_PRIVATE_H_ 6 #define IOS_CHROME_BROWSER_SIGNIN_GAIA_AUTH_FETCHER_IOS_PRIVATE_H_
7 7
8 #import <WebKit/WebKit.h> 8 #import <WebKit/WebKit.h>
9 9
10 #import "base/mac/scoped_nsobject.h" 10 #import "base/mac/scoped_nsobject.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // Fetches the pending request if it exists. 77 // Fetches the pending request if it exists.
78 void FetchPendingRequest(); 78 void FetchPendingRequest();
79 // Finishes the pending request and cleans up its associated state. Returns 79 // Finishes the pending request and cleans up its associated state. Returns
80 // the URL of the request. 80 // the URL of the request.
81 GURL FinishPendingRequest(); 81 GURL FinishPendingRequest();
82 82
83 // Returns the cached WKWebView if it exists, or creates one if necessary. 83 // Returns the cached WKWebView if it exists, or creates one if necessary.
84 // Can return nil if the browser state is not active. 84 // Can return nil if the browser state is not active.
85 WKWebView* GetWKWebView(); 85 WKWebView* GetWKWebView();
86 // Actually creates a WKWebView. Virtual for testing. 86 // Actually creates a WKWebView. Virtual for testing.
87 virtual WKWebView* CreateWKWebView(); 87 virtual WKWebView* CreateWKWebView() NS_RETURNS_RETAINED;
88 // Stops any page loading in the WKWebView currently in use and releases it. 88 // Stops any page loading in the WKWebView currently in use and releases it.
89 void ResetWKWebView(); 89 void ResetWKWebView();
90 90
91 // ActiveStateManager::Observer implementation. 91 // ActiveStateManager::Observer implementation.
92 void OnActive() override; 92 void OnActive() override;
93 void OnInactive() override; 93 void OnInactive() override;
94 94
95 // Browser state associated with the bridge, used to create WKWebViews. 95 // Browser state associated with the bridge, used to create WKWebViews.
96 web::BrowserState* browser_state_; 96 web::BrowserState* browser_state_;
97 // Fetcher owning this bridge. 97 // Fetcher owning this bridge.
98 GaiaAuthFetcherIOS* fetcher_; 98 GaiaAuthFetcherIOS* fetcher_;
99 // Request currently processed by the bridge. 99 // Request currently processed by the bridge.
100 Request request_; 100 Request request_;
101 // Navigation delegate of |web_view_| that informs the bridge of relevant 101 // Navigation delegate of |web_view_| that informs the bridge of relevant
102 // navigation events. 102 // navigation events.
103 base::scoped_nsobject<GaiaAuthFetcherNavigationDelegate> navigation_delegate_; 103 base::scoped_nsobject<GaiaAuthFetcherNavigationDelegate> navigation_delegate_;
104 // Web view used to do the network requests. 104 // Web view used to do the network requests.
105 base::scoped_nsobject<WKWebView> web_view_; 105 base::scoped_nsobject<WKWebView> web_view_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(GaiaAuthFetcherIOSBridge); 107 DISALLOW_COPY_AND_ASSIGN(GaiaAuthFetcherIOSBridge);
108 }; 108 };
109 109
110 #endif // IOS_CHROME_BROWSER_SIGNIN_GAIA_AUTH_FETCHER_IOS_PRIVATE_H_ 110 #endif // IOS_CHROME_BROWSER_SIGNIN_GAIA_AUTH_FETCHER_IOS_PRIVATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698