| 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_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ | 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/threading/sequenced_worker_pool.h" | 11 #include "base/threading/sequenced_worker_pool.h" |
| 12 #include "chrome/browser/chromeos/extensions/wallpaper_function_base.h" | 12 #include "chrome/browser/chromeos/extensions/wallpaper_function_base.h" |
| 13 #include "chrome/common/extensions/api/wallpaper_private.h" | 13 #include "chrome/common/extensions/api/wallpaper_private.h" |
| 14 #include "components/signin/core/account_id/account_id.h" | 14 #include "components/signin/core/account_id/account_id.h" |
| 15 #include "net/url_request/url_fetcher_delegate.h" | 15 #include "net/url_request/url_fetcher_delegate.h" |
| 16 | 16 |
| 17 namespace base { |
| 18 class RefCountedBytes; |
| 19 } |
| 20 |
| 17 namespace chromeos { | 21 namespace chromeos { |
| 18 class UserImage; | 22 class UserImage; |
| 19 } // namespace chromeos | 23 } // namespace chromeos |
| 20 | 24 |
| 21 // Wallpaper manager strings. | 25 // Wallpaper manager strings. |
| 22 class WallpaperPrivateGetStringsFunction : public SyncExtensionFunction { | 26 class WallpaperPrivateGetStringsFunction : public SyncExtensionFunction { |
| 23 public: | 27 public: |
| 24 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.getStrings", | 28 DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.getStrings", |
| 25 WALLPAPERPRIVATE_GETSTRINGS) | 29 WALLPAPERPRIVATE_GETSTRINGS) |
| 26 | 30 |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 // Sends the list of files to extension api caller. If no files or no | 300 // Sends the list of files to extension api caller. If no files or no |
| 297 // directory, sends empty list. | 301 // directory, sends empty list. |
| 298 void OnComplete(const std::vector<std::string>& file_list); | 302 void OnComplete(const std::vector<std::string>& file_list); |
| 299 | 303 |
| 300 // Sequence token associated with wallpaper operations. Shared with | 304 // Sequence token associated with wallpaper operations. Shared with |
| 301 // WallpaperManager. | 305 // WallpaperManager. |
| 302 base::SequencedWorkerPool::SequenceToken sequence_token_; | 306 base::SequencedWorkerPool::SequenceToken sequence_token_; |
| 303 }; | 307 }; |
| 304 | 308 |
| 305 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ | 309 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_ |
| OLD | NEW |