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

Side by Side Diff: chrome/browser/background_application_list_model.h

Issue 6525056: Add unit tests for BackgroundApplicationListModel (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: one more round of CR Created 9 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/background_application_list_model_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_BACKGROUND_APPLICATION_LIST_MODEL_H_ 5 #ifndef CHROME_BROWSER_BACKGROUND_APPLICATION_LIST_MODEL_H_
6 #define CHROME_BROWSER_BACKGROUND_APPLICATION_LIST_MODEL_H_ 6 #define CHROME_BROWSER_BACKGROUND_APPLICATION_LIST_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // Notifies observers that at least one background application has been added 115 // Notifies observers that at least one background application has been added
116 // or removed. 116 // or removed.
117 void OnApplicationListChanged(); 117 void OnApplicationListChanged();
118 118
119 // Invoked by Observe for EXTENSION_LOADED notifications. 119 // Invoked by Observe for EXTENSION_LOADED notifications.
120 void OnExtensionLoaded(Extension* extension); 120 void OnExtensionLoaded(Extension* extension);
121 121
122 // Invoked by Observe for EXTENSION_UNLOADED notifications. 122 // Invoked by Observe for EXTENSION_UNLOADED notifications.
123 void OnExtensionUnloaded(const Extension* extension); 123 void OnExtensionUnloaded(const Extension* extension);
124 124
125 // Refresh the list of background applications and generates ApplicationAdded 125 // Refresh the list of background applications and generate notifications.
126 // and ApplicationRemoved events.
127 void Update(); 126 void Update();
128 127
129 ApplicationMap applications_; 128 ApplicationMap applications_;
130 ExtensionList extensions_; 129 ExtensionList extensions_;
131 ObserverList<Observer> observers_; 130 ObserverList<Observer> observers_;
132 Profile* profile_; 131 Profile* profile_;
133 NotificationRegistrar registrar_; 132 NotificationRegistrar registrar_;
134 133
135 DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel); 134 DISALLOW_COPY_AND_ASSIGN(BackgroundApplicationListModel);
136 }; 135 };
137 136
138 #endif // CHROME_BROWSER_BACKGROUND_APPLICATION_LIST_MODEL_H_ 137 #endif // CHROME_BROWSER_BACKGROUND_APPLICATION_LIST_MODEL_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/background_application_list_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698