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

Side by Side Diff: chrome/browser/extensions/api/media_galleries_private/media_galleries_private_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_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES_PR IVATE_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES_PR IVATE_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES_PR IVATE_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES_PR IVATE_API_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 13 matching lines...) Expand all
24 class MediaGalleriesPrivateEventRouter; 24 class MediaGalleriesPrivateEventRouter;
25 25
26 // The profile-keyed service that manages the media galleries private extension 26 // The profile-keyed service that manages the media galleries private extension
27 // API. 27 // API.
28 class MediaGalleriesPrivateAPI : public ProfileKeyedAPI, 28 class MediaGalleriesPrivateAPI : public ProfileKeyedAPI,
29 public EventRouter::Observer { 29 public EventRouter::Observer {
30 public: 30 public:
31 explicit MediaGalleriesPrivateAPI(Profile* profile); 31 explicit MediaGalleriesPrivateAPI(Profile* profile);
32 virtual ~MediaGalleriesPrivateAPI(); 32 virtual ~MediaGalleriesPrivateAPI();
33 33
34 // ProfileKeyedService implementation. 34 // BrowserContextKeyedService implementation.
35 virtual void Shutdown() OVERRIDE; 35 virtual void Shutdown() OVERRIDE;
36 36
37 // ProfileKeyedAPI implementation. 37 // ProfileKeyedAPI implementation.
38 static ProfileKeyedAPIFactory<MediaGalleriesPrivateAPI>* GetFactoryInstance(); 38 static ProfileKeyedAPIFactory<MediaGalleriesPrivateAPI>* GetFactoryInstance();
39 39
40 // Convenience method to get the MediaGalleriesPrivateAPI for a profile. 40 // Convenience method to get the MediaGalleriesPrivateAPI for a profile.
41 static MediaGalleriesPrivateAPI* Get(Profile* profile); 41 static MediaGalleriesPrivateAPI* Get(Profile* profile);
42 42
43 // Sets permission for the media galleries identified by |gallery_id| for the 43 // Sets permission for the media galleries identified by |gallery_id| for the
44 // extension in the given |prefs|. 44 // extension in the given |prefs|.
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 protected: 181 protected:
182 virtual ~MediaGalleriesPrivateGetHandlersFunction(); 182 virtual ~MediaGalleriesPrivateGetHandlersFunction();
183 183
184 // AsyncExtensionFunction overrides. 184 // AsyncExtensionFunction overrides.
185 virtual bool RunImpl() OVERRIDE; 185 virtual bool RunImpl() OVERRIDE;
186 }; 186 };
187 187
188 } // namespace extensions 188 } // namespace extensions
189 189
190 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES _PRIVATE_API_H_ 190 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES _PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698