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

Unified Diff: chrome/browser/net/websocket_experiment/websocket_experiment_runner.h

Issue 7567001: WebSocket: Remove obsolete experiments related files (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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: chrome/browser/net/websocket_experiment/websocket_experiment_runner.h
diff --git a/chrome/browser/net/websocket_experiment/websocket_experiment_runner.h b/chrome/browser/net/websocket_experiment/websocket_experiment_runner.h
deleted file mode 100644
index 651bec69636b43ef7eb7ff281b56fd9ceaef6af9..0000000000000000000000000000000000000000
--- a/chrome/browser/net/websocket_experiment/websocket_experiment_runner.h
+++ /dev/null
@@ -1,78 +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.
-//
-// Run WebSocket live experiment to collect metrics about WebSocket
-// availability in the real Internet.
-// It tries to open WebSocket connection to websocket-experiment.chromium.org,
-// send/receive some static content over the connection, and see how it works
-// well.
-// It must be started only if the user permits metrics reporting with the
-// checkbox in the prefs.
-// For more detail what the experiment is, see websocket_experiment_task.h.
-
-#ifndef CHROME_BROWSER_NET_WEBSOCKET_EXPERIMENT_WEBSOCKET_EXPERIMENT_RUNNER_H_
-#define CHROME_BROWSER_NET_WEBSOCKET_EXPERIMENT_WEBSOCKET_EXPERIMENT_RUNNER_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "base/memory/linked_ptr.h"
-#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/net/websocket_experiment/websocket_experiment_task.h"
-#include "net/base/completion_callback.h"
-
-namespace chrome_browser_net_websocket_experiment {
-
-class WebSocketExperimentRunner
- : public base::RefCountedThreadSafe<WebSocketExperimentRunner> {
- public:
- class Config {
- public:
- Config()
- : initial_delay_ms(0),
- next_delay_ms(0) {}
-
- int64 initial_delay_ms;
- int64 next_delay_ms;
- WebSocketExperimentTask::Config ws_config[6];
- };
- static void Start();
- static void Stop();
-
- void Run();
- void Cancel();
-
- private:
- enum State {
- STATE_NONE,
- STATE_IDLE,
- STATE_RUN_WS,
- STATE_RUN_WSS,
- STATE_RUN_WS_NODEFAULT_PORT,
- STATE_RUN_WS_DRAFT75,
- STATE_RUN_WSS_DRAFT75,
- STATE_RUN_WS_NODEFAULT_PORT_DRAFT75,
- NUM_STATES,
- };
- WebSocketExperimentRunner();
- virtual ~WebSocketExperimentRunner();
- friend class base::RefCountedThreadSafe<WebSocketExperimentRunner>;
-
- void InitConfig();
- void DoLoop();
- void OnTaskCompleted(int result);
- void UpdateTaskResultHistogram(const WebSocketExperimentTask* task);
-
- Config config_;
- State next_state_;
- State task_state_;
- scoped_ptr<WebSocketExperimentTask> task_;
- net::CompletionCallbackImpl<WebSocketExperimentRunner> task_callback_;
-
- DISALLOW_COPY_AND_ASSIGN(WebSocketExperimentRunner);
-};
-
-} // namespace chrome_browser_net_websocket_experiment
-
-#endif // CHROME_BROWSER_NET_WEBSOCKET_EXPERIMENT_WEBSOCKET_EXPERIMENT_RUNNER_H_
« no previous file with comments | « chrome/browser/net/websocket_experiment/OWNERS ('k') | chrome/browser/net/websocket_experiment/websocket_experiment_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698