OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PROTECTOR_COMPOSITE_SETTINGS_CHANGE_H_ | 5 #ifndef CHROME_BROWSER_PROTECTOR_COMPOSITE_SETTINGS_CHANGE_H_ |
6 #define CHROME_BROWSER_PROTECTOR_COMPOSITE_SETTINGS_CHANGE_H_ | 6 #define CHROME_BROWSER_PROTECTOR_COMPOSITE_SETTINGS_CHANGE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <queue> | 9 #include <queue> |
10 | 10 |
| 11 #include "base/compiler_specific.h" |
11 #include "base/memory/scoped_vector.h" | 12 #include "base/memory/scoped_vector.h" |
12 #include "chrome/browser/protector/base_setting_change.h" | 13 #include "chrome/browser/protector/base_setting_change.h" |
13 | 14 |
14 namespace protector { | 15 namespace protector { |
15 | 16 |
16 // Class for tracking multiple settings changes as a single change. | 17 // Class for tracking multiple settings changes as a single change. |
17 class CompositeSettingsChange : public BaseSettingChange { | 18 class CompositeSettingsChange : public BaseSettingChange { |
18 public: | 19 public: |
19 CompositeSettingsChange(); | 20 CompositeSettingsChange(); |
20 virtual ~CompositeSettingsChange(); | 21 virtual ~CompositeSettingsChange(); |
(...skipping 22 matching lines...) Expand all Loading... |
43 // Display names of merged changes, sorted by their priority. The name with | 44 // Display names of merged changes, sorted by their priority. The name with |
44 // the highest priority is picked. | 45 // the highest priority is picked. |
45 std::priority_queue<DisplayName> apply_names_; | 46 std::priority_queue<DisplayName> apply_names_; |
46 | 47 |
47 DISALLOW_COPY_AND_ASSIGN(CompositeSettingsChange); | 48 DISALLOW_COPY_AND_ASSIGN(CompositeSettingsChange); |
48 }; | 49 }; |
49 | 50 |
50 } // namespace protector | 51 } // namespace protector |
51 | 52 |
52 #endif // CHROME_BROWSER_PROTECTOR_COMPOSITE_SETTINGS_CHANGE_H_ | 53 #endif // CHROME_BROWSER_PROTECTOR_COMPOSITE_SETTINGS_CHANGE_H_ |
OLD | NEW |