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

Unified Diff: chrome/utility/media_galleries/image_metadata_extractor.h

Issue 225023014: Revert of Reapply "Media Galleries API Metadata: Image metadata" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/unit_tests.isolate ('k') | chrome/utility/media_galleries/image_metadata_extractor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/media_galleries/image_metadata_extractor.h
diff --git a/chrome/utility/media_galleries/image_metadata_extractor.h b/chrome/utility/media_galleries/image_metadata_extractor.h
deleted file mode 100644
index 6c059d053794fcb556969696fc80ab80eda70047..0000000000000000000000000000000000000000
--- a/chrome/utility/media_galleries/image_metadata_extractor.h
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright 2014 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_UTILITY_MEDIA_GALLERIES_IMAGE_METADATA_EXTRACTOR_H_
-#define CHROME_UTILITY_MEDIA_GALLERIES_IMAGE_METADATA_EXTRACTOR_H_
-
-#include <string>
-
-#include "base/basictypes.h"
-#include "base/callback_forward.h"
-
-namespace media {
-class DataSource;
-}
-
-namespace net {
-class DrainableIOBuffer;
-}
-
-namespace metadata {
-
-class ImageMetadataExtractor {
- public:
- typedef base::Callback<void(bool)> DoneCallback;
-
- ImageMetadataExtractor();
- ~ImageMetadataExtractor();
-
- // |callback| called with whether or not the extraction succeeded. Should
- // only be called once.
- void Extract(media::DataSource* source, const DoneCallback& callback);
-
- // Returns -1 if this could not be extracted.
- int width() const;
- int height() const;
-
- // In degrees.
- int rotation() const;
-
- // In pixels per inch.
- double x_resolution() const;
- double y_resolution() const;
-
- const std::string& date() const;
-
- const std::string& camera_make() const;
- const std::string& camera_model() const;
- double exposure_time_sec() const;
- bool flash_fired() const;
- double f_number() const;
- double focal_length_mm() const;
- int iso_equivalent() const;
-
- private:
- void FinishExtraction(const DoneCallback& callback,
- net::DrainableIOBuffer* buffer);
-
- bool extracted_;
-
- int width_;
- int height_;
-
- int rotation_;
-
- double x_resolution_;
- double y_resolution_;
-
- std::string date_;
-
- std::string camera_make_;
- std::string camera_model_;
- double exposure_time_sec_;
- bool flash_fired_;
- double f_number_;
- double focal_length_mm_;
- int iso_equivalent_;
-
- DISALLOW_COPY_AND_ASSIGN(ImageMetadataExtractor);
-};
-
-} // namespace metadata
-
-#endif // CHROME_UTILITY_MEDIA_GALLERIES_IMAGE_METADATA_EXTRACTOR_H_
« no previous file with comments | « chrome/unit_tests.isolate ('k') | chrome/utility/media_galleries/image_metadata_extractor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698