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/runner/about_fetcher.h" | 5 #include "mojo/fetcher/about_fetcher.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
12 | 12 |
13 namespace mojo { | 13 namespace mojo { |
14 namespace runner { | 14 namespace fetcher { |
15 namespace { | 15 namespace { |
16 | 16 |
17 void RunFetcherCallback(const shell::Fetcher::FetchCallback& callback, | 17 void RunFetcherCallback(const shell::Fetcher::FetchCallback& callback, |
18 scoped_ptr<shell::Fetcher> fetcher, | 18 scoped_ptr<shell::Fetcher> fetcher, |
19 bool success) { | 19 bool success) { |
20 callback.Run(success ? fetcher.Pass() : nullptr); | 20 callback.Run(success ? fetcher.Pass() : nullptr); |
21 } | 21 } |
22 | 22 |
23 } // namespace | 23 } // namespace |
24 | 24 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 bool AboutFetcher::HasMojoMagic() { | 101 bool AboutFetcher::HasMojoMagic() { |
102 return false; | 102 return false; |
103 } | 103 } |
104 | 104 |
105 bool AboutFetcher::PeekFirstLine(std::string* line) { | 105 bool AboutFetcher::PeekFirstLine(std::string* line) { |
106 // The only URL handled currently is "about:blank" which doesn't have a body. | 106 // The only URL handled currently is "about:blank" which doesn't have a body. |
107 return false; | 107 return false; |
108 } | 108 } |
109 | 109 |
110 } // namespace runner | 110 } // namespace fetcher |
111 } // namespace mojo | 111 } // namespace mojo |
OLD | NEW |