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

Side by Side Diff: chrome/browser/extensions/api/media_galleries_private/media_galleries_private_api.h

Issue 23727009: Cleanup: Remove chrome namespace for storage monitor and media galleries. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix nit Created 7 years, 3 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 protected: 82 protected:
83 virtual ~MediaGalleriesPrivateAddGalleryWatchFunction(); 83 virtual ~MediaGalleriesPrivateAddGalleryWatchFunction();
84 84
85 // AsyncExtensionFunction overrides. 85 // AsyncExtensionFunction overrides.
86 virtual bool RunImpl() OVERRIDE; 86 virtual bool RunImpl() OVERRIDE;
87 87
88 private: 88 private:
89 void OnStorageMonitorInit(const std::string& pref_id); 89 void OnStorageMonitorInit(const std::string& pref_id);
90 90
91 // Gallery watch request handler. 91 // Gallery watch request handler.
92 void HandleResponse(chrome::MediaGalleryPrefId gallery_id, 92 void HandleResponse(MediaGalleryPrefId gallery_id, bool success);
93 bool success);
94 }; 93 };
95 94
96 // Implements the chrome.mediaGalleriesPrivate.removeGalleryWatch method. 95 // Implements the chrome.mediaGalleriesPrivate.removeGalleryWatch method.
97 class MediaGalleriesPrivateRemoveGalleryWatchFunction 96 class MediaGalleriesPrivateRemoveGalleryWatchFunction
98 : public AsyncExtensionFunction { 97 : public AsyncExtensionFunction {
99 public: 98 public:
100 DECLARE_EXTENSION_FUNCTION("mediaGalleriesPrivate.removeGalleryWatch", 99 DECLARE_EXTENSION_FUNCTION("mediaGalleriesPrivate.removeGalleryWatch",
101 MEDIAGALLERIESPRIVATE_REMOVEGALLERYWATCH); 100 MEDIAGALLERIESPRIVATE_REMOVEGALLERYWATCH);
102 101
103 protected: 102 protected:
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 protected: 151 protected:
153 virtual ~MediaGalleriesPrivateGetHandlersFunction(); 152 virtual ~MediaGalleriesPrivateGetHandlersFunction();
154 153
155 // AsyncExtensionFunction overrides. 154 // AsyncExtensionFunction overrides.
156 virtual bool RunImpl() OVERRIDE; 155 virtual bool RunImpl() OVERRIDE;
157 }; 156 };
158 157
159 } // namespace extensions 158 } // namespace extensions
160 159
161 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES _PRIVATE_API_H_ 160 #endif // CHROME_BROWSER_EXTENSIONS_API_MEDIA_GALLERIES_PRIVATE_MEDIA_GALLERIES _PRIVATE_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698