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

Unified Diff: chrome/browser/trials/throttling_trial.h

Issue 7027040: Implement A/B experiment for anti-DDoS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 9 years, 6 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: chrome/browser/trials/throttling_trial.h
diff --git a/chrome/browser/trials/throttling_trial.h b/chrome/browser/trials/throttling_trial.h
new file mode 100644
index 0000000000000000000000000000000000000000..bbea7d4586f0ce022eb847b5144220f1f7ab60a9
--- /dev/null
+++ b/chrome/browser/trials/throttling_trial.h
@@ -0,0 +1,20 @@
+// 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_TRIALS_THROTTLING_TRIAL_H_
+#define CHROME_BROWSER_TRIALS_THROTTLING_TRIAL_H_
+#pragma once
+
+#include <string>
wtc 2011/06/10 22:31:00 Nit: no need to include <string> because this head
Jói 2011/06/13 17:27:14 Done.
+
+class PrefService;
+
+namespace throttling_trial {
wtc 2011/06/10 22:31:00 Nit: it seems better to name the namespace http_th
Jói 2011/06/13 17:27:14 I went with Jim's suggestion to remove the namespa
+
+// Creates the trial.
+void CreateTrial(PrefService* prefs);
jar (doing other things) 2011/06/12 06:49:12 This seems strange. You're declaring a namespace
Jói 2011/06/13 17:27:14 You're absolutely right, thanks for pointing this
+
+} // namespace throttling_trial
+
+#endif // CHROME_BROWSER_TRIALS_THROTTLING_TRIAL_H_

Powered by Google App Engine
This is Rietveld 408576698