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

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

Issue 15517005: Remove references to Profile from browser_context_keyed_service. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & style Created 7 years, 7 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 DISALLOW_COPY_AND_ASSIGN(BookmarkEventRouter); 69 DISALLOW_COPY_AND_ASSIGN(BookmarkEventRouter);
70 }; 70 };
71 71
72 class BookmarksAPI : public ProfileKeyedAPI, 72 class BookmarksAPI : public ProfileKeyedAPI,
73 public EventRouter::Observer { 73 public EventRouter::Observer {
74 public: 74 public:
75 explicit BookmarksAPI(Profile* profile); 75 explicit BookmarksAPI(Profile* profile);
76 virtual ~BookmarksAPI(); 76 virtual ~BookmarksAPI();
77 77
78 // ProfileKeyedService implementation. 78 // BrowserContextKeyedService implementation.
79 virtual void Shutdown() OVERRIDE; 79 virtual void Shutdown() OVERRIDE;
80 80
81 // ProfileKeyedAPI implementation. 81 // ProfileKeyedAPI implementation.
82 static ProfileKeyedAPIFactory<BookmarksAPI>* GetFactoryInstance(); 82 static ProfileKeyedAPIFactory<BookmarksAPI>* GetFactoryInstance();
83 83
84 // EventRouter::Observer implementation. 84 // EventRouter::Observer implementation.
85 virtual void OnListenerAdded( 85 virtual void OnListenerAdded(
86 const EventListenerInfo& details) OVERRIDE; 86 const EventListenerInfo& details) OVERRIDE;
87 87
88 private: 88 private:
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 private: 325 private:
326 virtual ~BookmarksExportFunction() {} 326 virtual ~BookmarksExportFunction() {}
327 327
328 // ExtensionFunction: 328 // ExtensionFunction:
329 virtual bool RunImpl() OVERRIDE; 329 virtual bool RunImpl() OVERRIDE;
330 }; 330 };
331 331
332 } // namespace extensions 332 } // namespace extensions
333 333
334 #endif // CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARKS_API_H_ 334 #endif // CHROME_BROWSER_EXTENSIONS_API_BOOKMARKS_BOOKMARKS_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698