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

Unified Diff: chrome/browser/chrome_net_benchmarking_message_filter.h

Issue 2521823008: Migrate chrome_net_benchmarking_message_filter to mojo (Closed)
Patch Set: Do not add NetBenchmaring interface if benchmarking is disabled Created 4 years 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/browser/chrome_net_benchmarking_message_filter.h
diff --git a/chrome/browser/chrome_net_benchmarking_message_filter.h b/chrome/browser/chrome_net_benchmarking_message_filter.h
deleted file mode 100644
index 269074fef14b0a401e21af13b28532975e10c9f9..0000000000000000000000000000000000000000
--- a/chrome/browser/chrome_net_benchmarking_message_filter.h
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2011 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_BROWSER_CHROME_NET_BENCHMARKING_MESSAGE_FILTER_H_
-#define CHROME_BROWSER_CHROME_NET_BENCHMARKING_MESSAGE_FILTER_H_
-
-#include "base/macros.h"
-#include "content/public/browser/browser_message_filter.h"
-
-namespace net {
-class URLRequestContextGetter;
-}
-
-class Profile;
-
-// This class filters out incoming Chrome-specific benchmarking IPC messages
-// for the renderer process on the IPC thread.
-class ChromeNetBenchmarkingMessageFilter
- : public content::BrowserMessageFilter {
- public:
- ChromeNetBenchmarkingMessageFilter(
- Profile* profile,
- net::URLRequestContextGetter* request_context);
-
- // content::BrowserMessageFilter methods:
- bool OnMessageReceived(const IPC::Message& message) override;
- void OverrideThreadForMessage(const IPC::Message& message,
- content::BrowserThread::ID* thread) override;
-
-
- private:
- ~ChromeNetBenchmarkingMessageFilter() override;
-
- // Message handlers.
- void OnCloseCurrentConnections();
- void OnClearCache(IPC::Message* reply_msg);
- void OnClearHostResolverCache();
- void OnSetCacheMode(bool enabled);
- void OnClearPredictorCache();
-
- // Returns true if benchmarking is enabled for chrome.
- bool CheckBenchmarkingEnabled() const;
-
- // The Profile associated with our renderer process. This should only be
- // accessed on the UI thread!
- // TODO(623967): Store the Predictor* here instead of the Profile.
- Profile* profile_;
- scoped_refptr<net::URLRequestContextGetter> request_context_;
-
- DISALLOW_COPY_AND_ASSIGN(ChromeNetBenchmarkingMessageFilter);
-};
-
-#endif // CHROME_BROWSER_CHROME_NET_BENCHMARKING_MESSAGE_FILTER_H_
-
« no previous file with comments | « chrome/browser/chrome_content_browser_manifest_overlay.json ('k') | chrome/browser/chrome_net_benchmarking_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698