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

Side by Side Diff: sky/engine/platform/fetcher/MojoFetcher.h

Issue 678683004: HTMLImportLoader should talk directly to mojo::NetworkService (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address reviewer comments Created 6 years, 2 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 | « sky/engine/platform/DEPS ('k') | sky/engine/platform/fetcher/MojoFetcher.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef SKY_ENGINE_PLATFORM_FETCHER_MOJO_FETCHER_H_
6 #define SKY_ENGINE_PLATFORM_FETCHER_MOJO_FETCHER_H_
7
8 #include "base/memory/weak_ptr.h"
9 #include "mojo/services/public/interfaces/network/url_loader.mojom.h"
10
11 namespace blink {
12 class KURL;
13
14 class MojoFetcher {
15 public:
16 class Client {
17 public:
18 virtual void OnReceivedResponse(mojo::URLResponsePtr) = 0;
19
20 protected:
21 virtual ~Client() { }
22 };
23
24 MojoFetcher(Client*, const KURL&);
25 ~MojoFetcher();
26
27 private:
28 void OnReceivedResponse(mojo::URLResponsePtr);
29
30 Client* client_;
31 mojo::URLLoaderPtr url_loader_;
32 base::WeakPtrFactory<MojoFetcher> weak_factory_;
33
34 DISALLOW_COPY_AND_ASSIGN(MojoFetcher);
35 };
36
37 } // namespace blink
38
39 #endif // SKY_ENGINE_PLATFORM_FETCHER_MOJO_FETCHER_H_
OLDNEW
« no previous file with comments | « sky/engine/platform/DEPS ('k') | sky/engine/platform/fetcher/MojoFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698