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

Unified Diff: chrome/common/chrome_net_benchmarking.mojom

Issue 2521823008: Migrate chrome_net_benchmarking_message_filter to mojo (Closed)
Patch Set: change ClearPredictorCache to run on UI thread via PostTask 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/common/chrome_net_benchmarking.mojom
diff --git a/chrome/common/chrome_net_benchmarking.mojom b/chrome/common/chrome_net_benchmarking.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..a61453c92e556b87341daadfe2d8089ad246c8bc
--- /dev/null
+++ b/chrome/common/chrome_net_benchmarking.mojom
@@ -0,0 +1,28 @@
+// Copyright 2016 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.
+
+module chrome.mojom;
+
+interface ChromeNetBenchmarking {
Sam McNally 2016/12/05 06:57:10 Let's call this NetBenchmarking instead.
dvallet 2016/12/07 02:21:02 Done
+ // Message sent from the renderer to the browser to request that the browser
+ // close all sockets. Used for debugging/testing.
+ CloseCurrentConnections();
Sam McNally 2016/12/05 06:57:10 These messages should [Sync].
dvallet 2016/12/07 02:21:02 Done. What's your reasoning for this having to be
Sam McNally 2016/12/08 22:57:46 The messages they replace were declared with IPC_S
dvallet 2016/12/12 22:04:37 Done
+
+ // Message sent from the renderer to the browser to request that the browser
+ // enable or disable the cache. Used for debugging/testing.
+ SetCacheMode(bool enabled);
Sam McNally 2016/12/05 06:57:09 This doesn't appear to be used. I think we can del
dvallet 2016/12/07 02:21:02 Done
+
+ // Message sent from the renderer to the browser to request that the browser
+ // clear the cache. Used for debugging/testing.
+ // |result| is the returned status from the operation.
+ ClearCache() => (int32 result);
+
+ // Message sent from the renderer to the browser to request that the browser
+ // clear the host cache. Used for debugging/testing.
+ ClearHostResolverCache();
+
+ // Message sent from the renderer to the browser to request that the browser
+ // clear the predictor cache. Used for debugging/testing.
+ ClearPredictorCache();
+};

Powered by Google App Engine
This is Rietveld 408576698