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

Unified Diff: content/common/handle_enumerator_win.h

Issue 7888024: Move handle dumpage to the renderer process (so that it works correctly) and factor out redundant... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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
« no previous file with comments | « content/common/content_switches.cc ('k') | content/common/handle_enumerator_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/handle_enumerator_win.h
===================================================================
--- content/common/handle_enumerator_win.h (revision 101774)
+++ content/common/handle_enumerator_win.h (working copy)
@@ -2,12 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_BROWSER_HANDLE_ENUMERATOR_WIN_H_
-#define CONTENT_BROWSER_HANDLE_ENUMERATOR_WIN_H_
+#ifndef CONTENT_COMMON_HANDLE_ENUMERATOR_WIN_H_
+#define CONTENT_COMMON_HANDLE_ENUMERATOR_WIN_H_
#include "base/memory/ref_counted.h"
#include "base/process.h"
-#include "content/common/child_process_info.h"
+#include "base/string16.h"
namespace content {
@@ -33,42 +33,16 @@
static HandleType StringToHandleType(const string16& type);
-static string16 ProcessTypeString(ChildProcessInfo::ProcessType process_type);
-
static string16 GetAccessString(HandleType handle_type, ACCESS_MASK access);
class HandleEnumerator : public base::RefCountedThreadSafe<HandleEnumerator> {
public:
- enum HandleEnumStatus {
- Starting,
- InProgress,
- Finished
- };
-
- HandleEnumerator(base::ProcessHandle handle, bool all_handles):
- handle_(handle),
- type_(ChildProcessInfo::UNKNOWN_PROCESS),
- status_(Starting),
+ explicit HandleEnumerator(bool all_handles):
all_handles_(all_handles) { }
- ChildProcessInfo::ProcessType type() const { return type_; }
-
- HandleEnumStatus status() const { return status_; }
-
- void RunHandleEnumeration();
-
void EnumerateHandles();
private:
- void FindProcessOnIOThread();
-
- void FindProcessOnUIThread();
-
- void EnumerateHandlesAndTerminateProcess();
-
- base::ProcessHandle handle_;
- ChildProcessInfo::ProcessType type_;
- HandleEnumStatus status_;
bool all_handles_;
DISALLOW_COPY_AND_ASSIGN(HandleEnumerator);
@@ -76,4 +50,5 @@
} // namespace content
-#endif // CONTENT_BROWSER_HANDLE_ENUMERATOR_WIN_H_
+#endif // CONTENT_COMMON_HANDLE_ENUMERATOR_WIN_H_
+
« no previous file with comments | « content/common/content_switches.cc ('k') | content/common/handle_enumerator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698