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

Side by Side Diff: chrome/browser/extensions/app_notification_manager.h

Issue 10391034: Scaffolding for an experimental discovery API letting users inject links in the recommended pane of… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Answered review comments from PatchSet 4. Created 8 years, 7 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 (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_EXTENSIONS_APP_NOTIFICATION_MANAGER_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_APP_NOTIFICATION_MANAGER_H_
6 #define CHROME_BROWSER_EXTENSIONS_APP_NOTIFICATION_MANAGER_H_ 6 #define CHROME_BROWSER_EXTENSIONS_APP_NOTIFICATION_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Called on the UI thread to handle the loaded results from storage_. 119 // Called on the UI thread to handle the loaded results from storage_.
120 void HandleLoadResults(NotificationMap* map); 120 void HandleLoadResults(NotificationMap* map);
121 121
122 // Saves the contents of |list| to storage. 122 // Saves the contents of |list| to storage.
123 // Ownership of |list| is transferred here. 123 // Ownership of |list| is transferred here.
124 void SaveOnFileThread(const std::string& extension_id, 124 void SaveOnFileThread(const std::string& extension_id,
125 AppNotificationList* list); 125 AppNotificationList* list);
126 126
127 void DeleteOnFileThread(const std::string& extension_id); 127 void DeleteOnFileThread(const std::string& extension_id);
128 128
129 // Gets notficiations for a given extension id. 129 // Gets notifications for a given extension id.
130 AppNotificationList& GetAllInternal(const std::string& extension_id); 130 AppNotificationList& GetAllInternal(const std::string& extension_id);
131 131
132 // Removes the notification with given extension id and given guid. 132 // Removes the notification with given extension id and given guid.
133 void Remove(const std::string& extension_id, const std::string& guid); 133 void Remove(const std::string& extension_id, const std::string& guid);
134 134
135 // Returns the notification for the given |extension_id| and |guid|, 135 // Returns the notification for the given |extension_id| and |guid|,
136 // NULL if no such notification exists. 136 // NULL if no such notification exists.
137 const AppNotification* GetNotification(const std::string& extension_id, 137 const AppNotification* GetNotification(const std::string& extension_id,
138 const std::string& guid); 138 const std::string& guid);
139 139
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // Whether syncer changes are being processed right now. 171 // Whether syncer changes are being processed right now.
172 bool processing_syncer_changes_; 172 bool processing_syncer_changes_;
173 173
174 // Used for a histogram of load time. 174 // Used for a histogram of load time.
175 scoped_ptr<PerfTimer> load_timer_; 175 scoped_ptr<PerfTimer> load_timer_;
176 176
177 DISALLOW_COPY_AND_ASSIGN(AppNotificationManager); 177 DISALLOW_COPY_AND_ASSIGN(AppNotificationManager);
178 }; 178 };
179 179
180 #endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFICATION_MANAGER_H_ 180 #endif // CHROME_BROWSER_EXTENSIONS_APP_NOTIFICATION_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698