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

Side by Side Diff: chrome/browser/extensions/api/bookmarks/bookmarks_api.h

Issue 791623004: bookmarks: Move BookmarkModelObserver into 'bookmarks' namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android + sync + cocoa fixes Created 6 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
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_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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/android/provider/bookmark_model_observer_task.h ('k') | chrome/browser/sync/glue/bookmark_change_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698