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

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

Issue 3869003: Const-ify RefCountedThreadSafe::AddRef and Release. (Closed)
Patch Set: actually remove the cast Created 10 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
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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 class RequestContextGetter : public URLRequestContextGetter { 78 class RequestContextGetter : public URLRequestContextGetter {
79 public: 79 public:
80 explicit RequestContextGetter( 80 explicit RequestContextGetter(
81 URLRequestContextGetter* baseline_context_getter); 81 URLRequestContextGetter* baseline_context_getter);
82 82
83 void set_user_agent(const std::string& ua) { user_agent_ = ua; } 83 void set_user_agent(const std::string& ua) { user_agent_ = ua; }
84 bool is_user_agent_set() const { return !user_agent_.empty(); } 84 bool is_user_agent_set() const { return !user_agent_.empty(); }
85 85
86 // URLRequestContextGetter implementation. 86 // URLRequestContextGetter implementation.
87 virtual URLRequestContext* GetURLRequestContext(); 87 virtual URLRequestContext* GetURLRequestContext();
88 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy(); 88 virtual scoped_refptr<base::MessageLoopProxy> GetIOMessageLoopProxy() const;
89 89
90 private: 90 private:
91 ~RequestContextGetter() {} 91 ~RequestContextGetter() {}
92 92
93 // User agent to apply to the URLRequestContext. 93 // User agent to apply to the URLRequestContext.
94 std::string user_agent_; 94 std::string user_agent_;
95 95
96 scoped_refptr<URLRequestContextGetter> baseline_context_getter_; 96 scoped_refptr<URLRequestContextGetter> baseline_context_getter_;
97 97
98 // Lazily initialized by GetURLRequestContext(). 98 // Lazily initialized by GetURLRequestContext().
(...skipping 104 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
« no previous file with comments | « chrome/browser/renderer_host/resource_message_filter.cc ('k') | chrome/browser/sync/glue/http_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698