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

Unified Diff: media/mojo/services/mojo_provision_fetcher.h

Issue 1473233005: Revert of media: Add ProvisionFetcher mojo interface and implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/mojo/services/mojo_media_client.cc ('k') | media/mojo/services/mojo_provision_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_provision_fetcher.h
diff --git a/media/mojo/services/mojo_provision_fetcher.h b/media/mojo/services/mojo_provision_fetcher.h
deleted file mode 100644
index eb2ed7d6573f53ca1978d7f4e86c69d1b9b0b9aa..0000000000000000000000000000000000000000
--- a/media/mojo/services/mojo_provision_fetcher.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2015 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 MEDIA_MOJO_SERVICES_MOJO_PROVISION_FETCHER_H_
-#define MEDIA_MOJO_SERVICES_MOJO_PROVISION_FETCHER_H_
-
-#include "base/macros.h"
-#include "base/memory/weak_ptr.h"
-#include "media/base/android/provision_fetcher.h"
-#include "media/mojo/interfaces/provision_fetcher.mojom.h"
-
-namespace media {
-
-// A ProvisionFetcher that proxies to a interfaces::ProvisionFetcherPtr.
-class MojoProvisionFetcher : public ProvisionFetcher {
- public:
- explicit MojoProvisionFetcher(
- interfaces::ProvisionFetcherPtr provision_fetcher_ptr);
- ~MojoProvisionFetcher() final;
-
- // ProvisionFetcher implementation:
- void Retrieve(const std::string& default_url,
- const std::string& request_data,
- const ResponseCB& response_cb) final;
-
- private:
- // Callback for interfaces::ProvisionFetcherPtr::Retrieve().
- void OnResponse(const ResponseCB& response_cb,
- bool success,
- const std::string& response);
-
- interfaces::ProvisionFetcherPtr provision_fetcher_ptr_;
-
- base::WeakPtrFactory<MojoProvisionFetcher> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(MojoProvisionFetcher);
-};
-
-} // namespace media
-
-#endif // MEDIA_MOJO_SERVICES_MOJO_PROVISION_FETCHER_H_
« no previous file with comments | « media/mojo/services/mojo_media_client.cc ('k') | media/mojo/services/mojo_provision_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698