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 "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 Loading... |
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 |
OLD | NEW |