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

Unified Diff: components/network_hints/browser/network_hints_impl.h

Issue 2179693002: Revert of Convert network hints to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « components/network_hints/browser/DEPS ('k') | components/network_hints/browser/network_hints_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/network_hints/browser/network_hints_impl.h
diff --git a/components/network_hints/browser/network_hints_impl.h b/components/network_hints/browser/network_hints_impl.h
deleted file mode 100644
index d6a77ba50372392b139ef771afdbe5b1432058fc..0000000000000000000000000000000000000000
--- a/components/network_hints/browser/network_hints_impl.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2014 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 COMPONENTS_NETWORK_HINTS_BROWSER_NETWORK_HINTS_MESSAGE_FILTER_H_
-#define COMPONENTS_NETWORK_HINTS_BROWSER_NETWORK_HINTS_MESSAGE_FILTER_H_
-
-#include "base/macros.h"
-#include "components/network_hints/public/interfaces/network_hints.mojom.h"
-#include "mojo/public/cpp/bindings/binding_set.h"
-
-namespace net {
-class HostResolver;
-}
-
-namespace network_hints {
-struct LookupRequest;
-
-// Simple browser-side handler for DNS prefetch requests.
-// Passes prefetch requests to the provided net::HostResolver.
-// Each renderer process requires its own filter.
-class NetworkHintsImpl : public network_hints::mojom::NetworkHints {
- public:
- explicit NetworkHintsImpl(net::HostResolver* host_resolver);
- ~NetworkHintsImpl() override;
-
- void Bind(mojo::InterfaceRequest<mojom::NetworkHints> request);
-
- private:
- // network_hints::mojom::NetworkHints implementation:
- void DNSPrefetch(const LookupRequest& lookup_request) override;
- void Preconnect(const GURL& url,
- bool allow_credentials,
- int32_t count) override {}
-
- net::HostResolver* host_resolver_;
-
- mojo::BindingSet<mojom::NetworkHints> bindings_;
-
- DISALLOW_COPY_AND_ASSIGN(NetworkHintsImpl);
-};
-
-} // namespace network_hints
-
-#endif // COMPONENTS_NETWORK_HINTS_BROWSER_NETWORK_HINTS_MESSAGE_FILTER_H_
« no previous file with comments | « components/network_hints/browser/DEPS ('k') | components/network_hints/browser/network_hints_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698