| 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_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 17 matching lines...) Expand all Loading... |
| 28 class MediaGalleriesPrivateEventRouter; | 28 class MediaGalleriesPrivateEventRouter; |
| 29 | 29 |
| 30 // The profile-keyed service that manages the media galleries private extension | 30 // The profile-keyed service that manages the media galleries private extension |
| 31 // API. Created at the same time as the Profile. | 31 // API. Created at the same time as the Profile. |
| 32 class MediaGalleriesPrivateAPI : public BrowserContextKeyedAPI, | 32 class MediaGalleriesPrivateAPI : public BrowserContextKeyedAPI, |
| 33 public EventRouter::Observer { | 33 public EventRouter::Observer { |
| 34 public: | 34 public: |
| 35 explicit MediaGalleriesPrivateAPI(content::BrowserContext* context); | 35 explicit MediaGalleriesPrivateAPI(content::BrowserContext* context); |
| 36 virtual ~MediaGalleriesPrivateAPI(); | 36 virtual ~MediaGalleriesPrivateAPI(); |
| 37 | 37 |
| 38 // BrowserContextKeyedService implementation. | 38 // KeyedService implementation. |
| 39 virtual void Shutdown() OVERRIDE; | 39 virtual void Shutdown() OVERRIDE; |
| 40 | 40 |
| 41 // BrowserContextKeyedAPI implementation. | 41 // BrowserContextKeyedAPI implementation. |
| 42 static BrowserContextKeyedAPIFactory<MediaGalleriesPrivateAPI>* | 42 static BrowserContextKeyedAPIFactory<MediaGalleriesPrivateAPI>* |
| 43 GetFactoryInstance(); | 43 GetFactoryInstance(); |
| 44 | 44 |
| 45 // Convenience method to get the MediaGalleriesPrivateAPI for a profile. | 45 // Convenience method to get the MediaGalleriesPrivateAPI for a profile. |
| 46 static MediaGalleriesPrivateAPI* Get(content::BrowserContext* context); | 46 static MediaGalleriesPrivateAPI* Get(content::BrowserContext* context); |
| 47 | 47 |
| 48 // EventRouter::Observer implementation. | 48 // EventRouter::Observer implementation. |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 protected: | 156 protected: |
| 157 virtual ~MediaGalleriesPrivateGetHandlersFunction(); | 157 virtual ~MediaGalleriesPrivateGetHandlersFunction(); |
| 158 | 158 |
| 159 // AsyncExtensionFunction overrides. | 159 // AsyncExtensionFunction overrides. |
| 160 virtual bool RunImpl() OVERRIDE; | 160 virtual bool RunImpl() OVERRIDE; |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 } // namespace extensions | 163 } // namespace extensions |
| 164 | 164 |
| 165 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES
_PRIVATE_API_H_ | 165 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES
_PRIVATE_API_H_ |
| OLD | NEW |