| 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/sync/glue/http_bridge.h" | 5 #include "chrome/browser/sync/glue/http_bridge.h" |
| 6 | 6 |
| 7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
| 8 #include "base/message_loop_proxy.h" | 8 #include "base/message_loop_proxy.h" |
| 9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
| 10 #include "content/browser/browser_thread.h" | 10 #include "content/browser/browser_thread.h" |
| 11 #include "content/common/content_client.h" | 11 #include "content/public/common/content_client.h" |
| 12 #include "net/base/cookie_monster.h" | 12 #include "net/base/cookie_monster.h" |
| 13 #include "net/base/host_resolver.h" | 13 #include "net/base/host_resolver.h" |
| 14 #include "net/base/load_flags.h" | 14 #include "net/base/load_flags.h" |
| 15 #include "net/base/net_errors.h" | 15 #include "net/base/net_errors.h" |
| 16 #include "net/http/http_cache.h" | 16 #include "net/http/http_cache.h" |
| 17 #include "net/http/http_network_layer.h" | 17 #include "net/http/http_network_layer.h" |
| 18 #include "net/http/http_response_headers.h" | 18 #include "net/http/http_response_headers.h" |
| 19 #include "net/proxy/proxy_service.h" | 19 #include "net/proxy/proxy_service.h" |
| 20 #include "net/url_request/url_request_context.h" | 20 #include "net/url_request/url_request_context.h" |
| 21 #include "net/url_request/url_request_status.h" | 21 #include "net/url_request/url_request_status.h" |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 // URLFetcher, so it seems most natural / "polite" to let the stack unwind. | 290 // URLFetcher, so it seems most natural / "polite" to let the stack unwind. |
| 291 MessageLoop::current()->DeleteSoon(FROM_HERE, fetch_state_.url_poster); | 291 MessageLoop::current()->DeleteSoon(FROM_HERE, fetch_state_.url_poster); |
| 292 fetch_state_.url_poster = NULL; | 292 fetch_state_.url_poster = NULL; |
| 293 | 293 |
| 294 // Wake the blocked syncer thread in MakeSynchronousPost. | 294 // Wake the blocked syncer thread in MakeSynchronousPost. |
| 295 // WARNING: DONT DO ANYTHING AFTER THIS CALL! |this| may be deleted! | 295 // WARNING: DONT DO ANYTHING AFTER THIS CALL! |this| may be deleted! |
| 296 http_post_completed_.Signal(); | 296 http_post_completed_.Signal(); |
| 297 } | 297 } |
| 298 | 298 |
| 299 } // namespace browser_sync | 299 } // namespace browser_sync |
| OLD | NEW |