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

Unified Diff: media/base/media_resources.h

Issue 2656523002: Rename media_resources -> localized_strings (Closed)
Patch Set: rebase Created 3 years, 11 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 | « media/base/localized_strings.cc ('k') | media/base/media_resources.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/media_resources.h
diff --git a/media/base/media_resources.h b/media/base/media_resources.h
deleted file mode 100644
index 574b96baa7371401bc850f879ee1b7f50ce322f8..0000000000000000000000000000000000000000
--- a/media/base/media_resources.h
+++ /dev/null
@@ -1,58 +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_BASE_MEDIA_RESOURCES_H_
-#define MEDIA_BASE_MEDIA_RESOURCES_H_
-
-#include <string>
-
-#include "base/strings/string16.h"
-#include "build/build_config.h"
-#include "media/base/media_export.h"
-#include "media/media_features.h"
-
-namespace media {
-
-// The media layer can't access Chrome's resource bundle directly. This facility
-// allows clients to provide indirect access.
-
-// IDs that will get mapped to corresponding entries with IDS_ prefixes in
-// chrome/app/generated_resources.grd.
-enum MessageId {
- DEFAULT_AUDIO_DEVICE_NAME,
-#if defined(OS_WIN)
- COMMUNICATIONS_AUDIO_DEVICE_NAME,
-#endif
-#if defined(OS_CHROMEOS)
- BEAMFORMING_ON_DEFAULT_AUDIO_INPUT_DEVICE_NAME,
- BEAMFORMING_OFF_DEFAULT_AUDIO_INPUT_DEVICE_NAME,
-#endif
-#if BUILDFLAG(ENABLE_MEDIA_REMOTING)
- MEDIA_REMOTING_CAST_ERROR_TEXT,
- MEDIA_REMOTING_CASTING_VIDEO_TEXT,
-#endif
-};
-
-// Implementations are expected to convert MessageIds to generated_resources.grd
-// IDs and extract the matching string from Chrome's resource bundle (e.g.
-// through l10n_util::GetStringUTF16).
-using LocalizedStringProvider = base::string16 (*)(MessageId message_id);
-
-// Initializes the global LocalizedStringProvider function.
-MEDIA_EXPORT void SetLocalizedStringProvider(LocalizedStringProvider func);
-
-#if !defined(OS_IOS)
-// The LocalizedStringProvider has probably not been initialized on iOS. This
-// will give an early compile warning for clients attempting to use it.
-
-// Returns a resource string corresponding to |message_id|. See l10n_util.h.
-// Returns an empty string if the LocalizedStringProvider has not been
-// initialized or if the ID is unrecognized.
-MEDIA_EXPORT std::string GetLocalizedStringUTF8(MessageId message_id);
-base::string16 GetLocalizedStringUTF16(MessageId message_id);
-#endif
-
-} // namespace media
-
-#endif // MEDIA_BASE_MEDIA_RESOURCES_H_
« no previous file with comments | « media/base/localized_strings.cc ('k') | media/base/media_resources.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698