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

Side by Side Diff: mojo/application_manager/application_loader.cc

Issue 741453002: Make sure that Content Handled application can be connected multiple times. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix sky Created 6 years, 1 month 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
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 "mojo/application_manager/application_loader.h" 5 #include "mojo/application_manager/application_loader.h"
6 6
7 #include "base/bind.h"
7 #include "base/logging.h" 8 #include "base/logging.h"
8 9
9 namespace mojo { 10 namespace mojo {
10 11
11 ApplicationLoader::SimpleLoadCallbacks::SimpleLoadCallbacks( 12 namespace {
12 ScopedMessagePipeHandle shell_handle)
13 : shell_handle_(shell_handle.Pass()) {
14 }
15 13
16 ApplicationLoader::SimpleLoadCallbacks::~SimpleLoadCallbacks() { 14 void NotReached(const GURL& url,
17 } 15 ScopedMessagePipeHandle shell_handle,
18 16 URLResponsePtr response) {
19 ScopedMessagePipeHandle
20 ApplicationLoader::SimpleLoadCallbacks::RegisterApplication() {
21 return shell_handle_.Pass();
22 }
23
24 void ApplicationLoader::SimpleLoadCallbacks::LoadWithContentHandler(
25 const GURL& content_handle_url,
26 URLResponsePtr url_response) {
27 NOTREACHED(); 17 NOTREACHED();
28 } 18 }
29 19
20 } // namespace
21
22 ApplicationLoader::LoadCallback ApplicationLoader::SimpleLoadCallback() {
23 return base::Bind(&NotReached);
24 }
25
30 } // namespace mojo 26 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/application_manager/application_loader.h ('k') | mojo/application_manager/application_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698