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