| 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 #ifndef EXAMPLES_RECIPES_RECIPE_HANDLER_RECIPE_IMPL_H_ | 5 #ifndef EXAMPLES_RECIPES_RECIPE_HANDLER_RECIPE_IMPL_H_ |
| 6 #define EXAMPLES_RECIPES_RECIPE_HANDLER_RECIPE_IMPL_H_ | 6 #define EXAMPLES_RECIPES_RECIPE_HANDLER_RECIPE_IMPL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 DISALLOW_COPY_AND_ASSIGN(IngredientConnection); | 57 DISALLOW_COPY_AND_ASSIGN(IngredientConnection); |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 // Recipe: | 60 // Recipe: |
| 61 void GetIngredients(const mojo::Callback<void(mojo::Array<IngredientPtr>)>& | 61 void GetIngredients(const mojo::Callback<void(mojo::Array<IngredientPtr>)>& |
| 62 callback) override; | 62 callback) override; |
| 63 | 63 |
| 64 // ApplicationDelegate: | 64 // ApplicationDelegate: |
| 65 void Initialize(mojo::ApplicationImpl* app) override; | 65 void Initialize(mojo::ApplicationImpl* app) override; |
| 66 bool ConfigureIncomingConnection( | 66 bool ConfigureIncomingConnection( |
| 67 mojo::ApplicationConnection* connection) override; | 67 mojo::ApplicationConnection* connection, const std::string& url) override; |
| 68 | 68 |
| 69 const GURL renderer_url_; | 69 const GURL renderer_url_; |
| 70 | 70 |
| 71 const std::vector<GURL> ingredient_urls_; | 71 const std::vector<GURL> ingredient_urls_; |
| 72 | 72 |
| 73 mojo::ApplicationImpl* app_; | 73 mojo::ApplicationImpl* app_; |
| 74 | 74 |
| 75 ScopedVector<IngredientConnection> ingredient_connections_; | 75 ScopedVector<IngredientConnection> ingredient_connections_; |
| 76 | 76 |
| 77 ValueStore value_store_; | 77 ValueStore value_store_; |
| 78 | 78 |
| 79 DISALLOW_COPY_AND_ASSIGN(RecipeImpl); | 79 DISALLOW_COPY_AND_ASSIGN(RecipeImpl); |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 } // recipe_handler | 82 } // recipe_handler |
| 83 } // recipes | 83 } // recipes |
| 84 | 84 |
| 85 #endif // EXAMPLES_RECIPES_RECIPE_HANDLER_RECIPE_IMPL_H_ | 85 #endif // EXAMPLES_RECIPES_RECIPE_HANDLER_RECIPE_IMPL_H_ |
| OLD | NEW |