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

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

Issue 5298008: net: Add namespace net to URLRequest and URLRequestJob classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: some chromeos fixes Created 10 years 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 #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
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 // the browser's UA string. 53 // the browser's UA string.
54 void set_user_agent(const std::string& ua) { user_agent_ = ua; } 54 void set_user_agent(const std::string& ua) { user_agent_ = ua; }
55 55
56 virtual const std::string& GetUserAgent(const GURL& url) const { 56 virtual const std::string& GetUserAgent(const GURL& url) const {
57 // If the user agent is set explicitly return that, otherwise call the 57 // If the user agent is set explicitly return that, otherwise call the
58 // base class method to return default value. 58 // base class method to return default value.
59 return user_agent_.empty() ? 59 return user_agent_.empty() ?
60 URLRequestContext::GetUserAgent(url) : user_agent_; 60 URLRequestContext::GetUserAgent(url) : user_agent_;
61 } 61 }
62 62
63 virtual bool AllowSendingCookies(const URLRequest* request) const { 63 virtual bool AllowSendingCookies(const net::URLRequest* request) const {
64 return false; 64 return false;
65 } 65 }
66 66
67 private: 67 private:
68 // The destructor MUST be called on the IO thread. 68 // The destructor MUST be called on the IO thread.
69 ~RequestContext(); 69 ~RequestContext();
70 70
71 std::string user_agent_; 71 std::string user_agent_;
72 URLRequestContext* baseline_context_; 72 URLRequestContext* baseline_context_;
73 73
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // common components. 203 // common components.
204 HttpBridge::RequestContextGetter* GetRequestContextGetter(); 204 HttpBridge::RequestContextGetter* GetRequestContextGetter();
205 scoped_refptr<HttpBridge::RequestContextGetter> request_context_getter_; 205 scoped_refptr<HttpBridge::RequestContextGetter> request_context_getter_;
206 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); 206 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory);
207 }; 207 };
208 208
209 } // namespace browser_sync 209 } // namespace browser_sync
210 210
211 #endif // CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_ 211 #endif // CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_
212 212
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698