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

Side by Side Diff: chrome/browser/bug_report_data.h

Issue 7324017: Split SystemAccess into TimezoneSettings, StatisticsProvider, and SyslogsProvider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/bug_report_data.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_BUG_REPORT_DATA_H_ 5 #ifndef CHROME_BROWSER_BUG_REPORT_DATA_H_
6 #define CHROME_BROWSER_BUG_REPORT_DATA_H_ 6 #define CHROME_BROWSER_BUG_REPORT_DATA_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/bug_report_util.h" 12 #include "chrome/browser/bug_report_util.h"
13 13
14 #if defined(OS_CHROMEOS) 14 #if defined(OS_CHROMEOS)
15 #include "chrome/browser/chromeos/system_access.h" 15 #include "chrome/browser/chromeos/system/syslogs_provider.h"
16 #endif 16 #endif
17 17
18 class BugReportData { 18 class BugReportData {
19 public: 19 public:
20 // Make sure we initialize these flags to false since SyslogsComplete 20 // Make sure we initialize these flags to false since SyslogsComplete
21 // may be triggered before we've called update data; in which case, 21 // may be triggered before we've called update data; in which case,
22 // we do not want it to just delete the logs it just gathered, and we 22 // we do not want it to just delete the logs it just gathered, and we
23 // don't want it to send the report either - this will make sure that if 23 // don't want it to send the report either - this will make sure that if
24 // SyslogsComplete gets called before UpdateData, we'll simply populate the 24 // SyslogsComplete gets called before UpdateData, we'll simply populate the
25 // sys_info and zip_content fields and exit without disturbing anything else 25 // sys_info and zip_content fields and exit without disturbing anything else
(...skipping 10 matching lines...) Expand all
36 const std::string& description, 36 const std::string& description,
37 const std::vector<unsigned char>& image 37 const std::vector<unsigned char>& image
38 #if defined(OS_CHROMEOS) 38 #if defined(OS_CHROMEOS)
39 , const std::string& user_email 39 , const std::string& user_email
40 , const bool send_sys_info 40 , const bool send_sys_info
41 , const bool sent_report 41 , const bool sent_report
42 #endif 42 #endif
43 ); 43 );
44 44
45 #if defined(OS_CHROMEOS) 45 #if defined(OS_CHROMEOS)
46 void SyslogsComplete(chromeos::LogDictionaryType* logs, 46 void SyslogsComplete(chromeos::system::LogDictionaryType* logs,
47 std::string* zip_content); 47 std::string* zip_content);
48 #endif 48 #endif
49 49
50 const std::string& target_tab_url() const { return target_tab_url_; } 50 const std::string& target_tab_url() const { return target_tab_url_; }
51 51
52 int problem_type() const { return problem_type_; } 52 int problem_type() const { return problem_type_; }
53 const std::string& page_url() const { return page_url_; } 53 const std::string& page_url() const { return page_url_; }
54 const std::string& description() const { return description_; } 54 const std::string& description() const { return description_; }
55 const std::vector<unsigned char>& image() const { return image_; } 55 const std::vector<unsigned char>& image() const { return image_; }
56 #if defined(OS_CHROMEOS) 56 #if defined(OS_CHROMEOS)
57 const std::string& user_email() const { return user_email_; } 57 const std::string& user_email() const { return user_email_; }
58 chromeos::LogDictionaryType* sys_info() const { return sys_info_; } 58 chromeos::system::LogDictionaryType* sys_info() const { return sys_info_; }
59 bool send_sys_info() const { return send_sys_info_; } 59 bool send_sys_info() const { return send_sys_info_; }
60 bool sent_report() const { return sent_report_; } 60 bool sent_report() const { return sent_report_; }
61 std::string* zip_content() const { return zip_content_; } 61 std::string* zip_content() const { return zip_content_; }
62 #endif 62 #endif
63 63
64 64
65 private: 65 private:
66 Profile* profile_; 66 Profile* profile_;
67 67
68 // Target tab url. 68 // Target tab url.
69 std::string target_tab_url_; 69 std::string target_tab_url_;
70 70
71 int problem_type_; 71 int problem_type_;
72 std::string page_url_; 72 std::string page_url_;
73 std::string description_; 73 std::string description_;
74 std::vector<unsigned char> image_; 74 std::vector<unsigned char> image_;
75 75
76 #if defined(OS_CHROMEOS) 76 #if defined(OS_CHROMEOS)
77 // Chromeos specific values for SendReport. 77 // Chromeos specific values for SendReport.
78 std::string user_email_; 78 std::string user_email_;
79 chromeos::LogDictionaryType* sys_info_; 79 chromeos::system::LogDictionaryType* sys_info_;
80 // Content of the compressed system logs. 80 // Content of the compressed system logs.
81 std::string* zip_content_; 81 std::string* zip_content_;
82 // NOTE: Extra boolean sent_report_ is required because callback may 82 // NOTE: Extra boolean sent_report_ is required because callback may
83 // occur before or after we call SendReport(). 83 // occur before or after we call SendReport().
84 bool sent_report_; 84 bool sent_report_;
85 // Flag to indicate to SyslogsComplete that it should send the report 85 // Flag to indicate to SyslogsComplete that it should send the report
86 bool send_sys_info_; 86 bool send_sys_info_;
87 #endif 87 #endif
88 }; 88 };
89 89
90 #endif // CHROME_BROWSER_BUG_REPORT_DATA_H_ 90 #endif // CHROME_BROWSER_BUG_REPORT_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/bug_report_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698