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

Side by Side Diff: chrome/browser/chromeos/extensions/wallpaper_api.h

Issue 1566713005: Make the third party wallpaper syncable through different devices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a TODO Created 4 years, 11 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/wallpaper_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_API_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_API_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_API_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_API_H_
7 7
8 #include "base/threading/sequenced_worker_pool.h" 8 #include "base/threading/sequenced_worker_pool.h"
9 #include "chrome/browser/chromeos/extensions/wallpaper_function_base.h" 9 #include "chrome/browser/chromeos/extensions/wallpaper_function_base.h"
10 #include "chrome/common/extensions/api/wallpaper.h" 10 #include "chrome/common/extensions/api/wallpaper.h"
(...skipping 23 matching lines...) Expand all
34 34
35 private: 35 private:
36 void OnWallpaperDecoded(const gfx::ImageSkia& image) override; 36 void OnWallpaperDecoded(const gfx::ImageSkia& image) override;
37 37
38 // Generates thumbnail of custom wallpaper. A simple STRETCH is used for 38 // Generates thumbnail of custom wallpaper. A simple STRETCH is used for
39 // generating thumbnail. 39 // generating thumbnail.
40 void GenerateThumbnail(const base::FilePath& thumbnail_path, 40 void GenerateThumbnail(const base::FilePath& thumbnail_path,
41 scoped_ptr<gfx::ImageSkia> image); 41 scoped_ptr<gfx::ImageSkia> image);
42 42
43 // Thumbnail is ready. Calls api function javascript callback. 43 // Thumbnail is ready. Calls api function javascript callback.
44 void ThumbnailGenerated(base::RefCountedBytes* data); 44 void ThumbnailGenerated(base::RefCountedBytes* original_data,
45 base::RefCountedBytes* thumbnail_data);
45 46
46 // Called by OnURLFetchComplete(). 47 // Called by OnURLFetchComplete().
47 void OnWallpaperFetched(bool success, const std::string& response); 48 void OnWallpaperFetched(bool success, const std::string& response);
48 49
49 scoped_ptr<extensions::api::wallpaper::SetWallpaper::Params> params_; 50 scoped_ptr<extensions::api::wallpaper::SetWallpaper::Params> params_;
50 51
51 // Unique file name of the custom wallpaper. 52 // Unique file name of the custom wallpaper.
52 std::string file_name_; 53 std::string file_name_;
53 54
54 // User id of the user who initiate this API call. 55 // User id of the user who initiate this API call.
55 AccountId account_id_ = EmptyAccountId(); 56 AccountId account_id_ = EmptyAccountId();
56 57
57 // User id hash of the logged in user. 58 // User id hash of the logged in user.
58 std::string user_id_hash_; 59 std::string user_id_hash_;
59 60
60 // Sequence token associated with wallpaper operations. Shared with 61 // Sequence token associated with wallpaper operations. Shared with
61 // WallpaperManager. 62 // WallpaperManager.
62 base::SequencedWorkerPool::SequenceToken sequence_token_; 63 base::SequencedWorkerPool::SequenceToken sequence_token_;
63 }; 64 };
64 65
65 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_API_H_ 66 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_API_H_
66 67
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/wallpaper_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698