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

Unified Diff: chrome/service/net/service_url_request_context.h

Issue 354693004: Switch to using URLRequestContextBuilder to create some URLRequestContexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge Created 6 years, 5 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: chrome/service/net/service_url_request_context.h
diff --git a/chrome/service/net/service_url_request_context.h b/chrome/service/net/service_url_request_context.h
deleted file mode 100644
index c409ede1575235d8c26782c375078516cb609a21..0000000000000000000000000000000000000000
--- a/chrome/service/net/service_url_request_context.h
+++ /dev/null
@@ -1,72 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_SERVICE_NET_SERVICE_URL_REQUEST_CONTEXT_H_
-#define CHROME_SERVICE_NET_SERVICE_URL_REQUEST_CONTEXT_H_
-
-#include <string>
-
-#include "base/memory/scoped_ptr.h"
-#include "net/cookies/cookie_monster.h"
-#include "net/disk_cache/disk_cache.h"
-#include "net/dns/host_resolver.h"
-#include "net/ftp/ftp_network_layer.h"
-#include "net/http/http_auth_handler_factory.h"
-#include "net/http/http_cache.h"
-#include "net/http/http_network_layer.h"
-#include "net/ssl/ssl_config_service_defaults.h"
-#include "net/url_request/url_request_context.h"
-#include "net/url_request/url_request_context_getter.h"
-#include "net/url_request/url_request_context_storage.h"
-
-namespace base {
-class MessageLoopProxy;
-}
-
-namespace net {
-class ProxyConfigService;
-}
-
-// Subclass of net::URLRequestContext which can be used to store extra
-// information for requests. This subclass is meant to be used in the service
-// process where the profile is not available.
-//
-class ServiceURLRequestContext : public net::URLRequestContext {
- public:
- // This context takes ownership of |net_proxy_config_service|.
- explicit ServiceURLRequestContext(
- const std::string& user_agent,
- net::ProxyConfigService* net_proxy_config_service);
-
- virtual ~ServiceURLRequestContext();
-
- private:
- net::URLRequestContextStorage storage_;
-};
-
-class ServiceURLRequestContextGetter : public net::URLRequestContextGetter {
- public:
- virtual net::URLRequestContext* GetURLRequestContext() OVERRIDE;
- virtual scoped_refptr<base::SingleThreadTaskRunner>
- GetNetworkTaskRunner() const OVERRIDE;
-
- void set_user_agent(const std::string& ua) {
- user_agent_ = ua;
- }
- std::string user_agent() const {
- return user_agent_;
- }
-
- private:
- friend class ServiceProcess;
- ServiceURLRequestContextGetter();
- virtual ~ServiceURLRequestContextGetter();
-
- std::string user_agent_;
- scoped_refptr<base::SingleThreadTaskRunner> network_task_runner_;
- scoped_ptr<net::ProxyConfigService> proxy_config_service_;
- scoped_ptr<net::URLRequestContext> url_request_context_;
-};
-
-#endif // CHROME_SERVICE_NET_SERVICE_URL_REQUEST_CONTEXT_H_
« no previous file with comments | « chrome/service/cloud_print/cloud_print_url_fetcher.cc ('k') | chrome/service/net/service_url_request_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698