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

Side by Side Diff: services/sky/dart_library_provider_impl.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 unified diff | Download patch
« no previous file with comments | « no previous file | services/sky/dart_library_provider_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_SKY_DART_LIBRARY_PROVIDER_IMPL_H_ 5 #ifndef SERVICES_SKY_DART_LIBRARY_PROVIDER_IMPL_H_
6 #define SERVICES_SKY_DART_LIBRARY_PROVIDER_IMPL_H_ 6 #define SERVICES_SKY_DART_LIBRARY_PROVIDER_IMPL_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "sky/shell/dart/dart_library_provider_network.h" 9 #include "sky/shell/dart/dart_library_provider_network.h"
10 10
11 namespace sky { 11 namespace sky {
12 12
13 class DartLibraryProviderImpl : public shell::DartLibraryProviderNetwork { 13 class DartLibraryProviderImpl : public shell::DartLibraryProviderNetwork {
14 public: 14 public:
15 struct PrefetchedLibrary { 15 struct PrefetchedLibrary {
16 PrefetchedLibrary(); 16 PrefetchedLibrary();
17 ~PrefetchedLibrary(); 17 ~PrefetchedLibrary();
18 18
19 String name; 19 std::string name;
20 mojo::ScopedDataPipeConsumerHandle pipe; 20 mojo::ScopedDataPipeConsumerHandle pipe;
21 }; 21 };
22 22
23 explicit DartLibraryProviderImpl(mojo::NetworkService* network_service, 23 explicit DartLibraryProviderImpl(mojo::NetworkService* network_service,
24 scoped_ptr<PrefetchedLibrary> prefetched); 24 scoped_ptr<PrefetchedLibrary> prefetched);
25 ~DartLibraryProviderImpl() override; 25 ~DartLibraryProviderImpl() override;
26 26
27 private: 27 private:
28 void GetLibraryAsStream(const String& name, 28 void GetLibraryAsStream(const std::string& name,
29 blink::DataPipeConsumerCallback callback) override; 29 blink::DataPipeConsumerCallback callback) override;
30 30
31 scoped_ptr<PrefetchedLibrary> prefetched_library_; 31 scoped_ptr<PrefetchedLibrary> prefetched_library_;
32 32
33 DISALLOW_COPY_AND_ASSIGN(DartLibraryProviderImpl); 33 DISALLOW_COPY_AND_ASSIGN(DartLibraryProviderImpl);
34 }; 34 };
35 35
36 } // namespace sky 36 } // namespace sky
37 37
38 #endif // SERVICES_SKY_DART_LIBRARY_PROVIDER_IMPL_H_ 38 #endif // SERVICES_SKY_DART_LIBRARY_PROVIDER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | services/sky/dart_library_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698