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

Unified Diff: content/browser/android/system_ui_resource_manager_impl.h

Issue 755643004: Replace SystemUIResourceManager with ResourceManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix clang build failure Created 6 years 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: content/browser/android/system_ui_resource_manager_impl.h
diff --git a/content/browser/android/system_ui_resource_manager_impl.h b/content/browser/android/system_ui_resource_manager_impl.h
deleted file mode 100644
index 493949cee301d2b30375f3c496ce445b114ff9c8..0000000000000000000000000000000000000000
--- a/content/browser/android/system_ui_resource_manager_impl.h
+++ /dev/null
@@ -1,57 +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 CONTENT_BROWSER_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_IMPL_H_
-#define CONTENT_BROWSER_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_IMPL_H_
-
-#include "base/android/jni_android.h"
-#include "base/basictypes.h"
-#include "base/containers/scoped_ptr_hash_map.h"
-#include "base/memory/weak_ptr.h"
-#include "content/common/content_export.h"
-#include "ui/base/android/system_ui_resource_manager.h"
-
-class SkBitmap;
-
-namespace cc {
-class UIResourceBitmap;
-}
-
-namespace content {
-
-class UIResourceProvider;
-
-class CONTENT_EXPORT SystemUIResourceManagerImpl
- : public ui::SystemUIResourceManager {
- public:
- explicit SystemUIResourceManagerImpl(
- UIResourceProvider* ui_resource_provider);
- ~SystemUIResourceManagerImpl() override;
-
- void PreloadResource(ui::SystemUIResourceType type) override;
- cc::UIResourceId GetUIResourceId(ui::SystemUIResourceType type) override;
-
- static bool RegisterUIResources(JNIEnv* env);
-
- private:
- friend class TestSystemUIResourceManagerImpl;
- class Entry;
-
- // Start loading the resource bitmap. virtual for testing.
- virtual void BuildResource(ui::SystemUIResourceType type);
-
- Entry* GetEntry(ui::SystemUIResourceType type);
- void OnFinishedLoadBitmap(ui::SystemUIResourceType, SkBitmap* bitmap_holder);
-
- scoped_ptr<Entry> resource_map_[ui::SYSTEM_UI_RESOURCE_TYPE_LAST + 1];
- UIResourceProvider* ui_resource_provider_;
-
- base::WeakPtrFactory<SystemUIResourceManagerImpl> weak_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(SystemUIResourceManagerImpl);
-};
-
-} // namespace content
-
-#endif // CONTENT_BROWSER_ANDROID_SYSTEM_UI_RESOURCE_MANAGER_IMPL_H_
« no previous file with comments | « content/browser/android/overscroll_refresh_unittest.cc ('k') | content/browser/android/system_ui_resource_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698