OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ref_counted.h" | 13 #include "base/ref_counted.h" |
14 #include "base/singleton.h" | 14 #include "base/singleton.h" |
15 #include "chrome/browser/bookmarks/bookmark_model_observer.h" | 15 #include "chrome/browser/bookmarks/bookmark_model_observer.h" |
16 #include "chrome/browser/extensions/extension_function.h" | 16 #include "chrome/browser/extensions/extension_function.h" |
17 #include "chrome/browser/importer/importer.h" | 17 #include "chrome/browser/importer/importer.h" |
18 #include "chrome/browser/importer/importer_list.h" | 18 #include "chrome/browser/importer/importer_list.h" |
19 #include "chrome/browser/shell_dialogs.h" | 19 #include "chrome/browser/ui/shell_dialogs.h" |
20 #include "chrome/common/notification_observer.h" | 20 #include "chrome/common/notification_observer.h" |
21 #include "chrome/common/notification_registrar.h" | 21 #include "chrome/common/notification_registrar.h" |
22 | 22 |
23 // Observes BookmarkModel and then routes the notifications as events to | 23 // Observes BookmarkModel and then routes the notifications as events to |
24 // the extension system. | 24 // the extension system. |
25 class ExtensionBookmarkEventRouter : public BookmarkModelObserver { | 25 class ExtensionBookmarkEventRouter : public BookmarkModelObserver { |
26 public: | 26 public: |
27 static ExtensionBookmarkEventRouter* GetInstance(); | 27 static ExtensionBookmarkEventRouter* GetInstance(); |
28 virtual ~ExtensionBookmarkEventRouter(); | 28 virtual ~ExtensionBookmarkEventRouter(); |
29 | 29 |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 public: | 205 public: |
206 // Override BookmarkManagerIOFunction. | 206 // Override BookmarkManagerIOFunction. |
207 virtual bool RunImpl(); | 207 virtual bool RunImpl(); |
208 virtual void FileSelected(const FilePath& path, int index, void* params); | 208 virtual void FileSelected(const FilePath& path, int index, void* params); |
209 | 209 |
210 private: | 210 private: |
211 DECLARE_EXTENSION_FUNCTION_NAME("bookmarks.export"); | 211 DECLARE_EXTENSION_FUNCTION_NAME("bookmarks.export"); |
212 }; | 212 }; |
213 | 213 |
214 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_H_ | 214 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_BOOKMARKS_MODULE_H_ |
OLD | NEW |