| 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) | 5 #if defined(BROWSER_SYNC) |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_ | 7 #ifndef CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_ |
| 8 #define CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_ | 8 #define CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 return user_agent_.empty() ? | 61 return user_agent_.empty() ? |
| 62 URLRequestContext::GetUserAgent(url) : user_agent_; | 62 URLRequestContext::GetUserAgent(url) : user_agent_; |
| 63 } | 63 } |
| 64 | 64 |
| 65 virtual bool AllowSendingCookies(const URLRequest* request) const { | 65 virtual bool AllowSendingCookies(const URLRequest* request) const { |
| 66 return false; | 66 return false; |
| 67 } | 67 } |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 std::string user_agent_; | 70 std::string user_agent_; |
| 71 scoped_refptr<URLRequestContext> baseline_context_; | 71 URLRequestContext* baseline_context_; |
| 72 | 72 |
| 73 DISALLOW_COPY_AND_ASSIGN(RequestContext); | 73 DISALLOW_COPY_AND_ASSIGN(RequestContext); |
| 74 }; | 74 }; |
| 75 | 75 |
| 76 HttpBridge(RequestContext* context, MessageLoop* io_loop); | 76 HttpBridge(RequestContext* context, MessageLoop* io_loop); |
| 77 virtual ~HttpBridge(); | 77 virtual ~HttpBridge(); |
| 78 | 78 |
| 79 // sync_api::HttpPostProvider implementation. | 79 // sync_api::HttpPostProvider implementation. |
| 80 virtual void SetUserAgent(const char* user_agent); | 80 virtual void SetUserAgent(const char* user_agent); |
| 81 virtual void SetExtraRequestHeaders(const char* headers); | 81 virtual void SetExtraRequestHeaders(const char* headers); |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 // We must Release() this from the IO thread. | 176 // We must Release() this from the IO thread. |
| 177 HttpBridge::RequestContext* request_context_; | 177 HttpBridge::RequestContext* request_context_; |
| 178 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); | 178 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); |
| 179 }; | 179 }; |
| 180 | 180 |
| 181 } // namespace browser_sync | 181 } // namespace browser_sync |
| 182 | 182 |
| 183 #endif // CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_ | 183 #endif // CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_ |
| 184 | 184 |
| 185 #endif // defined(BROWSER_SYNC) | 185 #endif // defined(BROWSER_SYNC) |
| OLD | NEW |