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

Side by Side Diff: mojo/fetcher/about_fetcher.cc

Issue 1342503003: Move fetching logic out of ApplicationManager, eliminate url mappings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 3 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 | « mojo/fetcher/about_fetcher.h ('k') | mojo/fetcher/about_fetcher_unittest.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 #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
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
OLDNEW
« no previous file with comments | « mojo/fetcher/about_fetcher.h ('k') | mojo/fetcher/about_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698