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

Unified Diff: components/cronet/android/url_request_context_adapter.h

Issue 453053002: Rename url_request_[context_]peer.* into url_request_[context_]adapter.* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix java formatting Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: components/cronet/android/url_request_context_adapter.h
diff --git a/components/cronet/android/url_request_context_peer.h b/components/cronet/android/url_request_context_adapter.h
similarity index 68%
rename from components/cronet/android/url_request_context_peer.h
rename to components/cronet/android/url_request_context_adapter.h
index 572e65089a1c8d664a9552c5feb96b77d0ce86e6..ef4fcd6deacd86b3671662c37384882a70d8b6e2 100644
--- a/components/cronet/android/url_request_context_peer.h
+++ b/components/cronet/android/url_request_context_adapter.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_CRONET_ANDROID_URL_REQUEST_CONTEXT_PEER_H_
-#define COMPONENTS_CRONET_ANDROID_URL_REQUEST_CONTEXT_PEER_H_
+#ifndef COMPONENTS_CRONET_ANDROID_URL_REQUEST_CONTEXT_ADAPTER_H_
+#define COMPONENTS_CRONET_ANDROID_URL_REQUEST_CONTEXT_ADAPTER_H_
#include <string>
@@ -39,21 +39,21 @@ class NetLogObserver : public net::NetLog::ThreadSafeObserver {
};
// Fully configured |URLRequestContext|.
-class URLRequestContextPeer : public net::URLRequestContextGetter {
+class URLRequestContextAdapter : public net::URLRequestContextGetter {
public:
- class URLRequestContextPeerDelegate
- : public base::RefCountedThreadSafe<URLRequestContextPeerDelegate> {
+ class URLRequestContextAdapterDelegate
+ : public base::RefCountedThreadSafe<URLRequestContextAdapterDelegate> {
public:
- virtual void OnContextInitialized(URLRequestContextPeer* context) = 0;
+ virtual void OnContextInitialized(URLRequestContextAdapter* context) = 0;
protected:
- friend class base::RefCountedThreadSafe<URLRequestContextPeerDelegate>;
+ friend class base::RefCountedThreadSafe<URLRequestContextAdapterDelegate>;
- virtual ~URLRequestContextPeerDelegate() {}
+ virtual ~URLRequestContextAdapterDelegate() {}
};
- URLRequestContextPeer(URLRequestContextPeerDelegate* delegate,
- std::string user_agent);
+ URLRequestContextAdapter(URLRequestContextAdapterDelegate* delegate,
+ std::string user_agent);
void Initialize(scoped_ptr<URLRequestContextConfig> config);
const std::string& GetUserAgent(const GURL& url) const;
@@ -67,7 +67,7 @@ class URLRequestContextPeer : public net::URLRequestContextGetter {
void StopNetLog();
private:
- scoped_refptr<URLRequestContextPeerDelegate> delegate_;
+ scoped_refptr<URLRequestContextAdapterDelegate> delegate_;
scoped_ptr<net::URLRequestContext> context_;
std::string user_agent_;
base::Thread* network_thread_;
@@ -75,14 +75,14 @@ class URLRequestContextPeer : public net::URLRequestContextGetter {
scoped_ptr<NetLogObserver> net_log_observer_;
scoped_ptr<net::NetLogLogger> net_log_logger_;
- virtual ~URLRequestContextPeer();
+ virtual ~URLRequestContextAdapter();
// Initializes |context_| on the IO thread.
void InitializeURLRequestContext(scoped_ptr<URLRequestContextConfig> config);
- DISALLOW_COPY_AND_ASSIGN(URLRequestContextPeer);
+ DISALLOW_COPY_AND_ASSIGN(URLRequestContextAdapter);
};
} // namespace cronet
-#endif // COMPONENTS_CRONET_ANDROID_URL_REQUEST_CONTEXT_PEER_H_
+#endif // COMPONENTS_CRONET_ANDROID_URL_REQUEST_CONTEXT_ADAPTER_H_
« no previous file with comments | « components/cronet/android/url_request_adapter.cc ('k') | components/cronet/android/url_request_context_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698