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

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

Issue 193103: Build sync engine as part of the browser build (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | Annotate | Revision Log
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 #ifdef CHROME_PERSONALIZATION 5 #ifdef CHROME_PERSONALIZATION
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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 bool is_user_agent_set() const { return !user_agent_.empty(); } 56 bool is_user_agent_set() const { return !user_agent_.empty(); }
57 57
58 virtual const std::string& GetUserAgent(const GURL& url) const { 58 virtual const std::string& GetUserAgent(const GURL& url) const {
59 // If the user agent is set explicitly return that, otherwise call the 59 // If the user agent is set explicitly return that, otherwise call the
60 // base class method to return default value. 60 // base class method to return default value.
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 // TODO(chron): http://crbug.com/20182. Change this to return false once 66 return false;
67 // all clients use Authenticate: header auth mode.
68 return true;
69 } 67 }
70 68
71 private: 69 private:
72 std::string user_agent_; 70 std::string user_agent_;
73 71
74 DISALLOW_COPY_AND_ASSIGN(RequestContext); 72 DISALLOW_COPY_AND_ASSIGN(RequestContext);
75 }; 73 };
76 74
77 HttpBridge(RequestContext* context, MessageLoop* io_loop); 75 HttpBridge(RequestContext* context, MessageLoop* io_loop);
78 virtual ~HttpBridge(); 76 virtual ~HttpBridge();
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // We must Release() this from the IO thread. 175 // We must Release() this from the IO thread.
178 HttpBridge::RequestContext* request_context_; 176 HttpBridge::RequestContext* request_context_;
179 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); 177 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory);
180 }; 178 };
181 179
182 } // namespace browser_sync 180 } // namespace browser_sync
183 181
184 #endif // CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_ 182 #endif // CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_
185 183
186 #endif // CHROME_PERSONALIZATION 184 #endif // CHROME_PERSONALIZATION
OLDNEW
« no previous file with comments | « chrome/browser/sync/engine/syncer_util.h ('k') | chrome/browser/sync/glue/http_bridge_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698