| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/chromeos/login/login_utils.h" | 5 #include "chrome/browser/chromeos/login/login_utils.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 #include "googleurl/src/gurl.h" | 64 #include "googleurl/src/gurl.h" |
| 65 #include "net/base/cookie_monster.h" | 65 #include "net/base/cookie_monster.h" |
| 66 #include "net/base/cookie_store.h" | 66 #include "net/base/cookie_store.h" |
| 67 #include "net/http/http_auth_cache.h" | 67 #include "net/http/http_auth_cache.h" |
| 68 #include "net/http/http_network_session.h" | 68 #include "net/http/http_network_session.h" |
| 69 #include "net/http/http_transaction_factory.h" | 69 #include "net/http/http_transaction_factory.h" |
| 70 #include "net/url_request/url_request_context.h" | 70 #include "net/url_request/url_request_context.h" |
| 71 #include "net/url_request/url_request_context_getter.h" | 71 #include "net/url_request/url_request_context_getter.h" |
| 72 #include "ui/gfx/gl/gl_switches.h" | 72 #include "ui/gfx/gl/gl_switches.h" |
| 73 | 73 |
| 74 using content::BrowserThread; |
| 75 |
| 74 namespace chromeos { | 76 namespace chromeos { |
| 75 | 77 |
| 76 namespace { | 78 namespace { |
| 77 | 79 |
| 78 // Affixes for Auth token received from ClientLogin request. | 80 // Affixes for Auth token received from ClientLogin request. |
| 79 const char kAuthPrefix[] = "Auth="; | 81 const char kAuthPrefix[] = "Auth="; |
| 80 const char kAuthSuffix[] = "\n"; | 82 const char kAuthSuffix[] = "\n"; |
| 81 | 83 |
| 82 // Increase logging level for Guest mode to avoid LOG(INFO) messages in logs. | 84 // Increase logging level for Guest mode to avoid LOG(INFO) messages in logs. |
| 83 const char kGuestModeLoggingLevel[] = "1"; | 85 const char kGuestModeLoggingLevel[] = "1"; |
| (...skipping 1125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1209 // Mark login host for deletion after browser starts. This | 1211 // Mark login host for deletion after browser starts. This |
| 1210 // guarantees that the message loop will be referenced by the | 1212 // guarantees that the message loop will be referenced by the |
| 1211 // browser before it is dereferenced by the login host. | 1213 // browser before it is dereferenced by the login host. |
| 1212 if (login_host) { | 1214 if (login_host) { |
| 1213 login_host->OnSessionStart(); | 1215 login_host->OnSessionStart(); |
| 1214 login_host = NULL; | 1216 login_host = NULL; |
| 1215 } | 1217 } |
| 1216 } | 1218 } |
| 1217 | 1219 |
| 1218 } // namespace chromeos | 1220 } // namespace chromeos |
| OLD | NEW |