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

Side by Side Diff: chrome/browser/signin/chrome_signin_helper.h

Issue 2918403009: [Dice] Parse the Dice response header (Closed)
Patch Set: rebase Created 3 years, 6 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 2013 The Chromium Authors. All rights reserved. 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 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 CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_HELPER_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_HELPER_H_
6 #define CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_HELPER_H_ 6 #define CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_HELPER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "build/build_config.h"
11
10 namespace net { 12 namespace net {
11 class URLRequest; 13 class URLRequest;
12 } 14 }
13 class GURL; 15 class GURL;
14 class ProfileIOData; 16 class ProfileIOData;
15 17
16 // Utility functions for handling Chrome/Gaia headers during signin process. 18 // Utility functions for handling Chrome/Gaia headers during signin process.
17 // Chrome identity should always stay in sync with Gaia identity. Therefore 19 // Chrome identity should always stay in sync with Gaia identity. Therefore
18 // Chrome needs to send Gaia special header for requests from a connected 20 // Chrome needs to send Gaia special header for requests from a connected
19 // profile, so that Gaia can modify its response accordingly and let Chrome 21 // profile, so that Gaia can modify its response accordingly and let Chrome
(...skipping 12 matching lines...) Expand all
32 int route_id); 34 int route_id);
33 35
34 // Looks for the X-Chrome-Manage-Accounts response header, and if found, 36 // Looks for the X-Chrome-Manage-Accounts response header, and if found,
35 // tries to show the avatar bubble in the browser identified by the 37 // tries to show the avatar bubble in the browser identified by the
36 // child/route id. Must be called on IO thread. 38 // child/route id. Must be called on IO thread.
37 void ProcessMirrorResponseHeaderIfExists(net::URLRequest* request, 39 void ProcessMirrorResponseHeaderIfExists(net::URLRequest* request,
38 ProfileIOData* io_data, 40 ProfileIOData* io_data,
39 int child_id, 41 int child_id,
40 int route_id); 42 int route_id);
41 43
44 #if !defined(OS_IOS) && !defined(OS_ANDROID)
45 // Looks for the X-Chrome-ID-Consistency-Response response header, and if found,
46 // fetches a OAuth2 token. Must be called on IO thread.
47 void ProcessDiceResponseHeaderIfExists(net::URLRequest* request,
48 ProfileIOData* io_data);
49 #endif
50
42 }; // namespace signin 51 }; // namespace signin
43 52
44 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_HELPER_H_ 53 #endif // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698