| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_MEDIA_ROUTER_ISSUE_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_ISSUE_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_ISSUE_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_ISSUE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // |help_url|: Required if one of the actions is learn-more. | 53 // |help_url|: Required if one of the actions is learn-more. |
| 54 Issue(const std::string& title, | 54 Issue(const std::string& title, |
| 55 const std::string& message, | 55 const std::string& message, |
| 56 const IssueAction& default_action, | 56 const IssueAction& default_action, |
| 57 const std::vector<IssueAction>& secondary_actions, | 57 const std::vector<IssueAction>& secondary_actions, |
| 58 const MediaRoute::Id& route_id, | 58 const MediaRoute::Id& route_id, |
| 59 const Severity severity, | 59 const Severity severity, |
| 60 bool is_blocking, | 60 bool is_blocking, |
| 61 const std::string& helpUrl); | 61 const std::string& helpUrl); |
| 62 | 62 |
| 63 Issue(const Issue& other); |
| 64 |
| 63 ~Issue(); | 65 ~Issue(); |
| 64 | 66 |
| 65 // See constructor comments for more information about these fields. | 67 // See constructor comments for more information about these fields. |
| 66 const std::string& title() const { return title_; } | 68 const std::string& title() const { return title_; } |
| 67 const std::string& message() const { return message_; } | 69 const std::string& message() const { return message_; } |
| 68 IssueAction default_action() const { return default_action_; } | 70 IssueAction default_action() const { return default_action_; } |
| 69 const std::vector<IssueAction>& secondary_actions() const { | 71 const std::vector<IssueAction>& secondary_actions() const { |
| 70 return secondary_actions_; | 72 return secondary_actions_; |
| 71 } | 73 } |
| 72 MediaRoute::Id route_id() const { return route_id_; } | 74 MediaRoute::Id route_id() const { return route_id_; } |
| (...skipping 13 matching lines...) Expand all Loading... |
| 86 std::string route_id_; | 88 std::string route_id_; |
| 87 Severity severity_; | 89 Severity severity_; |
| 88 Issue::Id id_; | 90 Issue::Id id_; |
| 89 bool is_blocking_; | 91 bool is_blocking_; |
| 90 GURL help_url_; | 92 GURL help_url_; |
| 91 }; | 93 }; |
| 92 | 94 |
| 93 } // namespace media_router | 95 } // namespace media_router |
| 94 | 96 |
| 95 #endif // CHROME_BROWSER_MEDIA_ROUTER_ISSUE_H_ | 97 #endif // CHROME_BROWSER_MEDIA_ROUTER_ISSUE_H_ |
| OLD | NEW |