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

Unified Diff: chrome/browser/ui/webui/options2/chromeos/user_image_source.h

Issue 10837331: Options: s/options2/options/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: wut 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options2/chromeos/user_image_source.h
diff --git a/chrome/browser/ui/webui/options2/chromeos/user_image_source.h b/chrome/browser/ui/webui/options2/chromeos/user_image_source.h
deleted file mode 100644
index 018d7d44fdc4e4248b47c9d0f821cf552618bce6..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/options2/chromeos/user_image_source.h
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_USER_IMAGE_SOURCE_H_
-#define CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_USER_IMAGE_SOURCE_H_
-
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "chrome/browser/ui/webui/chrome_url_data_manager.h"
-#include "ui/base/layout.h"
-
-namespace base {
-class RefCountedMemory;
-}
-
-namespace chromeos {
-namespace options {
-
-// UserImageSource is the data source that serves user images for users that
-// have it.
-class UserImageSource : public ChromeURLDataManager::DataSource {
- public:
- UserImageSource();
-
- // Called when the network layer has requested a resource underneath
- // the path we registered.
- virtual void StartDataRequest(const std::string& path,
- bool is_incognito,
- int request_id) OVERRIDE;
-
- virtual std::string GetMimeType(const std::string& path) const OVERRIDE;
-
- // Returns PNG or GIF (when possible and if |is_image_animated| flag
- // is true) encoded image for user with specified email. If there's
- // no user with such email, returns the first default image.
- base::RefCountedMemory* GetUserImage(const std::string& email,
- bool is_image_animated,
- ui::ScaleFactor scale_factor) const;
-
- private:
- virtual ~UserImageSource();
-
- DISALLOW_COPY_AND_ASSIGN(UserImageSource);
-};
-
-} // namespace options
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_CHROMEOS_USER_IMAGE_SOURCE_H_

Powered by Google App Engine
This is Rietveld 408576698