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

Side by Side Diff: shell/android/android_handler_loader.cc

Issue 930243006: Simplify the ApplicationLoader interface in preparation for changes. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: ptal Created 5 years, 10 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 | « shell/android/android_handler_loader.h ('k') | shell/android/background_application_loader.h » ('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 2014 The Chromium Authors. All rights reserved. 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 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 "shell/android/android_handler_loader.h" 5 #include "shell/android/android_handler_loader.h"
6 6
7 namespace mojo { 7 namespace mojo {
8 namespace shell { 8 namespace shell {
9 9
10 AndroidHandlerLoader::AndroidHandlerLoader() { 10 AndroidHandlerLoader::AndroidHandlerLoader() {
11 } 11 }
12 12
13 AndroidHandlerLoader::~AndroidHandlerLoader() { 13 AndroidHandlerLoader::~AndroidHandlerLoader() {
14 } 14 }
15 15
16 void AndroidHandlerLoader::Load( 16 void AndroidHandlerLoader::Load(
17 ApplicationManager* manager,
18 const GURL& url, 17 const GURL& url,
19 InterfaceRequest<Application> application_request, 18 InterfaceRequest<Application> application_request) {
20 LoadCallback callback) {
21 DCHECK(application_request.is_pending()); 19 DCHECK(application_request.is_pending());
22 application_.reset( 20 application_.reset(
23 new ApplicationImpl(&android_handler_, application_request.Pass())); 21 new ApplicationImpl(&android_handler_, application_request.Pass()));
24 } 22 }
25 23
26 void AndroidHandlerLoader::OnApplicationError(ApplicationManager* manager, 24 void AndroidHandlerLoader::OnApplicationError(ApplicationManager* manager,
27 const GURL& url) { 25 const GURL& url) {
28 } 26 }
29 27
30 } // namespace shell 28 } // namespace shell
31 } // namespace mojo 29 } // namespace mojo
OLDNEW
« no previous file with comments | « shell/android/android_handler_loader.h ('k') | shell/android/background_application_loader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698