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

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

Issue 217233005: Revert 260917 "Media Galleries API Metadata: Image metadata" (Closed) Base URL: svn://svn.chromium.org/chrome/
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
Index: trunk/src/chrome/utility/media_galleries/image_metadata_extractor.h
===================================================================
--- trunk/src/chrome/utility/media_galleries/image_metadata_extractor.h (revision 260930)
+++ trunk/src/chrome/utility/media_galleries/image_metadata_extractor.h (working copy)
@@ -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 | « trunk/src/chrome/unit_tests.isolate ('k') | trunk/src/chrome/utility/media_galleries/image_metadata_extractor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698