| OLD | NEW | 
|   1 // Copyright 2013 The Chromium Authors. All rights reserved. |   1 // Copyright 2013 The Chromium Authors. All rights reserved. | 
|   2 // Use of this source code is governed by a BSD-style license that can be |   2 // Use of this source code is governed by a BSD-style license that can be | 
|   3 // found in the LICENSE file. |   3 // found in the LICENSE file. | 
|   4  |   4  | 
|   5 #ifndef COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_DUMP_MANAGER_ANDROID_H_ |   5 #ifndef COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_DUMP_MANAGER_ANDROID_H_ | 
|   6 #define COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_DUMP_MANAGER_ANDROID_H_ |   6 #define COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_DUMP_MANAGER_ANDROID_H_ | 
|   7  |   7  | 
|   8 #include <map> |   8 #include <map> | 
|   9  |   9  | 
|  10 #include "base/files/file_path.h" |  10 #include "base/files/file_path.h" | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
|  23 // This class creates these file descriptors and associates them with render |  23 // This class creates these file descriptors and associates them with render | 
|  24 // processes and takes the appropriate action when the render process |  24 // processes and takes the appropriate action when the render process | 
|  25 // terminates. |  25 // terminates. | 
|  26 class CrashDumpManager : public breakpad::CrashDumpObserver::Client { |  26 class CrashDumpManager : public breakpad::CrashDumpObserver::Client { | 
|  27  public: |  27  public: | 
|  28   CrashDumpManager(const base::FilePath& crash_dump_dir, int descriptor_id); |  28   CrashDumpManager(const base::FilePath& crash_dump_dir, int descriptor_id); | 
|  29   ~CrashDumpManager() override; |  29   ~CrashDumpManager() override; | 
|  30  |  30  | 
|  31   // breakpad::CrashDumpObserver::Client implementation: |  31   // breakpad::CrashDumpObserver::Client implementation: | 
|  32   void OnChildStart(int child_process_id, |  32   void OnChildStart(int child_process_id, | 
|  33                     content::FileDescriptorInfo* mappings) override; |  33                     content::PosixFileDescriptorInfo* mappings) override; | 
|  34   void OnChildExit(int child_process_id, |  34   void OnChildExit(int child_process_id, | 
|  35                    base::ProcessHandle pid, |  35                    base::ProcessHandle pid, | 
|  36                    content::ProcessType process_type, |  36                    content::ProcessType process_type, | 
|  37                    base::TerminationStatus termination_status, |  37                    base::TerminationStatus termination_status, | 
|  38                    base::android::ApplicationState app_state) override; |  38                    base::android::ApplicationState app_state) override; | 
|  39  |  39  | 
|  40  private: |  40  private: | 
|  41   typedef std::map<int, base::FilePath> ChildProcessIDToMinidumpPath; |  41   typedef std::map<int, base::FilePath> ChildProcessIDToMinidumpPath; | 
|  42  |  42  | 
|  43   // This enum is used to back a UMA histogram, and must be treated as |  43   // This enum is used to back a UMA histogram, and must be treated as | 
| (...skipping 26 matching lines...) Expand all  Loading... | 
|  70   // The id used to identify the file descriptor in the set of file |  70   // The id used to identify the file descriptor in the set of file | 
|  71   // descriptor mappings passed to the child process. |  71   // descriptor mappings passed to the child process. | 
|  72   int descriptor_id_; |  72   int descriptor_id_; | 
|  73  |  73  | 
|  74   DISALLOW_COPY_AND_ASSIGN(CrashDumpManager); |  74   DISALLOW_COPY_AND_ASSIGN(CrashDumpManager); | 
|  75 }; |  75 }; | 
|  76  |  76  | 
|  77 }  // namespace breakpad |  77 }  // namespace breakpad | 
|  78  |  78  | 
|  79 #endif  // COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_DUMP_MANAGER_ANDROID_H_ |  79 #endif  // COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_DUMP_MANAGER_ANDROID_H_ | 
| OLD | NEW |