Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: chrome/browser/sync/glue/http_bridge.h

Issue 292008: Fix ProfileSyncService unit test. (Closed)
Patch Set: Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/sync/glue/model_associator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/glue/model_associator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698