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

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

Issue 10698140: Remove "2" suffixes from options2 code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 5 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_USER_IMAGE_SOURCE2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_USER_IMAGE_SOURCE2_H_
7 #pragma once
8
9 #include <string>
10 #include <vector>
11
12 #include "base/basictypes.h"
13 #include "base/compiler_specific.h"
14 #include "chrome/browser/ui/webui/chrome_url_data_manager.h"
15
16 namespace chromeos {
17 namespace options2 {
18
19 // UserImageSource is the data source that serves user images for users that
20 // have it.
21 class UserImageSource : public ChromeURLDataManager::DataSource {
22 public:
23 UserImageSource();
24
25 // Called when the network layer has requested a resource underneath
26 // the path we registered.
27 virtual void StartDataRequest(const std::string& path,
28 bool is_incognito,
29 int request_id) OVERRIDE;
30
31 virtual std::string GetMimeType(const std::string& path) const OVERRIDE;
32
33 // Returns PNG or GIF (when possible and if |is_image_animated| flag
34 // is true) encoded image for user with specified email. If there's
35 // no user with such email, returns the default image.
36 std::vector<unsigned char> GetUserImage(const std::string& email,
37 bool is_image_animated) const;
38
39 private:
40 virtual ~UserImageSource();
41
42 DISALLOW_COPY_AND_ASSIGN(UserImageSource);
43 };
44
45 } // namespace options2
46 } // namespace chromeos
47
48 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_USER_IMAGE_SOURCE2_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698