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

Side by Side Diff: chrome/browser/ui/webui/options2/chromeos/wallpaper_thumbnail_source.h

Issue 10857071: Options: Rename options2 namespace to options. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix. Created 8 years, 4 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_UI_WEBUI_OPTIONS2_CHROMEOS_WALLPAPER_THUMBNAIL_SOURCE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_WALLPAPER_THUMBNAIL_SOURCE_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_WALLPAPER_THUMBNAIL_SOURCE_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_WALLPAPER_THUMBNAIL_SOURCE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "chrome/browser/ui/webui/chrome_url_data_manager.h" 12 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
13 #include "ui/base/layout.h" 13 #include "ui/base/layout.h"
14 14
15 namespace base { 15 namespace base {
16 class RefCountedBytes; 16 class RefCountedBytes;
17 } 17 }
18 18
19 namespace chromeos { 19 namespace chromeos {
20 20
21 class User; 21 class User;
22 22
23 namespace options2 { 23 namespace options {
24 24
25 // Returns a string consisting of the prefix specified and the index of the 25 // Returns a string consisting of the prefix specified and the index of the
26 // image. For example: chrome://wallpaper/default_2. 26 // image. For example: chrome://wallpaper/default_2.
27 std::string GetDefaultWallpaperThumbnailURL(int index); 27 std::string GetDefaultWallpaperThumbnailURL(int index);
28 28
29 // Checks if the given URL points to one of the default wallpapers. If it is, 29 // Checks if the given URL points to one of the default wallpapers. If it is,
30 // returns true and sets |wallpaper_index| to the corresponding index parsed 30 // returns true and sets |wallpaper_index| to the corresponding index parsed
31 // from |url|. For example: chrome://wallpaper/default_2 will set 31 // from |url|. For example: chrome://wallpaper/default_2 will set
32 // |wallpaper_index| to 2. If not a default wallpaper url, returns false. 32 // |wallpaper_index| to 2. If not a default wallpaper url, returns false.
33 // |url| and |wallpaper_index| must not be NULL. 33 // |url| and |wallpaper_index| must not be NULL.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 ui::ScaleFactor scale_factor, 70 ui::ScaleFactor scale_factor,
71 int request_id); 71 int request_id);
72 72
73 scoped_refptr<ThumbnailEncodingOperation> thumbnail_encoding_op_; 73 scoped_refptr<ThumbnailEncodingOperation> thumbnail_encoding_op_;
74 74
75 base::WeakPtrFactory<WallpaperThumbnailSource> weak_ptr_factory_; 75 base::WeakPtrFactory<WallpaperThumbnailSource> weak_ptr_factory_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(WallpaperThumbnailSource); 77 DISALLOW_COPY_AND_ASSIGN(WallpaperThumbnailSource);
78 }; 78 };
79 79
80 } // namespace options2 80 } // namespace options
81 } // namespace chromeos 81 } // namespace chromeos
82 82
83 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_WALLPAPER_THUMBNAIL_SOURCE_ H_ 83 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_WALLPAPER_THUMBNAIL_SOURCE_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698