Home | History | Annotate | Download | only in browser
      1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_CRASH_UPLOAD_LIST_H_
      6 #define CHROME_BROWSER_CRASH_UPLOAD_LIST_H_
      7 
      8 #include "chrome/browser/upload_list.h"
      9 
     10 // An upload list manager for crash reports from breakpad.
     11 class CrashUploadList : public UploadList {
     12  public:
     13   // Static factory method that creates the platform-specific implementation
     14   // of the crash upload list with the given callback delegate.
     15   static CrashUploadList* Create(Delegate* delegate);
     16 
     17   // Should match kReporterLogFilename in
     18   // breakpad/src/client/apple/Framework/BreakpadDefines.h.
     19   static const char* kReporterLogFilename;
     20 
     21   // Creates a new crash upload list with the given callback delegate.
     22   CrashUploadList(Delegate* delegate, const base::FilePath& upload_log_path);
     23 
     24  protected:
     25   virtual ~CrashUploadList();
     26 
     27  private:
     28   DISALLOW_COPY_AND_ASSIGN(CrashUploadList);
     29 };
     30 
     31 #endif  // CHROME_BROWSER_CRASH_UPLOAD_LIST_H_
     32