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

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

Issue 197413002: Move extensions-related files to using //components/keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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_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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 DISALLOW_COPY_AND_ASSIGN(BookmarkEventRouter); 72 DISALLOW_COPY_AND_ASSIGN(BookmarkEventRouter);
73 }; 73 };
74 74
75 class BookmarksAPI : public BrowserContextKeyedAPI, 75 class BookmarksAPI : public BrowserContextKeyedAPI,
76 public EventRouter::Observer { 76 public EventRouter::Observer {
77 public: 77 public:
78 explicit BookmarksAPI(content::BrowserContext* context); 78 explicit BookmarksAPI(content::BrowserContext* context);
79 virtual ~BookmarksAPI(); 79 virtual ~BookmarksAPI();
80 80
81 // BrowserContextKeyedService implementation. 81 // KeyedService implementation.
82 virtual void Shutdown() OVERRIDE; 82 virtual void Shutdown() OVERRIDE;
83 83
84 // BrowserContextKeyedAPI implementation. 84 // BrowserContextKeyedAPI implementation.
85 static BrowserContextKeyedAPIFactory<BookmarksAPI>* GetFactoryInstance(); 85 static BrowserContextKeyedAPIFactory<BookmarksAPI>* GetFactoryInstance();
86 86
87 // EventRouter::Observer implementation. 87 // EventRouter::Observer implementation.
88 virtual void OnListenerAdded( 88 virtual void OnListenerAdded(
89 const EventListenerInfo& details) OVERRIDE; 89 const EventListenerInfo& details) OVERRIDE;
90 90
91 private: 91 private:
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 private: 334 private:
335 virtual ~BookmarksExportFunction() {} 335 virtual ~BookmarksExportFunction() {}
336 336
337 // ExtensionFunction: 337 // ExtensionFunction:
338 virtual bool RunImpl() OVERRIDE; 338 virtual bool RunImpl() OVERRIDE;
339 }; 339 };
340 340
341 } // namespace extensions 341 } // namespace extensions
342 342
343 #endif // CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARKS_API_H_ 343 #endif // CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARKS_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698