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

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

Issue 5685007: Rename all methods accessing Singleton<T> as GetInstance(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 10 years 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) 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_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <list> 9 #include <list>
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 12
13 #include "base/singleton.h" 13 #include "base/singleton.h"
14 #include "chrome/browser/bookmarks/bookmark_model_observer.h" 14 #include "chrome/browser/bookmarks/bookmark_model_observer.h"
15 #include "chrome/browser/extensions/extension_function.h" 15 #include "chrome/browser/extensions/extension_function.h"
16 #include "chrome/browser/shell_dialogs.h" 16 #include "chrome/browser/shell_dialogs.h"
17 #include "chrome/common/notification_observer.h" 17 #include "chrome/common/notification_observer.h"
18 #include "chrome/common/notification_registrar.h" 18 #include "chrome/common/notification_registrar.h"
19 19
20 // Observes BookmarkModel and then routes the notifications as events to 20 // Observes BookmarkModel and then routes the notifications as events to
21 // the extension system. 21 // the extension system.
22 class ExtensionBookmarkEventRouter : public BookmarkModelObserver { 22 class ExtensionBookmarkEventRouter : public BookmarkModelObserver {
23 public: 23 public:
24 static ExtensionBookmarkEventRouter* GetSingleton(); 24 static ExtensionBookmarkEventRouter* GetInstance();
25 virtual ~ExtensionBookmarkEventRouter(); 25 virtual ~ExtensionBookmarkEventRouter();
26 26
27 // Call this for each model to observe. Safe to call multiple times per 27 // Call this for each model to observe. Safe to call multiple times per
28 // model. 28 // model.
29 void Observe(BookmarkModel* model); 29 void Observe(BookmarkModel* model);
30 30
31 // BookmarkModelObserver 31 // BookmarkModelObserver
32 virtual void Loaded(BookmarkModel* model); 32 virtual void Loaded(BookmarkModel* model);
33 virtual void BookmarkModelBeingDeleted(BookmarkModel* model) { } 33 virtual void BookmarkModelBeingDeleted(BookmarkModel* model) { }
34 virtual void BookmarkNodeMoved(BookmarkModel* model, 34 virtual void BookmarkNodeMoved(BookmarkModel* model,
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 public: 202 public:
203 // Override BookmarkManagerIOFunction. 203 // Override BookmarkManagerIOFunction.
204 virtual bool RunImpl(); 204 virtual bool RunImpl();
205 virtual void FileSelected(const FilePath& path, int index, void* params); 205 virtual void FileSelected(const FilePath& path, int index, void* params);
206 206
207 private: 207 private:
208 DECLARE_EXTENSION_FUNCTION_NAME("bookmarks.export"); 208 DECLARE_EXTENSION_FUNCTION_NAME("bookmarks.export");
209 }; 209 };
210 210
211 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_H_ 211 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_H_
OLDNEW
« no previous file with comments | « chrome/browser/enumerate_modules_model_win.cc ('k') | chrome/browser/extensions/extension_bookmarks_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698