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

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

Issue 10386063: Move URLFetcherDelegate to net/ and split URLFetcher between net/ and content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head, fix win component build Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 // WARNING: these response content methods are used to extract plain old data 116 // WARNING: these response content methods are used to extract plain old data
117 // and not null terminated strings, so you should make sure you have read 117 // and not null terminated strings, so you should make sure you have read
118 // GetResponseContentLength() characters when using GetResponseContent. e.g 118 // GetResponseContentLength() characters when using GetResponseContent. e.g
119 // string r(b->GetResponseContent(), b->GetResponseContentLength()). 119 // string r(b->GetResponseContent(), b->GetResponseContentLength()).
120 virtual int GetResponseContentLength() const OVERRIDE; 120 virtual int GetResponseContentLength() const OVERRIDE;
121 virtual const char* GetResponseContent() const OVERRIDE; 121 virtual const char* GetResponseContent() const OVERRIDE;
122 virtual const std::string GetResponseHeaderValue( 122 virtual const std::string GetResponseHeaderValue(
123 const std::string& name) const OVERRIDE; 123 const std::string& name) const OVERRIDE;
124 124
125 // content::URLFetcherDelegate implementation. 125 // content::URLFetcherDelegate implementation.
126 virtual void OnURLFetchComplete(const content::URLFetcher* source) OVERRIDE; 126 virtual void OnURLFetchComplete(const net::URLFetcher* source) OVERRIDE;
127 127
128 #if defined(UNIT_TEST) 128 #if defined(UNIT_TEST)
129 net::URLRequestContextGetter* GetRequestContextGetter() const { 129 net::URLRequestContextGetter* GetRequestContextGetter() const {
130 return context_getter_for_request_; 130 return context_getter_for_request_;
131 } 131 }
132 #endif 132 #endif
133 133
134 protected: 134 protected:
135 friend class base::RefCountedThreadSafe<HttpBridge>; 135 friend class base::RefCountedThreadSafe<HttpBridge>;
136 136
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 HttpBridge::RequestContextGetter* GetRequestContextGetter(); 225 HttpBridge::RequestContextGetter* GetRequestContextGetter();
226 226
227 scoped_refptr<HttpBridge::RequestContextGetter> request_context_getter_; 227 scoped_refptr<HttpBridge::RequestContextGetter> request_context_getter_;
228 228
229 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory); 229 DISALLOW_COPY_AND_ASSIGN(HttpBridgeFactory);
230 }; 230 };
231 231
232 } // namespace browser_sync 232 } // namespace browser_sync
233 233
234 #endif // CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_ 234 #endif // CHROME_BROWSER_SYNC_GLUE_HTTP_BRIDGE_H_
OLDNEW
« no previous file with comments | « chrome/browser/spellchecker/spelling_service_client.cc ('k') | chrome/browser/sync/glue/http_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698