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

Unified Diff: chrome/browser/bug_report_data.h

Issue 9006003: Refactor and fix feedback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra include. Created 9 years 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/bug_report_data.h
diff --git a/chrome/browser/bug_report_data.h b/chrome/browser/bug_report_data.h
deleted file mode 100644
index 2b404b2a32ec8773842f04a8d3c02f2cc204977c..0000000000000000000000000000000000000000
--- a/chrome/browser/bug_report_data.h
+++ /dev/null
@@ -1,85 +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.
-
-#ifndef CHROME_BROWSER_BUG_REPORT_DATA_H_
-#define CHROME_BROWSER_BUG_REPORT_DATA_H_
-
-#include <string>
-#include <vector>
-
-#include "base/utf_string_conversions.h"
-#include "chrome/browser/ui/webui/screenshot_source.h"
-
-#if defined(OS_CHROMEOS)
-#include "chrome/browser/chromeos/system/syslogs_provider.h"
-#endif
-
-class Profile;
-
-class BugReportData {
- public:
- BugReportData();
- ~BugReportData();
-
- void SendReport();
-
- void UpdateData(Profile* profile,
- const std::string& target_tab_url,
- const int problem_type,
- const std::string& page_url,
- const std::string& description,
- ScreenshotDataPtr image
-#if defined(OS_CHROMEOS)
- , const std::string& user_email
- , const bool send_sys_info
- , const bool sent_report
-#endif
- );
-
-#if defined(OS_CHROMEOS)
- void SyslogsComplete(chromeos::system::LogDictionaryType* logs,
- std::string* zip_content);
-#endif
-
- const std::string& target_tab_url() const { return target_tab_url_; }
-
- int problem_type() const { return problem_type_; }
- const std::string& page_url() const { return page_url_; }
- const std::string& description() const { return description_; }
- ScreenshotDataPtr image() const { return image_; }
-#if defined(OS_CHROMEOS)
- const std::string& user_email() const { return user_email_; }
- chromeos::system::LogDictionaryType* sys_info() const { return sys_info_; }
- bool send_sys_info() const { return send_sys_info_; }
- bool sent_report() const { return sent_report_; }
- std::string* zip_content() const { return zip_content_; }
-#endif
-
-
- private:
- Profile* profile_;
-
- // Target tab url.
- std::string target_tab_url_;
-
- int problem_type_;
- std::string page_url_;
- std::string description_;
- ScreenshotDataPtr image_;
-
-#if defined(OS_CHROMEOS)
- // Chromeos specific values for SendReport.
- std::string user_email_;
- chromeos::system::LogDictionaryType* sys_info_;
- // Content of the compressed system logs.
- std::string* zip_content_;
- // NOTE: Extra boolean sent_report_ is required because callback may
- // occur before or after we call SendReport().
- bool sent_report_;
- // Flag to indicate to SyslogsComplete that it should send the report
- bool send_sys_info_;
-#endif
-};
-
-#endif // CHROME_BROWSER_BUG_REPORT_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698