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 #include "chrome/browser/download/download_danger_prompt.h" | 5 #include "chrome/browser/download/download_danger_prompt.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "chrome/browser/download/download_stats.h" | 8 #include "chrome/browser/download/download_stats.h" |
9 #include "chrome/browser/extensions/api/experience_sampling_private/experience_s
ampling.h" | 9 #include "chrome/browser/extensions/api/experience_sampling_private/experience_s
ampling.h" |
10 #include "chrome/grit/chromium_strings.h" | 10 #include "chrome/grit/chromium_strings.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 base::string16 GetCancelButtonTitle() const; | 67 base::string16 GetCancelButtonTitle() const; |
68 // The message lead is separated from the main text and is bolded. | 68 // The message lead is separated from the main text and is bolded. |
69 base::string16 GetMessageLead() const; | 69 base::string16 GetMessageLead() const; |
70 base::string16 GetMessageBody() const; | 70 base::string16 GetMessageBody() const; |
71 void RunDone(Action action); | 71 void RunDone(Action action); |
72 | 72 |
73 content::DownloadItem* download_; | 73 content::DownloadItem* download_; |
74 bool show_context_; | 74 bool show_context_; |
75 OnDone done_; | 75 OnDone done_; |
76 | 76 |
77 scoped_ptr<ExperienceSamplingEvent> sampling_event_; | 77 std::unique_ptr<ExperienceSamplingEvent> sampling_event_; |
78 | 78 |
79 views::View* contents_view_; | 79 views::View* contents_view_; |
80 }; | 80 }; |
81 | 81 |
82 DownloadDangerPromptViews::DownloadDangerPromptViews( | 82 DownloadDangerPromptViews::DownloadDangerPromptViews( |
83 content::DownloadItem* item, | 83 content::DownloadItem* item, |
84 bool show_context, | 84 bool show_context, |
85 const OnDone& done) | 85 const OnDone& done) |
86 : download_(item), | 86 : download_(item), |
87 show_context_(show_context), | 87 show_context_(show_context), |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 content::DownloadItem* item, | 349 content::DownloadItem* item, |
350 content::WebContents* web_contents, | 350 content::WebContents* web_contents, |
351 bool show_context, | 351 bool show_context, |
352 const OnDone& done) { | 352 const OnDone& done) { |
353 DownloadDangerPromptViews* download_danger_prompt = | 353 DownloadDangerPromptViews* download_danger_prompt = |
354 new DownloadDangerPromptViews(item, show_context, done); | 354 new DownloadDangerPromptViews(item, show_context, done); |
355 constrained_window::ShowWebModalDialogViews(download_danger_prompt, | 355 constrained_window::ShowWebModalDialogViews(download_danger_prompt, |
356 web_contents); | 356 web_contents); |
357 return download_danger_prompt; | 357 return download_danger_prompt; |
358 } | 358 } |
OLD | NEW |