OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SAFE_BROWSING_SRT_GLOBAL_ERROR_WIN_H_ | 5 #ifndef CHROME_BROWSER_SAFE_BROWSING_SRT_GLOBAL_ERROR_WIN_H_ |
6 #define CHROME_BROWSER_SAFE_BROWSING_SRT_GLOBAL_ERROR_WIN_H_ | 6 #define CHROME_BROWSER_SAFE_BROWSING_SRT_GLOBAL_ERROR_WIN_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "chrome/browser/ui/global_error/global_error.h" | 12 #include "chrome/browser/ui/global_error/global_error.h" |
13 | 13 |
14 class GlobalErrorService; | 14 class GlobalErrorService; |
15 | 15 |
| 16 namespace safe_browsing { |
| 17 |
16 // Encapsulates UI-related functionality for the software removal tool (SRT) | 18 // Encapsulates UI-related functionality for the software removal tool (SRT) |
17 // prompt. The UI consists of two parts: (1.) the profile reset (pop-up) bubble, | 19 // prompt. The UI consists of two parts: (1.) the profile reset (pop-up) bubble, |
18 // and (2.) a menu item in the wrench menu (provided by being a GlobalError). | 20 // and (2.) a menu item in the wrench menu (provided by being a GlobalError). |
19 class SRTGlobalError : public GlobalErrorWithStandardBubble { | 21 class SRTGlobalError : public GlobalErrorWithStandardBubble { |
20 public: | 22 public: |
21 // Creates the new SRTGlobalError to be associated to the given | 23 // Creates the new SRTGlobalError to be associated to the given |
22 // |global_error_service|. |download_path| specifies the path the SRT has | 24 // |global_error_service|. |download_path| specifies the path the SRT has |
23 // already been downloaded to. If for some reason the SRT cannot be found at | 25 // already been downloaded to. If for some reason the SRT cannot be found at |
24 // this path, if the path is empty or if the SRT cannot be launched, the | 26 // this path, if the path is empty or if the SRT cannot be launched, the |
25 // bubble will fall back to opening the SRT download page if the user requests | 27 // bubble will fall back to opening the SRT download page if the user requests |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 70 |
69 // Identifies whether the Dismiss button should be shown or not. | 71 // Identifies whether the Dismiss button should be shown or not. |
70 bool show_dismiss_button_ = false; | 72 bool show_dismiss_button_ = false; |
71 | 73 |
72 // Identifies whether the user interacted with the bubble buttons or not. | 74 // Identifies whether the user interacted with the bubble buttons or not. |
73 bool interacted_ = false; | 75 bool interacted_ = false; |
74 | 76 |
75 DISALLOW_COPY_AND_ASSIGN(SRTGlobalError); | 77 DISALLOW_COPY_AND_ASSIGN(SRTGlobalError); |
76 }; | 78 }; |
77 | 79 |
| 80 } // namespace safe_browsing |
| 81 |
78 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_GLOBAL_ERROR_WIN_H_ | 82 #endif // CHROME_BROWSER_SAFE_BROWSING_SRT_GLOBAL_ERROR_WIN_H_ |
OLD | NEW |