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

Unified Diff: net/url_request/url_request_context_getter.h

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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: net/url_request/url_request_context_getter.h
diff --git a/net/url_request/url_request_context_getter.h b/net/url_request/url_request_context_getter.h
deleted file mode 100644
index 17d17bd056bf87da6214d60715363b1083e7bc95..0000000000000000000000000000000000000000
--- a/net/url_request/url_request_context_getter.h
+++ /dev/null
@@ -1,81 +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 NET_URL_REQUEST_URL_REQUEST_CONTEXT_GETTER_H_
-#define NET_URL_REQUEST_URL_REQUEST_CONTEXT_GETTER_H_
-
-#include "base/memory/ref_counted.h"
-#include "base/sequenced_task_runner_helpers.h"
-#include "net/base/net_export.h"
-
-namespace base {
-class SingleThreadTaskRunner;
-} // namespace base
-
-namespace net {
-class CookieStore;
-class URLRequestContext;
-
-struct URLRequestContextGetterTraits;
-
-// Interface for retrieving an net::URLRequestContext.
-class NET_EXPORT URLRequestContextGetter
- : public base::RefCountedThreadSafe<URLRequestContextGetter,
- URLRequestContextGetterTraits> {
- public:
- virtual URLRequestContext* GetURLRequestContext() = 0;
-
- // Returns a SingleThreadTaskRunner corresponding to the thread on
- // which the network IO happens (the thread on which the returned
- // net::URLRequestContext may be used).
- virtual scoped_refptr<base::SingleThreadTaskRunner>
- GetNetworkTaskRunner() const = 0;
-
- protected:
- friend class base::RefCountedThreadSafe<URLRequestContextGetter,
- URLRequestContextGetterTraits>;
- friend class base::DeleteHelper<URLRequestContextGetter>;
- friend struct URLRequestContextGetterTraits;
-
- URLRequestContextGetter();
- virtual ~URLRequestContextGetter();
-
- private:
- // OnDestruct is meant to ensure deletion on the thread on which the request
- // IO happens.
- void OnDestruct() const;
-};
-
-struct URLRequestContextGetterTraits {
- static void Destruct(const URLRequestContextGetter* context_getter) {
- context_getter->OnDestruct();
- }
-};
-
-// For use in shimming a URLRequestContext into a URLRequestContextGetter.
-class NET_EXPORT TrivialURLRequestContextGetter
- : public URLRequestContextGetter {
-public:
- TrivialURLRequestContextGetter(
- net::URLRequestContext* context,
- const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner);
-
- // net::URLRequestContextGetter implementation:
- net::URLRequestContext* GetURLRequestContext() override;
-
- scoped_refptr<base::SingleThreadTaskRunner> GetNetworkTaskRunner()
- const override;
-
-private:
- ~TrivialURLRequestContextGetter() override;
-
- net::URLRequestContext* context_;
- const scoped_refptr<base::SingleThreadTaskRunner> main_task_runner_;
-
- DISALLOW_COPY_AND_ASSIGN(TrivialURLRequestContextGetter);
-};
-
-} // namespace net
-
-#endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_GETTER_H_
« no previous file with comments | « net/url_request/url_request_context_builder_unittest.cc ('k') | net/url_request/url_request_context_getter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698