Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(175)

Side by Side Diff: chrome/browser/protector/composite_settings_change.h

Issue 9968007: [protector] Support for collapsing multiple changes into a single one. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tried to compile after merge. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_PROTECTOR_COMPOSITE_SETTINGS_CHANGE_H_
6 #define CHROME_BROWSER_PROTECTOR_COMPOSITE_SETTINGS_CHANGE_H_
7 #pragma once
8
9 #include <queue>
10
11 #include "base/memory/scoped_vector.h"
12 #include "chrome/browser/protector/base_setting_change.h"
13
14 namespace protector {
15
16 class CompositeSettingsChange : public BaseSettingChange {
whywhat 2012/04/06 16:28:32 Comment about the class?
Ivan Korotkov 2012/04/09 14:46:47 Done.
17 public:
18 CompositeSettingsChange();
19 virtual ~CompositeSettingsChange();
20
21 // BaseSettingChange overrides:
22 virtual CompositeSettingsChange* MergeWith(BaseSettingChange* other) OVERRIDE;
23 virtual bool Contains(const BaseSettingChange* other) const OVERRIDE;
24 virtual void Apply(Browser* browser) OVERRIDE;
25 virtual void Discard(Browser* browser) OVERRIDE;
26 virtual void Timeout() OVERRIDE;
27 virtual int GetBadgeIconID() const OVERRIDE;
28 virtual int GetMenuItemIconID() const OVERRIDE;
29 virtual int GetBubbleIconID() const OVERRIDE;
30 virtual string16 GetBubbleTitle() const OVERRIDE;
31 virtual string16 GetBubbleMessage() const OVERRIDE;
32 virtual string16 GetApplyButtonText() const OVERRIDE;
33 virtual string16 GetDiscardButtonText() const OVERRIDE;
34 virtual DisplayName GetApplyDisplayName() const OVERRIDE;
35 virtual std::string GetApplyKeyword() const OVERRIDE;
36
37 private:
38 ScopedVector<BaseSettingChange> changes_;
whywhat 2012/04/06 16:28:32 Member comments, please.
Ivan Korotkov 2012/04/09 14:46:47 Done.
39 std::priority_queue<DisplayName> apply_names_;
40
41 DISALLOW_COPY_AND_ASSIGN(CompositeSettingsChange);
42 };
43
44 } // namespace protector
45
46 #endif // CHROME_BROWSER_PROTECTOR_COMPOSITE_SETTINGS_CHANGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698