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

Side by Side Diff: examples/recipes/recipe_handler/recipe_impl.cc

Issue 943053003: Simple multi-url support for mojo apps (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: hate Created 5 years, 9 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
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 "examples/recipes/recipe_handler/recipe_impl.h" 5 #include "examples/recipes/recipe_handler/recipe_impl.h"
6 6
7 #include "examples/recipes/recipe_handler/recipe_value_store_impl.h" 7 #include "examples/recipes/recipe_handler/recipe_value_store_impl.h"
8 #include "mojo/public/cpp/application/application_impl.h" 8 #include "mojo/public/cpp/application/application_impl.h"
9 9
10 namespace recipes { 10 namespace recipes {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 callback.Run(results.Pass()); 60 callback.Run(results.Pass());
61 } 61 }
62 62
63 void RecipeImpl::Initialize(mojo::ApplicationImpl* app) { 63 void RecipeImpl::Initialize(mojo::ApplicationImpl* app) {
64 app_ = app; 64 app_ = app;
65 for (const GURL& url : ingredient_urls_) 65 for (const GURL& url : ingredient_urls_)
66 ingredient_connections_.push_back(new IngredientConnection(this, url)); 66 ingredient_connections_.push_back(new IngredientConnection(this, url));
67 } 67 }
68 68
69 bool RecipeImpl::ConfigureIncomingConnection( 69 bool RecipeImpl::ConfigureIncomingConnection(
70 mojo::ApplicationConnection* connection) { 70 mojo::ApplicationConnection* connection, const std::string& url) {
71 // TODO(sky): expose Recipe by way of InterfaceFactory. 71 // TODO(sky): expose Recipe by way of InterfaceFactory.
72 return true; 72 return true;
73 } 73 }
74 74
75 } // namespace recipe_handler 75 } // namespace recipe_handler
76 } // namespace recipes 76 } // namespace recipes
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698