| 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 #ifndef CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_ |
| 6 #define CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_ | 6 #define CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
| 15 #include "base/synchronization/waitable_event.h" | 15 #include "base/synchronization/waitable_event.h" |
| 16 #include "chrome/browser/sync/engine/http_post_provider_factory.h" | 16 #include "chrome/browser/sync/engine/http_post_provider_factory.h" |
| 17 #include "chrome/browser/sync/engine/http_post_provider_interface.h" | 17 #include "chrome/browser/sync/engine/http_post_provider_interface.h" |
| 18 #include "chrome/browser/sync/engine/syncapi.h" | |
| 19 #include "content/common/url_fetcher.h" | 18 #include "content/common/url_fetcher.h" |
| 20 #include "googleurl/src/gurl.h" | 19 #include "googleurl/src/gurl.h" |
| 20 #include "net/url_request/url_request_context_getter.h" |
| 21 #include "net/url_request/url_request_context.h" | 21 #include "net/url_request/url_request_context.h" |
| 22 #include "net/url_request/url_request_context_getter.h" | |
| 23 #include "testing/gtest/include/gtest/gtest_prod.h" | 22 #include "testing/gtest/include/gtest/gtest_prod.h" |
| 24 | 23 |
| 25 class MessageLoop; | 24 class MessageLoop; |
| 26 class HttpBridgeTest; | 25 class HttpBridgeTest; |
| 27 | 26 |
| 28 namespace browser_sync { | 27 namespace browser_sync { |
| 29 | 28 |
| 30 // A bridge between the syncer and Chromium HTTP layers. | 29 // A bridge between the syncer and Chromium HTTP layers. |
| 31 // Provides a way for the sync backend to use Chromium directly for HTTP | 30 // Provides a way for the sync backend to use Chromium directly for HTTP |
| 32 // requests rather than depending on a third party provider (e.g libcurl). | 31 // requests rather than depending on a third party provider (e.g libcurl). |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 HttpBridge::RequestContextGetter* GetRequestContextGetter(); | 217 HttpBridge::RequestContextGetter* GetRequestContextGetter(); |
| 219 | 218 |
| 220 scoped_refptr<HttpBridge::RequestContextGetter> request_context_getter_; | 219 scoped_refptr<HttpBridge::RequestContextGetter> request_context_getter_; |
| 221 | 220 |
| 222 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); | 221 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); |
| 223 }; | 222 }; |
| 224 | 223 |
| 225 } // namespace browser_sync | 224 } // namespace browser_sync |
| 226 | 225 |
| 227 #endif // CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_ | 226 #endif // CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_ |
| OLD | NEW |