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

Side by Side Diff: ash/shelf/scoped_observer_with_duplicated_sources.h

Issue 23534023: ash: Minor cleanup, move more files from launcher to shelf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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
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 #ifndef ASH_LAUNCHER_SCOPED_OBSERVER_WITH_DUPLICATED_SOURCES_H_ 5 #ifndef ASH_SHELF_SCOPED_OBSERVER_WITH_DUPLICATED_SOURCES_H_
6 #define ASH_LAUNCHER_SCOPED_OBSERVER_WITH_DUPLICATED_SOURCES_H_ 6 #define ASH_SHELF_SCOPED_OBSERVER_WITH_DUPLICATED_SOURCES_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 12
13 // ScopedObserverWithDuplicatedSources is used to keep track of the set of 13 // ScopedObserverWithDuplicatedSources is used to keep track of the set of
14 // sources an object has attached itself to as an observer. When 14 // sources an object has attached itself to as an observer. When
15 // ScopedObserverWithDuplicatedSources is destroyed it removes the object as an 15 // ScopedObserverWithDuplicatedSources is destroyed it removes the object as an
16 // observer from all sources it has been added to. 16 // observer from all sources it has been added to.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 typedef std::map<Source*, int> SourceToAddCountMap; 60 typedef std::map<Source*, int> SourceToAddCountMap;
61 61
62 Observer* observer_; 62 Observer* observer_;
63 63
64 // Map Source and its adding count. 64 // Map Source and its adding count.
65 std::map<Source*, int> counted_sources_; 65 std::map<Source*, int> counted_sources_;
66 66
67 DISALLOW_COPY_AND_ASSIGN(ScopedObserverWithDuplicatedSources); 67 DISALLOW_COPY_AND_ASSIGN(ScopedObserverWithDuplicatedSources);
68 }; 68 };
69 69
70 #endif // ASH_LAUNCHER_SCOPED_OBSERVER_WITH_DUPLICATED_SOURCES_H_ 70 #endif // ASH_SHELF_SCOPED_OBSERVER_WITH_DUPLICATED_SOURCES_H_
OLDNEW
« no previous file with comments | « ash/shelf/overflow_button.cc ('k') | ash/shelf/scoped_observer_with_duplicated_sources_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698