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

Side by Side Diff: chrome/browser/media_galleries/fileapi/supported_image_type_validator.h

Issue 931993002: Make image_decoder a Leaky LazyInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a few comments Created 5 years, 9 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
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_MEDIA_GALLERIES_FILEAPI_SUPPORTED_IMAGE_TYPE_VALIDATOR_H_ 5 #ifndef CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SUPPORTED_IMAGE_TYPE_VALIDATOR_H_
6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SUPPORTED_IMAGE_TYPE_VALIDATOR_H_ 6 #define CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SUPPORTED_IMAGE_TYPE_VALIDATOR_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/files/file_path.h" 9 #include "base/files/file_path.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 15 matching lines...) Expand all
26 void StartPreWriteValidation(const ResultCallback& result_callback) override; 26 void StartPreWriteValidation(const ResultCallback& result_callback) override;
27 27
28 private: 28 private:
29 friend class MediaFileValidatorFactory; 29 friend class MediaFileValidatorFactory;
30 30
31 explicit SupportedImageTypeValidator(const base::FilePath& file); 31 explicit SupportedImageTypeValidator(const base::FilePath& file);
32 32
33 void OnFileOpen(scoped_ptr<std::string> data); 33 void OnFileOpen(scoped_ptr<std::string> data);
34 34
35 base::FilePath path_; 35 base::FilePath path_;
36 scoped_refptr<ImageDecoder> decoder_;
37 storage::CopyOrMoveFileValidator::ResultCallback callback_; 36 storage::CopyOrMoveFileValidator::ResultCallback callback_;
38 base::WeakPtrFactory<SupportedImageTypeValidator> weak_factory_; 37 base::WeakPtrFactory<SupportedImageTypeValidator> weak_factory_;
39 38
40 DISALLOW_COPY_AND_ASSIGN(SupportedImageTypeValidator); 39 DISALLOW_COPY_AND_ASSIGN(SupportedImageTypeValidator);
41 }; 40 };
42 41
43 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SUPPORTED_IMAGE_TYPE_VALIDATOR _H_ 42 #endif // CHROME_BROWSER_MEDIA_GALLERIES_FILEAPI_SUPPORTED_IMAGE_TYPE_VALIDATOR _H_
OLDNEW
« no previous file with comments | « chrome/browser/image_decoder.cc ('k') | chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698