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

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

Issue 1837003: Created a stock implementation of the MessageLoopProxy interface than can be ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Rearranged header files Created 10 years, 7 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 #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 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/ref_counted.h" 10 #include "base/ref_counted.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 class RequestContextGetter : public URLRequestContextGetter { 77 class RequestContextGetter : public URLRequestContextGetter {
78 public: 78 public:
79 explicit RequestContextGetter( 79 explicit RequestContextGetter(
80 URLRequestContextGetter* baseline_context_getter); 80 URLRequestContextGetter* baseline_context_getter);
81 81
82 void set_user_agent(const std::string& ua) { user_agent_ = ua; } 82 void set_user_agent(const std::string& ua) { user_agent_ = ua; }
83 bool is_user_agent_set() const { return !user_agent_.empty(); } 83 bool is_user_agent_set() const { return !user_agent_.empty(); }
84 84
85 // URLRequestContextGetter implementation. 85 // URLRequestContextGetter implementation.
86 virtual URLRequestContext* GetURLRequestContext(); 86 virtual URLRequestContext* GetURLRequestContext();
87 virtual scoped_refptr<MessageLoopProxy> GetIOMessageLoopProxy(); 87 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy();
88 88
89 private: 89 private:
90 ~RequestContextGetter() {} 90 ~RequestContextGetter() {}
91 91
92 // User agent to apply to the URLRequestContext. 92 // User agent to apply to the URLRequestContext.
93 std::string user_agent_; 93 std::string user_agent_;
94 94
95 scoped_refptr<URLRequestContextGetter> baseline_context_getter_; 95 scoped_refptr<URLRequestContextGetter> baseline_context_getter_;
96 96
97 // Lazily initialized by GetURLRequestContext(). 97 // Lazily initialized by GetURLRequestContext().
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // common components. 202 // common components.
203 HttpBridge::RequestContextGetter* GetRequestContextGetter(); 203 HttpBridge::RequestContextGetter* GetRequestContextGetter();
204 scoped_refptr<HttpBridge::RequestContextGetter> request_context_getter_; 204 scoped_refptr<HttpBridge::RequestContextGetter> request_context_getter_;
205 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); 205 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory);
206 }; 206 };
207 207
208 } // namespace browser_sync 208 } // namespace browser_sync
209 209
210 #endif // CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_ 210 #endif // CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_
211 211
OLDNEW
« no previous file with comments | « chrome/browser/net/url_request_context_getter.cc ('k') | chrome/browser/sync/glue/http_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698