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 #include "mojo/fetcher/data_fetcher.h" | 5 #include "mojo/fetcher/data_fetcher.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include <utility> | 9 #include <utility> |
8 | 10 |
9 #include "base/bind.h" | 11 #include "base/bind.h" |
10 #include "base/files/file_path.h" | 12 #include "base/files/file_path.h" |
11 #include "base/location.h" | 13 #include "base/location.h" |
12 #include "base/logging.h" | 14 #include "base/logging.h" |
13 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.h" |
14 #include "base/thread_task_runner_handle.h" | 16 #include "base/thread_task_runner_handle.h" |
15 #include "mojo/public/cpp/system/data_pipe.h" | 17 #include "mojo/public/cpp/system/data_pipe.h" |
16 #include "net/base/data_url.h" | 18 #include "net/base/data_url.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 bool DataFetcher::PeekFirstLine(std::string* line) { | 110 bool DataFetcher::PeekFirstLine(std::string* line) { |
109 // This is only called for 'mojo magic' (i.e. detecting shebang'ed | 111 // This is only called for 'mojo magic' (i.e. detecting shebang'ed |
110 // content-handler. Since HasMojoMagic() returns false above, this should | 112 // content-handler. Since HasMojoMagic() returns false above, this should |
111 // never be reached. | 113 // never be reached. |
112 NOTREACHED(); | 114 NOTREACHED(); |
113 return false; | 115 return false; |
114 } | 116 } |
115 | 117 |
116 } // namespace fetcher | 118 } // namespace fetcher |
117 } // namespace mojo | 119 } // namespace mojo |
OLD | NEW |