| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_UTILITY_MEDIA_GALLERIES_IMAGE_METADATA_EXTRACTOR_H_ | 5 #ifndef CHROME_UTILITY_MEDIA_GALLERIES_IMAGE_METADATA_EXTRACTOR_H_ |
| 6 #define CHROME_UTILITY_MEDIA_GALLERIES_IMAGE_METADATA_EXTRACTOR_H_ | 6 #define CHROME_UTILITY_MEDIA_GALLERIES_IMAGE_METADATA_EXTRACTOR_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
| 12 #include "base/memory/ref_counted.h" |
| 12 | 13 |
| 13 namespace media { | 14 namespace media { |
| 14 class DataSource; | 15 class DataSource; |
| 15 } | 16 } |
| 16 | 17 |
| 17 namespace net { | 18 namespace net { |
| 18 class DrainableIOBuffer; | 19 class DrainableIOBuffer; |
| 19 } | 20 } |
| 20 | 21 |
| 21 namespace metadata { | 22 namespace metadata { |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 const std::string& camera_model() const; | 58 const std::string& camera_model() const; |
| 58 double exposure_time_sec() const; | 59 double exposure_time_sec() const; |
| 59 bool flash_fired() const; | 60 bool flash_fired() const; |
| 60 double f_number() const; | 61 double f_number() const; |
| 61 double focal_length_mm() const; | 62 double focal_length_mm() const; |
| 62 int iso_equivalent() const; | 63 int iso_equivalent() const; |
| 63 | 64 |
| 64 private: | 65 private: |
| 65 // Second half of the Extract method. | 66 // Second half of the Extract method. |
| 66 void FinishExtraction(const DoneCallback& callback, | 67 void FinishExtraction(const DoneCallback& callback, |
| 67 net::DrainableIOBuffer* buffer); | 68 const scoped_refptr<net::DrainableIOBuffer>& buffer); |
| 68 | 69 |
| 69 bool extracted_; | 70 bool extracted_; |
| 70 | 71 |
| 71 int width_; | 72 int width_; |
| 72 int height_; | 73 int height_; |
| 73 | 74 |
| 74 int rotation_; | 75 int rotation_; |
| 75 | 76 |
| 76 double x_resolution_; | 77 double x_resolution_; |
| 77 double y_resolution_; | 78 double y_resolution_; |
| 78 | 79 |
| 79 std::string date_; | 80 std::string date_; |
| 80 | 81 |
| 81 std::string camera_make_; | 82 std::string camera_make_; |
| 82 std::string camera_model_; | 83 std::string camera_model_; |
| 83 double exposure_time_sec_; | 84 double exposure_time_sec_; |
| 84 bool flash_fired_; | 85 bool flash_fired_; |
| 85 double f_number_; | 86 double f_number_; |
| 86 double focal_length_mm_; | 87 double focal_length_mm_; |
| 87 int iso_equivalent_; | 88 int iso_equivalent_; |
| 88 | 89 |
| 89 DISALLOW_COPY_AND_ASSIGN(ImageMetadataExtractor); | 90 DISALLOW_COPY_AND_ASSIGN(ImageMetadataExtractor); |
| 90 }; | 91 }; |
| 91 | 92 |
| 92 } // namespace metadata | 93 } // namespace metadata |
| 93 | 94 |
| 94 #endif // CHROME_UTILITY_MEDIA_GALLERIES_IMAGE_METADATA_EXTRACTOR_H_ | 95 #endif // CHROME_UTILITY_MEDIA_GALLERIES_IMAGE_METADATA_EXTRACTOR_H_ |
| OLD | NEW |