| OLD | NEW |
| 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_API_BOOKMARKS_BOOKMARKS_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARKS_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARKS_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARKS_API_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 namespace extensions { | 32 namespace extensions { |
| 33 | 33 |
| 34 namespace api { | 34 namespace api { |
| 35 namespace bookmarks { | 35 namespace bookmarks { |
| 36 struct CreateDetails; | 36 struct CreateDetails; |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 | 39 |
| 40 // Observes BookmarkModel and then routes the notifications as events to | 40 // Observes BookmarkModel and then routes the notifications as events to |
| 41 // the extension system. | 41 // the extension system. |
| 42 class BookmarkEventRouter : public BookmarkModelObserver { | 42 class BookmarkEventRouter : public bookmarks::BookmarkModelObserver { |
| 43 public: | 43 public: |
| 44 explicit BookmarkEventRouter(Profile* profile); | 44 explicit BookmarkEventRouter(Profile* profile); |
| 45 ~BookmarkEventRouter() override; | 45 ~BookmarkEventRouter() override; |
| 46 | 46 |
| 47 // BookmarkModelObserver: | 47 // BookmarkModelObserver: |
| 48 void BookmarkModelLoaded(BookmarkModel* model, bool ids_reassigned) override; | 48 void BookmarkModelLoaded(BookmarkModel* model, bool ids_reassigned) override; |
| 49 void BookmarkModelBeingDeleted(BookmarkModel* model) override; | 49 void BookmarkModelBeingDeleted(BookmarkModel* model) override; |
| 50 void BookmarkNodeMoved(BookmarkModel* model, | 50 void BookmarkNodeMoved(BookmarkModel* model, |
| 51 const BookmarkNode* old_parent, | 51 const BookmarkNode* old_parent, |
| 52 int old_index, | 52 int old_index, |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 private: | 352 private: |
| 353 ~BookmarksExportFunction() override {} | 353 ~BookmarksExportFunction() override {} |
| 354 | 354 |
| 355 // BookmarksFunction: | 355 // BookmarksFunction: |
| 356 bool RunOnReady() override; | 356 bool RunOnReady() override; |
| 357 }; | 357 }; |
| 358 | 358 |
| 359 } // namespace extensions | 359 } // namespace extensions |
| 360 | 360 |
| 361 #endif // CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARKS_API_H_ | 361 #endif // CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARKS_API_H_ |
| OLD | NEW |