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

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

Issue 2144533002: Convert network hints to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add untracked dependency on mojom 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
Index: components/network_hints/browser/network_hints_message_filter.h
diff --git a/components/network_hints/browser/network_hints_message_filter.h b/components/network_hints/browser/network_hints_message_filter.h
deleted file mode 100644
index f30216ef426f55d4ca11f75ec199e80533755a93..0000000000000000000000000000000000000000
--- a/components/network_hints/browser/network_hints_message_filter.h
+++ /dev/null
@@ -1,40 +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 "content/public/browser/browser_message_filter.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 NetworkHintsMessageFilter : public content::BrowserMessageFilter {
- public:
- explicit NetworkHintsMessageFilter(net::HostResolver* host_resolver);
-
- // content::BrowserMessageFilter implementation:
- bool OnMessageReceived(const IPC::Message& message) override;
-
- private:
- ~NetworkHintsMessageFilter() override;
-
- void OnDnsPrefetch(const LookupRequest& lookup_request);
-
- net::HostResolver* host_resolver_;
-
- DISALLOW_COPY_AND_ASSIGN(NetworkHintsMessageFilter);
-};
-
-} // namespace network_hints
-
-#endif // COMPONENTS_NETWORK_HINTS_BROWSER_NETWORK_HINTS_MESSAGE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698