| OLD | NEW |
| 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 MOJO_FETCHER_DATA_FETCHER_H_ | 5 #ifndef MOJO_FETCHER_DATA_FETCHER_H_ |
| 6 #define MOJO_FETCHER_DATA_FETCHER_H_ | 6 #define MOJO_FETCHER_DATA_FETCHER_H_ |
| 7 | 7 |
| 8 #include "mojo/shell/fetcher.h" | 8 #include "mojo/shell/fetcher.h" |
| 9 | 9 |
| 10 #include <stdint.h> |
| 11 |
| 10 #include "base/macros.h" | 12 #include "base/macros.h" |
| 11 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" | 13 #include "mojo/services/network/public/interfaces/url_loader.mojom.h" |
| 12 #include "url/gurl.h" | 14 #include "url/gurl.h" |
| 13 | 15 |
| 14 namespace mojo { | 16 namespace mojo { |
| 15 namespace fetcher { | 17 namespace fetcher { |
| 16 | 18 |
| 17 // Implements Fetcher for data: URLs. | 19 // Implements Fetcher for data: URLs. |
| 18 class DataFetcher : public shell::Fetcher { | 20 class DataFetcher : public shell::Fetcher { |
| 19 public: | 21 public: |
| (...skipping 21 matching lines...) Expand all Loading... |
| 41 const GURL url_; | 43 const GURL url_; |
| 42 URLResponsePtr response_; | 44 URLResponsePtr response_; |
| 43 | 45 |
| 44 DISALLOW_COPY_AND_ASSIGN(DataFetcher); | 46 DISALLOW_COPY_AND_ASSIGN(DataFetcher); |
| 45 }; | 47 }; |
| 46 | 48 |
| 47 } // namespace fetcher | 49 } // namespace fetcher |
| 48 } // namespace mojo | 50 } // namespace mojo |
| 49 | 51 |
| 50 #endif // MOJO_FETCHER_DATA_FETCHER_H_ | 52 #endif // MOJO_FETCHER_DATA_FETCHER_H_ |
| OLD | NEW |