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

Unified Diff: sky/engine/tonic/dart_library_loader.h

Issue 1237973004: Port more String and HashMap usages (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 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 | « sky/engine/tonic/dart_exception_factory.cc ('k') | sky/engine/tonic/dart_library_loader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/tonic/dart_library_loader.h
diff --git a/sky/engine/tonic/dart_library_loader.h b/sky/engine/tonic/dart_library_loader.h
index da962d9cdedb6ae23c7ec1422e4654ad71ac7670..609734070226dbd89bdfce39436ece9c8eae70be 100644
--- a/sky/engine/tonic/dart_library_loader.h
+++ b/sky/engine/tonic/dart_library_loader.h
@@ -5,15 +5,16 @@
#ifndef SKY_ENGINE_TONIC_DART_LIBRARY_LOADER_H_
#define SKY_ENGINE_TONIC_DART_LIBRARY_LOADER_H_
+#include <string>
+#include <unordered_map>
#include <vector>
+
#include "base/callback_forward.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "dart/runtime/include/dart_api.h"
-#include "sky/engine/wtf/HashMap.h"
#include "sky/engine/wtf/HashSet.h"
#include "sky/engine/wtf/OwnPtr.h"
-#include "sky/engine/wtf/text/WTFString.h"
namespace blink {
class DartDependency;
@@ -35,7 +36,7 @@ class DartLibraryLoader {
Dart_Handle library,
Dart_Handle url);
- void LoadLibrary(const String& name);
+ void LoadLibrary(const std::string& name);
void WaitForDependencies(const HashSet<DartDependency*>& dependencies,
const base::Closure& callback);
@@ -70,7 +71,7 @@ class DartLibraryLoader {
DartState* dart_state_;
DartLibraryProvider* library_provider_;
- HashMap<String, Job*> pending_libraries_;
+ std::unordered_map<std::string, Job*> pending_libraries_;
HashSet<OwnPtr<Job>> jobs_;
HashSet<OwnPtr<DependencyWatcher>> dependency_watchers_;
DartDependencyCatcher* dependency_catcher_;
« no previous file with comments | « sky/engine/tonic/dart_exception_factory.cc ('k') | sky/engine/tonic/dart_library_loader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698