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

Side by Side Diff: chrome/browser/chromeos/login/user_image_screen.h

Issue 4228002: Moved ownership of camera thread to user image screen (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile fix Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_LOGIN_USER_IMAGE_SCREEN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/thread.h"
9 #include "chrome/browser/chromeos/login/camera.h" 10 #include "chrome/browser/chromeos/login/camera.h"
10 #include "chrome/browser/chromeos/login/user_image_view.h" 11 #include "chrome/browser/chromeos/login/user_image_view.h"
11 #include "chrome/browser/chromeos/login/view_screen.h" 12 #include "chrome/browser/chromeos/login/view_screen.h"
12 #include "chrome/common/notification_observer.h" 13 #include "chrome/common/notification_observer.h"
13 #include "chrome/common/notification_registrar.h" 14 #include "chrome/common/notification_registrar.h"
14 #include "third_party/skia/include/core/SkBitmap.h" 15 #include "third_party/skia/include/core/SkBitmap.h"
15 16
16 namespace chromeos { 17 namespace chromeos {
17 18
18 class UserImageScreen: public ViewScreen<UserImageView>, 19 class UserImageScreen: public ViewScreen<UserImageView>,
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 52
52 // Object that handles video capturing. 53 // Object that handles video capturing.
53 scoped_refptr<Camera> camera_; 54 scoped_refptr<Camera> camera_;
54 55
55 // Counts how many times in a row capture failed. 56 // Counts how many times in a row capture failed.
56 int capture_failure_counter_; 57 int capture_failure_counter_;
57 58
58 // Counts how many times camera initialization failed. 59 // Counts how many times camera initialization failed.
59 int camera_init_failure_counter_; 60 int camera_init_failure_counter_;
60 61
62 // Thread for camera to work on.
63 base::Thread camera_thread_;
64
61 NotificationRegistrar registrar_; 65 NotificationRegistrar registrar_;
62 66
63 DISALLOW_COPY_AND_ASSIGN(UserImageScreen); 67 DISALLOW_COPY_AND_ASSIGN(UserImageScreen);
64 }; 68 };
65 69
66 } // namespace chromeos 70 } // namespace chromeos
67 71
68 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_H_ 72 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USER_IMAGE_SCREEN_H_
69 73
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/camera.cc ('k') | chrome/browser/chromeos/login/user_image_screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698