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

Unified Diff: content/browser/tcmalloc_internals_request_job.h

Issue 1468993003: [Eraser] Remove chrome://tcmalloc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address primiano comment, remove declaration from gpu_child_thread Created 5 years, 1 month 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
« no previous file with comments | « content/browser/profiler_message_filter.cc ('k') | content/browser/tcmalloc_internals_request_job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/tcmalloc_internals_request_job.h
diff --git a/content/browser/tcmalloc_internals_request_job.h b/content/browser/tcmalloc_internals_request_job.h
deleted file mode 100644
index 2d57a10d636d99402cb56b9e86a457673d02eccc..0000000000000000000000000000000000000000
--- a/content/browser/tcmalloc_internals_request_job.h
+++ /dev/null
@@ -1,67 +0,0 @@
-// Copyright (c) 2012 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 CONTENT_BROWSER_TCMALLOC_INTERNALS_REQUEST_JOB_H_
-#define CONTENT_BROWSER_TCMALLOC_INTERNALS_REQUEST_JOB_H_
-
-#include <map>
-#include "base/basictypes.h"
-#include "base/memory/singleton.h"
-#include "base/process/process.h"
-#include "build/build_config.h" // USE_TCMALLOC
-#include "net/url_request/url_request_simple_job.h"
-
-namespace content {
-
-class AboutTcmallocOutputs {
- public:
- // Returns the singleton instance.
- static AboutTcmallocOutputs* GetInstance();
-
- // Records the output for a specified header string.
- void SetOutput(const std::string& header, const std::string& output);
-
- void DumpToHTMLTable(std::string* data);
-
- // Callback for output returned from a child process. Adds
- // the output for a canonical process-specific header string that
- // incorporates the pid.
- void OnStatsForChildProcess(base::ProcessId pid,
- int process_type,
- const std::string& output);
-
- private:
- AboutTcmallocOutputs();
- ~AboutTcmallocOutputs();
-
- // A map of header strings (e.g. "Browser", "Renderer PID 123")
- // to the tcmalloc output collected for each process.
- typedef std::map<std::string, std::string> AboutTcmallocOutputsType;
- AboutTcmallocOutputsType outputs_;
-
- friend struct base::DefaultSingletonTraits<AboutTcmallocOutputs>;
-
- DISALLOW_COPY_AND_ASSIGN(AboutTcmallocOutputs);
-};
-
-class TcmallocInternalsRequestJob : public net::URLRequestSimpleJob {
- public:
- TcmallocInternalsRequestJob(net::URLRequest* request,
- net::NetworkDelegate* network_delegate);
-
- int GetData(std::string* mime_type,
- std::string* charset,
- std::string* data,
- const net::CompletionCallback& callback) const override;
-
- protected:
- ~TcmallocInternalsRequestJob() override {}
-
- private:
- DISALLOW_IMPLICIT_CONSTRUCTORS(TcmallocInternalsRequestJob);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_TCMALLOC_INTERNALS_REQUEST_JOB_H_
« no previous file with comments | « content/browser/profiler_message_filter.cc ('k') | content/browser/tcmalloc_internals_request_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698