| OLD | NEW | 
|   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 namespace net { |  10 namespace net { | 
| (...skipping 13 matching lines...) Expand all  Loading... | 
|  24 // with the exception of requests from gaia webview. Must be called on IO |  24 // with the exception of requests from gaia webview. Must be called on IO | 
|  25 // thread. |  25 // thread. | 
|  26 // Returns true if the account consistency header was added to the request. |  26 // Returns true if the account consistency header was added to the request. | 
|  27 // Removes the header if it is already in the headers but should not be there. |  27 // Removes the header if it is already in the headers but should not be there. | 
|  28 void FixAccountConsistencyRequestHeader(net::URLRequest* request, |  28 void FixAccountConsistencyRequestHeader(net::URLRequest* request, | 
|  29                                         const GURL& redirect_url, |  29                                         const GURL& redirect_url, | 
|  30                                         ProfileIOData* io_data, |  30                                         ProfileIOData* io_data, | 
|  31                                         int child_id, |  31                                         int child_id, | 
|  32                                         int route_id); |  32                                         int route_id); | 
|  33  |  33  | 
|  34 // Looks for the X-Chrome-Manage-Accounts response header, and if found, |  34 // Processes account consistency response headers (X-Chrome-Manage-Accounts and | 
|  35 // tries to show the avatar bubble in the browser identified by the |  35 // Dice). |redirect_url| is empty if the request is not a redirect. | 
|  36 // child/route id. Must be called on IO thread. |  36 void ProcessAccountConsistencyResponseHeaders(net::URLRequest* request, | 
|  37 void ProcessMirrorResponseHeaderIfExists(net::URLRequest* request, |  37                                               const GURL& redirect_url, | 
|  38                                          ProfileIOData* io_data, |  38                                               ProfileIOData* io_data, | 
|  39                                          int child_id, |  39                                               int child_id, | 
|  40                                          int route_id); |  40                                               int route_id); | 
|  41  |  41  | 
|  42 };  // namespace signin |  42 };  // namespace signin | 
|  43  |  43  | 
|  44 #endif  // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_HELPER_H_ |  44 #endif  // CHROME_BROWSER_SIGNIN_CHROME_SIGNIN_HELPER_H_ | 
| OLD | NEW |