OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #if defined(BROWSER_SYNC) | |
6 | |
7 #include "chrome/browser/sync/glue/http_bridge.h" | 5 #include "chrome/browser/sync/glue/http_bridge.h" |
8 | 6 |
9 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
10 #include "base/string_util.h" | 8 #include "base/string_util.h" |
11 #include "chrome/browser/chrome_thread.h" | 9 #include "chrome/browser/chrome_thread.h" |
12 #include "chrome/browser/profile.h" | 10 #include "chrome/browser/profile.h" |
13 #include "chrome/browser/chrome_thread.h" | 11 #include "chrome/browser/chrome_thread.h" |
14 #include "net/base/cookie_monster.h" | 12 #include "net/base/cookie_monster.h" |
15 #include "net/base/load_flags.h" | 13 #include "net/base/load_flags.h" |
16 #include "net/http/http_cache.h" | 14 #include "net/http/http_cache.h" |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 // URLFetcher, so it seems most natural / "polite" to let the stack unwind. | 229 // URLFetcher, so it seems most natural / "polite" to let the stack unwind. |
232 MessageLoop::current()->DeleteSoon(FROM_HERE, url_poster_); | 230 MessageLoop::current()->DeleteSoon(FROM_HERE, url_poster_); |
233 url_poster_ = NULL; | 231 url_poster_ = NULL; |
234 | 232 |
235 // Wake the blocked syncer thread in MakeSynchronousPost. | 233 // Wake the blocked syncer thread in MakeSynchronousPost. |
236 // WARNING: DONT DO ANYTHING AFTER THIS CALL! |this| may be deleted! | 234 // WARNING: DONT DO ANYTHING AFTER THIS CALL! |this| may be deleted! |
237 http_post_completed_.Signal(); | 235 http_post_completed_.Signal(); |
238 } | 236 } |
239 | 237 |
240 } // namespace browser_sync | 238 } // namespace browser_sync |
241 | |
242 #endif // defined(BROWSER_SYNC) | |
OLD | NEW |